diff -r 330b415910bd -r 86d3a45dc928 ui/win32/toolkit.h --- 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);