ui/win32/toolkit.h

changeset 825
1bac7e45712b
parent 817
d09817e6e6a4
child 880
9c99ff36513f
--- 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);
 

mercurial