diff -r 81c4f73236a4 -r c3f2f16fa4b8 ui/win32/toolkit.h --- a/ui/win32/toolkit.h Sat Oct 04 14:54:25 2025 +0200 +++ b/ui/win32/toolkit.h Sun Oct 19 21:20:08 2025 +0200 @@ -34,10 +34,27 @@ #include "../common/context.h" #include "../common/object.h" +#include "win32.h" + #ifdef __cplusplus extern "C" { #endif +/* + * widget struct that can be used for most primitive widgets, + * like buttons, checkboxes + */ +typedef struct UiWidget { + W32Widget widget; + UiObject *obj; + UiVar *var; + ui_callback callback; + void *callbackdata; + int64_t intvalue; +} UiWidget; + +HFONT ui_win32_get_font(void); +void ui_win32_set_ui_font(HWND control); #ifdef __cplusplus