5 asFlowView { arg bounds;
8 flow { arg func,bounds;
10 f = FlowView(this,bounds ?? { this.bounds.moveTo(0,0) });
12 if(bounds.isNil,{ f.resizeToFit });
15 comp { arg func,bounds;
17 f = QView(this,bounds ?? { this.bounds.moveTo(0,0) });
26 asFlowView { arg bounds;
27 ^FlowView(this,bounds ?? {this.bounds})
29 deepDo { arg function;
32 this.children.do({arg child;
33 child.deepDo(function);
40 this.deepDo({ arg child; all = all.add(child) });
43 flow { arg func,bounds;
45 f = FlowView(this,bounds); // flow view intellegently calc defaults bounds
47 if(bounds.isNil,{ f.resizeToFit });
50 horz { arg func,bounds;
52 comp = QHLayoutView(this,bounds ?? { this.bounds });
56 vert { arg func,bounds;
58 comp = QVLayoutView(this,bounds ?? { this.bounds });
62 comp { arg func,bounds;
64 comp = QView(this,bounds ?? { this.bounds });
68 scroll { arg func,bounds,autohidesScrollers=true,autoScrolls=true,
69 hasHorizontalScroller=true,hasVerticalScroller=true;
71 comp = QScrollView(this,bounds ?? { this.bounds });
72 comp.autohidesScrollers = autohidesScrollers;
73 comp.hasHorizontalScroller = hasHorizontalScroller;
74 comp.hasVerticalScroller = hasVerticalScroller;