| 32 #include <inttypes.h> |
32 #include <inttypes.h> |
| 33 #include "../ui/toolkit.h" |
33 #include "../ui/toolkit.h" |
| 34 #include "../common/context.h" |
34 #include "../common/context.h" |
| 35 #include "../common/object.h" |
35 #include "../common/object.h" |
| 36 |
36 |
| |
37 #include <cx/list.h> |
| 37 #include <cx/string.h> |
38 #include <cx/string.h> |
| 38 |
39 |
| 39 #ifdef __cplusplus |
40 #ifdef __cplusplus |
| 40 extern "C" { |
41 extern "C" { |
| 41 #endif |
42 #endif |
| 42 |
43 |
| |
44 typedef struct UiSrvObj UiSrvObj; |
| |
45 |
| 43 typedef struct UiServerEvent UiServerEvent; |
46 typedef struct UiServerEvent UiServerEvent; |
| 44 typedef struct UiServerEventData UiServerEventData; |
47 typedef struct UiServerEventData UiServerEventData; |
| 45 typedef void(*ui_srvevent_func)(UiServerEventData *event, void *userdata); |
48 typedef void(*ui_srvevent_func)(UiServerEventData *event, void *userdata); |
| |
49 |
| |
50 typedef cxmutstr (*ui_serialize_func)(UiWidget *w); |
| 46 |
51 |
| 47 struct UiServerEventData { |
52 struct UiServerEventData { |
| 48 UiObject *obj; |
53 UiObject *obj; |
| 49 cxmutstr str; |
54 cxmutstr str; |
| 50 int intvalue; |
55 int intvalue; |