ui/server/toolkit.h

changeset 982
9102a53c5385
parent 981
1d47e71f26b6
child 985
93f07ccfd997
equal deleted inserted replaced
981:1d47e71f26b6 982:9102a53c5385
60 ui_srvevent_func callback; 60 ui_srvevent_func callback;
61 void *userdata; 61 void *userdata;
62 }; 62 };
63 63
64 struct UiSrvObj { 64 struct UiSrvObj {
65 UiContext *ctx;
65 cxmutstr id; 66 cxmutstr id;
67
68 CxMap *widgets;
69 uint64_t widget_id_counter;
66 }; 70 };
67 71
68 struct UiWidget { 72 struct UiWidget {
69 UiSrvObj *obj; 73 UiSrvObj *obj;
70 cxmutstr id; 74 cxmutstr id;
73 UiVarType var_type; 77 UiVarType var_type;
74 CxList *children; 78 CxList *children;
75 cxmutstr args; 79 cxmutstr args;
76 UiBool visible; 80 UiBool visible;
77 UiBool enabled; 81 UiBool enabled;
78 ui_serialize_func *serialize; 82 UiBool sent;
83 ui_serialize_func serialize;
79 }; 84 };
80 85
81 void ui_server_message_received(cxstring msg); 86 void ui_server_message_received(cxstring msg);
87
88 UiSrvObj* ui_create_server_object(UiContext *ctx);
89 void ui_reg_widget(UiWidget *widget);
82 90
83 91
84 #ifdef __cplusplus 92 #ifdef __cplusplus
85 } 93 }
86 #endif 94 #endif

mercurial