| 40 UI_LAYOUT_UNDEFINED = 0, |
40 UI_LAYOUT_UNDEFINED = 0, |
| 41 UI_LAYOUT_TRUE, |
41 UI_LAYOUT_TRUE, |
| 42 UI_LAYOUT_FALSE, |
42 UI_LAYOUT_FALSE, |
| 43 }; |
43 }; |
| 44 |
44 |
| 45 struct UiLayout { |
|
| 46 UiBool fill; |
|
| 47 //UiBool newline; |
|
| 48 //char *label; |
|
| 49 UiBool hexpand; |
|
| 50 UiBool vexpand; |
|
| 51 UiBool hfill; |
|
| 52 UiBool vfill; |
|
| 53 //int width; |
|
| 54 int margin; |
|
| 55 int margin_left; |
|
| 56 int margin_right; |
|
| 57 int margin_top; |
|
| 58 int margin_bottom; |
|
| 59 int colspan; |
|
| 60 int rowspan; |
|
| 61 }; |
|
| 62 |
|
| 63 #define UI_INIT_LAYOUT(args) (UiLayout) {\ |
45 #define UI_INIT_LAYOUT(args) (UiLayout) {\ |
| 64 .fill = args->fill, \ |
46 .fill = args->fill, \ |
| 65 .hexpand = args->hexpand, \ |
47 .hexpand = args->hexpand, \ |
| 66 .vexpand = args->vexpand, \ |
48 .vexpand = args->vexpand, \ |
| 67 .hfill = args->hfill, \ |
49 .hfill = args->hfill, \ |