-
// W. Snoei 2005 + Object { asCode { ^this.asCompileString; } } + FlowLayout { // special version for FlowLayout asCode { ^(this.class.asString ++ "(" + [bounds, margin, gap].join( ", ") + ")" ); } }
-
... pondsTo( \decorator_ ) ) // both swingosc and osx { if( this.decorator.class != FlowLayout ) // prevent flowlayout removal { if( bool == false ) { this.decorator = AbsLayout( this ); } { /* this.decorator = nil; */ } // remove if true }; }; ...
-
... siteView(w, Rect(4,4, 98, 700)) .background_(Color.gray(0.9)); comp .decorator_(FlowLayout(comp.bounds, gap * 2, gap * 2)); name = inName; Button(comp, Rect(2, 2, 90, unitHeight)) .states_([[name.asString]]) .font_(Font(*["Helvetica", 24])) ...
-
... { bounds= bounds.asRect; }); cmp= CompositeView(parent, bounds); cmp.decorator= FlowLayout(bounds, 4@0, 4@0); numb= RedNumberBox(cmp, cmp.decorator.indentedRemaining.width@14); cmp.decorator.nextLine; slider= RedSlider(cmp, cmp.decorator.in ...
-
... size + 10, ysize)).front; //w.view.background_(Color.black); w.view.decorator = FlowLayout(Rect(4, 4, w.bounds.width, w.bounds.height), 2@2, 2@2); w; }; // unclutter the windows on the screen: yposScreen = yposScreen + 160; if ( yposScreen ...
-
... { bounds= bounds.asRect; }); cmp= CompositeView(parent, bounds); cmp.decorator= FlowLayout(bounds, 4@0, 4@0); numb= RedNumberBox(cmp, cmp.decorator.indentedRemaining.width@14); cmp.decorator.nextLine; slider= RedSlider(cmp, cmp.decorator.in ...
-
... | PaneView(p, \vertical, 2.rrand(9)) }); ) ``` ```supercollider ( // responsive FlowLayout inside panes w = Window().front; PaneView(w.view, \horizontal, 2, [1,2]).panes.do({|p| var i = ScrollView(p, p.bounds.extent).hasBorder_(false).resiz ...
-
... { bounds= bounds.asRect; }); cmp= CompositeView(parent, bounds); cmp.decorator= FlowLayout(bounds, 4@0, 4@0); width1= bounds.width*0.8; height1= 14; knob= RedKnob(cmp, width1@width1); cmp.decorator.nextLine; numb= RedNumberBox(cmp, width1@h ...
-
... enBounds.height-480).div(2), 500, 480 ), false); window.view.decorator = flow = FlowLayout(window.view.bounds, Point(7, 7), Point(3, 3)); replaceBg = CompositeView(window.view, Point(flow.indentedRemaining.width, 29)); flow.nextLine; midiBg ...
-
... .0, 0.8)]; w = SCWindow ( "Meter" , Rect (300,400,300,120)); w.view.decorator = FlowLayout (w.view.bounds); w.front; m = VuView (w, 120@80); Knob (w, 32@32) .action = { |v| var mappedValue; mappedValue = [0,1.2].asSpec.map(v.value); m.needl ...