ui/cocoa/container.h

changeset 108
77254bd6dccb
parent 100
d2bd73d28ff1
child 109
c3dfcb8f0be7
equal deleted inserted replaced
107:b34bd1557c6c 108:77254bd6dccb
41 UI_LAYOUT_TRUE, 41 UI_LAYOUT_TRUE,
42 UI_LAYOUT_FALSE, 42 UI_LAYOUT_FALSE,
43 }; 43 };
44 44
45 struct UiLayout { 45 struct UiLayout {
46 UiTri fill; 46 UiBool fill;
47 //UiBool newline; 47 //UiBool newline;
48 //char *label; 48 //char *label;
49 UiBool hexpand; 49 UiBool hexpand;
50 UiBool vexpand; 50 UiBool vexpand;
51 UiBool hfill; 51 UiBool hfill;
54 int colspan; 54 int colspan;
55 int rowspan; 55 int rowspan;
56 }; 56 };
57 57
58 #define UI_INIT_LAYOUT(args) (UiLayout) {\ 58 #define UI_INIT_LAYOUT(args) (UiLayout) {\
59 .fill = args.fill, \ 59 .fill = args->fill, \
60 .hexpand = args.hexpand, \ 60 .hexpand = args->hexpand, \
61 .vexpand = args.vexpand, \ 61 .vexpand = args->vexpand, \
62 .hfill = args.hfill, \ 62 .hfill = args->hfill, \
63 .vfill = args.vfill, \ 63 .vfill = args->vfill, \
64 .colspan = args.colspan, \ 64 .colspan = args->colspan, \
65 .rowspan = args.rowspan } 65 .rowspan = args->rowspan }
66 66
67 67
68 @protocol Container 68 @protocol Container
69 69
70 @property UiLayout uilayout; 70 @property UiLayout uilayout;

mercurial