--- a/ui/win32/toolkit.h Thu Oct 09 18:24:09 2025 +0200 +++ b/ui/win32/toolkit.h Thu Oct 09 18:49:19 2025 +0200 @@ -40,6 +40,19 @@ 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);