ui/ui/container.h

branch
newapi
changeset 187
24ce2c326d85
parent 186
5db4979bf482
child 190
70fd1b24e395
equal deleted inserted replaced
186:5db4979bf482 187:24ce2c326d85
90 #define UI_APPLY_LAYOUT1(obj, args) \ 90 #define UI_APPLY_LAYOUT1(obj, args) \
91 if(args.fill != UI_DEFAULT) ui_layout_fill(obj, args.fill == UI_ON ? 1 : 0 ); \ 91 if(args.fill != UI_DEFAULT) ui_layout_fill(obj, args.fill == UI_ON ? 1 : 0 ); \
92 if(args.hexpand) ui_layout_hexpand(obj, 1); \ 92 if(args.hexpand) ui_layout_hexpand(obj, 1); \
93 if(args.vexpand) ui_layout_vexpand(obj, 1); \ 93 if(args.vexpand) ui_layout_vexpand(obj, 1); \
94 if(args.colspan > 0) ui_layout_colspan(obj, args.colspan); \ 94 if(args.colspan > 0) ui_layout_colspan(obj, args.colspan); \
95 if(args.rowspan > 0) ui_layout_rowspan(obj, args.rowspan); 95 if(args.rowspan > 0) ui_layout_rowspan(obj, args.rowspan); \
96 /*force caller to add ';'*/(void)0
96 97
97 98
98 #ifdef __cplusplus 99 #ifdef __cplusplus
99 } 100 }
100 #endif 101 #endif

mercurial