client/uiclient.h

changeset 984
2cf5e6d55013
parent 983
1d7d24147961
equal deleted inserted replaced
983:1d7d24147961 984:2cf5e6d55013
42 42
43 typedef struct WindowData { 43 typedef struct WindowData {
44 CxMap *widgets; 44 CxMap *widgets;
45 } WindowData; 45 } WindowData;
46 46
47 typedef int (*json_msg_handler)(UiObject *parent, const CxJsonValue *value); 47 typedef int (*json_msg_handler)(UiObject *parent, const CxJsonValue *value, cxmutstr type);
48 48
49 void client_init(UiMessageHandler *handler); 49 void client_init(UiMessageHandler *handler);
50 50
51 void client_msg_received(cxstring msg); 51 void client_msg_received(cxstring msg);
52 52
58 UiObject* client_get_mapped_obj(cxmutstr id); 58 UiObject* client_get_mapped_obj(cxmutstr id);
59 void client_reg_widget(UiObject *obj, cxmutstr id, UIWIDGET w); 59 void client_reg_widget(UiObject *obj, cxmutstr id, UIWIDGET w);
60 UIWIDGET client_get_widget(UiObject *obj, cxmutstr id); 60 UIWIDGET client_get_widget(UiObject *obj, cxmutstr id);
61 61
62 62
63 int msg_simple_window(UiObject *parent, const CxJsonValue *value); 63 int msg_window(UiObject *parent, const CxJsonValue *value, cxmutstr type);
64 int msg_show(UiObject *parent, const CxJsonValue *value); 64 int msg_show(UiObject *parent, const CxJsonValue *value, cxmutstr type);
65 65
66 int msg_vbox(UiObject *parent, const CxJsonValue *value); 66 int msg_vbox(UiObject *parent, const CxJsonValue *value, cxmutstr type);
67 int msg_hbox(UiObject *parent, const CxJsonValue *value); 67 int msg_hbox(UiObject *parent, const CxJsonValue *value, cxmutstr type);
68 int msg_grid(UiObject *parent, const CxJsonValue *value); 68 int msg_grid(UiObject *parent, const CxJsonValue *value, cxmutstr type);
69 69
70 int msg_end(UiObject *parent, const CxJsonValue *value); 70 int msg_end(UiObject *parent, const CxJsonValue *value, cxmutstr type);
71 71
72 int msg_button(UiObject *parent, const CxJsonValue *value); 72 int msg_button(UiObject *parent, const CxJsonValue *value, cxmutstr type);
73 73
74 int msg_togglebutton(UiObject *parent, const CxJsonValue *value); 74 int msg_togglebutton(UiObject *parent, const CxJsonValue *value, cxmutstr type);
75 75
76 76
77 77
78 78
79 #ifdef __cplusplus 79 #ifdef __cplusplus

mercurial