ui/server/toolkit.h

changeset 950
39641cf150eb
parent 944
cc23aad6335e
child 981
1d47e71f26b6
equal deleted inserted replaced
949:ef8f13c8c08f 950:39641cf150eb
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/string.h>
38
37 #ifdef __cplusplus 39 #ifdef __cplusplus
38 extern "C" { 40 extern "C" {
39 #endif 41 #endif
42
43 typedef struct UiServerEvent UiServerEvent;
44 typedef struct UiServerEventData UiServerEventData;
45 typedef void(*ui_srvevent_func)(UiServerEventData *event, void *userdata);
46
47 struct UiServerEventData {
48 UiObject *obj;
49 cxmutstr str;
50 int intvalue;
51 };
40 52
53 struct UiServerEvent {
54 UiServerEventData event;
55 ui_srvevent_func callback;
56 void *userdata;
57 };
58
59 void ui_server_message_received(cxstring msg);
41 60
42 61
43 #ifdef __cplusplus 62 #ifdef __cplusplus
44 } 63 }
45 #endif 64 #endif

mercurial