ui/win32/toolkit.h

changeset 1035
86d3a45dc928
parent 880
9c99ff36513f
child 1036
24677835f298
--- a/ui/win32/toolkit.h	Wed Dec 31 09:16:02 2025 +0100
+++ b/ui/win32/toolkit.h	Wed Dec 31 10:06:15 2025 +0100
@@ -55,6 +55,12 @@
 
 LRESULT CALLBACK ui_default_eventproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
 
+typedef void(*ui_command_func)(UiObject *, void *userdata);
+typedef struct UiCommand {
+    ui_command_func callback;
+    void *userdata;
+} UiCommand;
+
 HFONT ui_win32_get_font(void);
 void ui_win32_set_ui_font(HWND control);
 

mercurial