Saved stretchy values in box.m. We'll need to figure out how to incorporate these into the generated files...
This commit is contained in:
parent
30a30cb5be
commit
08c3602130
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
@implementation tBox {
|
@implementation tBox {
|
||||||
NSMutableArray *children;
|
NSMutableArray *children;
|
||||||
|
NSMutableArray *stretchy;
|
||||||
NSView *sv;
|
NSView *sv;
|
||||||
BOOL vertical;
|
BOOL vertical;
|
||||||
id<tControl> parent;
|
id<tControl> parent;
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
self = [super init];
|
self = [super init];
|
||||||
if (self) {
|
if (self) {
|
||||||
self->children = [NSMutableArray new];
|
self->children = [NSMutableArray new];
|
||||||
|
self->stretchy = [NSMutableArray new];
|
||||||
self->sv = nil;
|
self->sv = nil;
|
||||||
self->vertical = vert;
|
self->vertical = vert;
|
||||||
self->parent = nil;
|
self->parent = nil;
|
||||||
|
@ -25,6 +27,7 @@
|
||||||
if (self->sv != nil)
|
if (self->sv != nil)
|
||||||
[c tSetParent:self->parent addToView:self->sv];
|
[c tSetParent:self->parent addToView:self->sv];
|
||||||
[self->children addObject:c];
|
[self->children addObject:c];
|
||||||
|
[self->stretchy addObject:[NSNumber numberWithBool:s]];
|
||||||
// TODO mark as needing relayout
|
// TODO mark as needing relayout
|
||||||
[self tRelayout];
|
[self tRelayout];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue