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 #ifndef CLIENT_ARGS_H
30 #define CLIENT_ARGS_H
31
32 #include <ui/ui.h>
33 #include <cx/json.h>
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 typedef void(*argfunc_set_bool)(
void *, UiBool);
40 typedef void(*argfunc_set_int)(
void *,
int);
41 typedef void(*argfunc_set_str)(
void *,
const char*);
42 typedef void(*argfunc_set_intarray)(
void *,
int *,
int);
43
44 typedef struct ArgDefaultFuncs {
45 argfunc_set_bool fill;
46 argfunc_set_bool hexpand;
47 argfunc_set_bool vexpand;
48 argfunc_set_bool hfill;
49 argfunc_set_bool vfill;
50 argfunc_set_bool override_defaults;
51 argfunc_set_int margin;
52 argfunc_set_int margin_left;
53 argfunc_set_int margin_right;
54 argfunc_set_int margin_top;
55 argfunc_set_int margin_bottom;
56 argfunc_set_int colspan;
57 argfunc_set_int rowspan;
58 argfunc_set_str name;
59 argfunc_set_str style_class;
60
61 } ArgDefaultFuncs;
62
63 UiContainerArgs* json2container_args(
const CxJsonValue *value);
64
65 UiButtonArgs* json2button_args(
const CxJsonValue *value);
66
67 UiToggleArgs* json2toggle_args(
const CxJsonValue *value);
68
69
70 #ifdef __cplusplus
71 }
72 #endif
73
74 #endif
75
76