| 32 |
32 |
| 33 #define ui_lb2bool(b) ((b) == UI_LAYOUT_TRUE ? TRUE : FALSE) |
33 #define ui_lb2bool(b) ((b) == UI_LAYOUT_TRUE ? TRUE : FALSE) |
| 34 #define ui_bool2lb(b) ((b) ? UI_LAYOUT_TRUE : UI_LAYOUT_FALSE) |
34 #define ui_bool2lb(b) ((b) ? UI_LAYOUT_TRUE : UI_LAYOUT_FALSE) |
| 35 |
35 |
| 36 typedef struct UiLayout UiLayout; |
36 typedef struct UiLayout UiLayout; |
| 37 typedef enum UiLayoutBool UiLayoutBool; |
|
| 38 |
37 |
| 39 enum UiLayoutBool { |
|
| 40 UI_LAYOUT_UNDEFINED = 0, |
|
| 41 UI_LAYOUT_TRUE, |
|
| 42 UI_LAYOUT_FALSE, |
|
| 43 }; |
|
| 44 |
38 |
| 45 #define UI_INIT_LAYOUT(args) (UiLayout) {\ |
39 #define UI_INIT_LAYOUT(args) (UiLayout) {\ |
| 46 .fill = args->fill, \ |
40 .fill = args->fill, \ |
| 47 .hexpand = args->hexpand, \ |
41 .hexpand = args->hexpand, \ |
| 48 .vexpand = args->vexpand, \ |
42 .vexpand = args->vexpand, \ |