ui/win32/grid.h

changeset 818
8185cd761897
parent 815
7ddf5fb7ec2a
equal deleted inserted replaced
817:d09817e6e6a4 818:8185cd761897
60 short gridy; 60 short gridy;
61 GridLayoutInfo layout; 61 GridLayoutInfo layout;
62 } GridElm; 62 } GridElm;
63 63
64 typedef struct UiGridLayout { 64 typedef struct UiGridLayout {
65 HWND hwnd;
66
67 GridEdgeInsets padding; 65 GridEdgeInsets padding;
68 short columnspacing; 66 short columnspacing;
69 short rowspacing; 67 short rowspacing;
70 68
71 int preferred_width; 69 int preferred_width;
76 */ 74 */
77 CxList *widgets; 75 CxList *widgets;
78 76
79 int max_column; 77 int max_column;
80 int max_row; 78 int max_row;
81
82 } UiGridLayout; 79 } UiGridLayout;
83 80
84 typedef struct GridDef { 81 typedef struct GridDef {
85 int size; 82 int size;
86 int pos; 83 int pos;
87 int preferred_size; 84 int preferred_size;
88 BOOLEAN expand; 85 BOOLEAN expand;
89 } GridDef; 86 } GridDef;
90 87
91 UiGridLayout* ui_grid_layout_create(const CxAllocator *a, HWND control, short columnspacing, short rowspacing); 88 UiGridLayout* ui_grid_layout_create(const CxAllocator *a, short columnspacing, short rowspacing);
92 89
93 void ui_grid_add_widget( 90 void ui_grid_add_widget(
94 UiGridLayout *grid, 91 UiGridLayout *grid,
95 short x, 92 short x,
96 short y, 93 short y,

mercurial