ui/motif/container.h

changeset 108
77254bd6dccb
parent 103
6606616eca9f
child 112
c3f2f16fa4b8
equal deleted inserted replaced
107:b34bd1557c6c 108:77254bd6dccb
37 #ifdef __cplusplus 37 #ifdef __cplusplus
38 extern "C" { 38 extern "C" {
39 #endif 39 #endif
40 40
41 #define UI_APPLY_LAYOUT(layout, args) \ 41 #define UI_APPLY_LAYOUT(layout, args) \
42 layout.fill = args.fill; \ 42 layout.fill = args->fill; \
43 layout.hexpand = args.hexpand; \ 43 layout.hexpand = args->hexpand; \
44 layout.vexpand = args.vexpand; \ 44 layout.vexpand = args->vexpand; \
45 layout.hfill = args.hfill; \ 45 layout.hfill = args->hfill; \
46 layout.vfill = args.vfill; \ 46 layout.vfill = args->vfill; \
47 layout.override_defaults = args.override_defaults; \ 47 layout.override_defaults = args->override_defaults; \
48 layout.colspan = args.colspan; \ 48 layout.colspan = args->colspan; \
49 layout.rowspan = args.rowspan 49 layout.rowspan = args->rowspan
50 50
51 typedef enum UiBoxOrientation UiBoxOrientation; 51 typedef enum UiBoxOrientation UiBoxOrientation;
52 52
53 enum UiContainerType { 53 enum UiContainerType {
54 UI_CONTAINER_GENERIC = 0, 54 UI_CONTAINER_GENERIC = 0,
63 #define ui_obj_container(obj) (UiContainerPrivate*)obj->container_end 63 #define ui_obj_container(obj) (UiContainerPrivate*)obj->container_end
64 64
65 typedef struct UiLayout UiLayout; 65 typedef struct UiLayout UiLayout;
66 66
67 struct UiLayout { 67 struct UiLayout {
68 UiTri fill; 68 UiBool fill;
69 UiBool newline; 69 UiBool newline;
70 char *label; 70 char *label;
71 UiBool hexpand; 71 UiBool hexpand;
72 UiBool vexpand; 72 UiBool vexpand;
73 UiBool hfill; 73 UiBool hfill;

mercurial