-
... et({ |sn| { var wrapperView; currentSnapshot = sn; wrapperView = View().layout_(VLayout( this.makeHeader(), view = (ScrollView() .canvas_(View().layout_(VLayout( this.makeViewNode(sn.root), nil ).margins_(0).spacing_(0))) ) ).spacing_(0).ma ...
-
... rizontal/vertical panes(aka tiles) Location: NOT INSTALLED! See also: HLayout , VLayout Description Pane(tile) manager for views. Class Methods . new Creates a new instance of PaneView and makes it a child of another View("parent") PaneView ...
-
... .availableBounds.center, size/2, size/2)); win.userCanClose= false; win.layout= VLayout( StaticText().string_("Click to launch instrument..."), GridLayout.rows( *images.collect{|x| UserView().drawFunc_{|usr| Pen.stringAtPoint(x.key.asString ...
-
... mWin.background = Color.blue(0.3,1); mWin.layout = HLayout( VLayout( StaticText().string_("Cavern_1"), Button() .states_([ ["OFF", Color.gray(0.2), Color.green(0.8)], ["ON", Color.gray(0. ...
-
... arent, clock | ^super.new(parent).init(clock); } init { | clock | this.layout = VLayout.new( HLayout.new( StaticText.new.string_("name: " ++ clock.name), beatFlasherView = View.new.background_(Color.black) ), HLayout.new( StaticText.new.str ...
-
... lor.grey) .value_(0.dup(history)) .elasticMode_(1); }.dup(numChan); win.layout= VLayout(*msliders); updateFunc= {|...args| if(Main.elapsedTime-lastTime>0.016, { //downsample to 60fps lastTime= Main.elapsedTime; { args.do{|x, i| var vals= ms ...
-
... dup(numChan); numbers= {NumberBox().canFocus_(false)}.dup(numChan); win.layout= VLayout(*[ HLayout(*sliders), HLayout(*numbers) ]); updateFunc= {|...args| if(Main.elapsedTime-lastTime>0.016, { //downsample to 60fps lastTime= Main.elapsedTim ...
-
... der2D(p.panes[0], p.panes[0].bounds.extent).resize_(5); {|v| p.panes[1].layout_(VLayout(Knob(), HLayout(Knob(), v))); {|p| {|p| Knob(p, p.bounds.extent).resize_(5) }.(p.panes[0]); {|p| Slider2D(p, p.bounds.extent).resize_(5) }.(p.panes[1]); ...
-
... ( var w= Window("RedGUI test", Rect(100, 200, 300, 400)).front; w.view.layout= VLayout(); Red2DSlider(w); RedButton(w); RedButton(w, nil, "aaa", "bbb"); RedKnob(w); RedLevelIndicator(w).value_(0.5); RedMultiSliderView(w); RedNumberBox(w); ...
-
... lue_(value); displayValue.value(value); }); sliderView.layout_( HLayout() .add( VLayout() .add(text) .add(slider), ) .add(field) ); sliderView.front; ) ⧉ ✔ Centralizing Views actions with a single Function This example is the continuation o ...