| 38 #endif |
38 #endif |
| 39 |
39 |
| 40 typedef struct UiContainerPrivate UiContainerPrivate; |
40 typedef struct UiContainerPrivate UiContainerPrivate; |
| 41 typedef struct UiGridLayoutContainer UiGridLayoutContainer; |
41 typedef struct UiGridLayoutContainer UiGridLayoutContainer; |
| 42 typedef struct UiBoxContainer UiBoxContainer; |
42 typedef struct UiBoxContainer UiBoxContainer; |
| |
43 typedef struct UiGridWidget UiGridWidget; |
| 43 |
44 |
| 44 enum UiBoxOrientation { |
45 enum UiBoxOrientation { |
| 45 UI_BOX_VERTICAL = 0, |
46 UI_BOX_VERTICAL = 0, |
| 46 UI_BOX_HORIZONTAL |
47 UI_BOX_HORIZONTAL |
| 47 }; |
48 }; |
| 86 UiBool def_vexpand; |
87 UiBool def_vexpand; |
| 87 UiBool def_hfill; |
88 UiBool def_hfill; |
| 88 UiBool def_vfill; |
89 UiBool def_vfill; |
| 89 }; |
90 }; |
| 90 |
91 |
| |
92 struct UiGridWidget { |
| |
93 W32Widget widget; |
| |
94 HBRUSH brush; |
| |
95 }; |
| |
96 |
| 91 UiContainerPrivate* ui_obj_container(UiObject *obj); |
97 UiContainerPrivate* ui_obj_container(UiObject *obj); |
| 92 HWND ui_container_get_parent(UiContainerPrivate *ctn); |
98 HWND ui_container_get_parent(UiContainerPrivate *ctn); |
| 93 void ui_container_add(UiContainerPrivate *ctn, W32Widget *widget, UiLayout *layout); |
99 void ui_container_add(UiContainerPrivate *ctn, W32Widget *widget, UiLayout *layout); |
| 94 |
100 |
| |
101 void ui_grid_widget_event(W32Widget *widget, HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); |
| 95 W32Size ui_grid_layout_get_preferred_size(W32Widget *widget); |
102 W32Size ui_grid_layout_get_preferred_size(W32Widget *widget); |
| 96 |
103 |
| 97 UiContainerX* ui_box_container_create(UiObject *obj, HWND hwnd, UiBoxOrientation orientation, short spacing, GridEdgeInsets padding); |
104 UiContainerX* ui_box_container_create(UiObject *obj, HWND hwnd, UiBoxOrientation orientation, short spacing, GridEdgeInsets padding); |
| 98 void ui_box_container_add(UiContainerPrivate *ctn, W32Widget *widget, UiLayout *layout); |
105 void ui_box_container_add(UiContainerPrivate *ctn, W32Widget *widget, UiLayout *layout); |
| 99 |
106 |