--- a/ui/ui/win32.h Sun Oct 12 09:17:37 2025 +0200 +++ b/ui/ui/win32.h Sun Oct 12 12:01:03 2025 +0200 @@ -41,6 +41,8 @@ typedef struct W32Widget W32Widget; typedef struct W32Size W32Size; +typedef void (*W32LayoutFunc)(void *, int, int); + struct W32Size { int width; int height; @@ -58,6 +60,8 @@ W32WidgetClass *wclass; HWND hwnd; void *userdata; + void (*layout)(void *layout, int width, int height); + void *layoutmanager; }; #ifdef __cplusplus