ui/win32/grid.c

changeset 818
8185cd761897
parent 815
7ddf5fb7ec2a
child 841
651cf2c59dd9
equal deleted inserted replaced
817:d09817e6e6a4 818:8185cd761897
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 }

mercurial