ui/win32/grid.c

changeset 1034
330b415910bd
parent 892
0fbaac4aafc8
equal deleted inserted replaced
1033:eda1ff20cb27 1034:330b415910bd
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, 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->widgets = cxArrayListCreate(a, NULL, sizeof(GridElm), 32); 39 grid->widgets = cxArrayListCreate(a, sizeof(GridElm), 32);
40 grid->columnspacing = columnspacing; 40 grid->columnspacing = columnspacing;
41 grid->rowspacing = rowspacing; 41 grid->rowspacing = rowspacing;
42 return grid; 42 return grid;
43 } 43 }
44 44

mercurial