ui/win32/grid.c

changeset 118
6d0da97105d8
parent 115
e57ca2747782
equal deleted inserted replaced
117:b174e721663e 118:6d0da97105d8
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