| 32 #include "../common/context.h" |
32 #include "../common/context.h" |
| 33 |
33 |
| 34 #include <stdio.h> |
34 #include <stdio.h> |
| 35 #include <stdlib.h> |
35 #include <stdlib.h> |
| 36 |
36 |
| 37 UiGridLayout* ui_grid_layout_create(const CxAllocator *a, HWND control, short columnspacing, short rowspacing) { |
37 UiGridLayout* ui_grid_layout_create(const CxAllocator *a, short columnspacing, short rowspacing) { |
| 38 UiGridLayout *grid = cxZalloc(a, sizeof(UiGridLayout)); |
38 UiGridLayout *grid = cxZalloc(a, sizeof(UiGridLayout)); |
| 39 grid->hwnd = control; |
|
| 40 grid->widgets = cxArrayListCreate(a, NULL, sizeof(GridElm), 32); |
39 grid->widgets = cxArrayListCreate(a, NULL, sizeof(GridElm), 32); |
| 41 grid->columnspacing = columnspacing; |
40 grid->columnspacing = columnspacing; |
| 42 grid->rowspacing = rowspacing; |
41 grid->rowspacing = rowspacing; |
| 43 return grid; |
42 return grid; |
| 44 } |
43 } |