1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #import "toolkit.h"
30
31 #import "Container.h"
32
33 #import <cx/array_list.h>
34
35 typedef struct GridElm {
36 NSView *view;
37 NSEdgeInsets margin;
38 int x;
39 int y;
40 int colspan;
41 int rowspan;
42 int preferred_width;
43 int preferred_height;
44 BOOL hexpand;
45 BOOL vexpand;
46 BOOL hfill;
47 BOOL vfill;
48 } GridElm;
49
50 typedef struct GridDef {
51 int size;
52 int pos;
53 int preferred_size;
54 BOOL expand;
55 } GridDef;
56
57 @interface GridLayout : NSView<Container>
58
59 @property UiContainerX *container;
60
61 @property
int columnspacing;
62 @property
int rowspacing;
63 @property CxList *children;
64 @property NSSize preferredSize;
65
66 @property
int x;
67 @property
int y;
68 @property
int cols;
69 @property
int rows;
70
71 - (GridLayout*)init;
72
73 @end
74