| 53 int64_t intvalue; |
53 int64_t intvalue; |
| 54 } UiWidget; |
54 } UiWidget; |
| 55 |
55 |
| 56 LRESULT CALLBACK ui_default_eventproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); |
56 LRESULT CALLBACK ui_default_eventproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); |
| 57 |
57 |
| 58 typedef void(*ui_command_func)(UiObject *, void *userdata); |
58 typedef void(*ui_command_func)(UiObject *, uint64_t id, void *userdata); |
| 59 typedef struct UiCommand { |
59 typedef struct UiCommand { |
| 60 ui_command_func callback; |
60 ui_command_func callback; |
| 61 void *userdata; |
61 void *userdata; |
| 62 } UiCommand; |
62 } UiCommand; |
| 63 |
63 |