#import "toolkit.h"
#import "Container.h"
#import <cx/array_list.h>
typedef struct GridElm {
NSView *view;
NSEdgeInsets margin;
int x;
int y;
int colspan;
int rowspan;
int preferred_width;
int preferred_height;
BOOL hexpand;
BOOL vexpand;
BOOL hfill;
BOOL vfill;
} GridElm;
typedef struct GridDef {
int size;
int pos;
int preferred_size;
BOOL expand;
} GridDef;
@interface GridLayout : NSView<Container>
@property UiContainerX *container;
@property int columnspacing;
@property int rowspacing;
@property CxList *children;
@property NSSize preferredSize;
@property int x;
@property int y;
@property int cols;
@property int rows;
- (GridLayout*)init;
@end