1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #include <stdio.h>
30
31 #include "widget.h"
32 #include "toolkit.h"
33
34 void ui_serialize_type_obj_id(UiWidget *w, CxBuffer *buf) {
35 cxBufferPutString(buf,
"\"type\":\"");
36 cxBufferPutString(buf, w->type.ptr);
37 cxBufferPutString(buf,
"\",\"obj\":\"");
38 cxBufferPutString(buf, w->obj->id.ptr);
39 cxBufferPutString(buf,
"\",\"id\":\"");
40 cxBufferPutString(buf, w->id.ptr);
41 cxBufferPutString(buf,
"\"");
42 }
43
44
45 void ui_set_enabled(
UIWIDGET widget,
int enabled) {
46
47 }
48
49 void ui_set_visible(
UIWIDGET widget,
int visible) {
50
51 }
52