ui/win32/toolkit.h

changeset 827
eae5b817aa47
parent 825
1bac7e45712b
child 880
9c99ff36513f
--- a/ui/win32/toolkit.h	Fri Oct 10 09:05:11 2025 +0200
+++ b/ui/win32/toolkit.h	Fri Oct 10 09:06:06 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

mercurial