-
... xtView, <>tag="//!!"; classvar <>width=1250, <shouts, <codeDumpFunc; classvar <>rect; *initClass { shouts = List.new; codeDumpFunc = { |str| if (str.beginsWith(tag)) { this.new(str.drop(tag.size)) } }; rect = Rect(0, 0, 1024, 80); } *makeWi ...
-
... <fractsl; slider { arg layout, x=100,y=15; var r; slv = GUI.slider.new(layout, Rect(0,0,100,15)); slv.setProperty(\value,model.spec.unmap(model.int)); slv.action_({arg th; model.activeValue_(model.intspec.map(th.value) + model.fractspec.ma ...
-
PlayerPoolGui : AbstractPlayerGui { var triggers,guis,rect,selectedBox; guiBody { arg layout; // has a select button var minWidth,prev=0,indicators,wrapEvery; ActionButton(layout,"release",{ this.releaseAll }); if(model.list.notEmpty,{ minW ...
-
... editor.object }; } { editor.front; }; }; ^editor; } setViews { |inWFSPath| var rect; if( wfsPath.isWFSPath2 && { (rect = wfsPath.asRect).notNil } ) { view.fromBounds = rect.scale(1@ -1).insetBy(-2,-2); } { view.fromBounds = Rect(0,0,20,20) ...
-
... one, and the hilite area shows the range. ( w = Window ( "SmoothRangeSlider" , Rect ( 300 , 150 , 220 , 220 ) ).front; b = SmoothRangeSlider ( w, Rect ( 90 , 30 , 40 , 160 ) ) .lo_( 0.25 ) .hi_( 0.75 ) .action_({ |sl| [ sl.lo, sl.hi, thisT ...
-
... Display = false }; options.largeDisplayBounds ?? { options.largeDisplayBounds = Rect(window.bounds.left - 670, 900, 600, 600)}; options.infoDisplay ?? { options.infoDisplay = false }; options.cueButtonFont ?? { options.cueButtonFont = Font( ...
-
... minSize: %\n".postf(minSize); } calcBounds { var defBounds; if(bounds.isKindOf(Rect)) { bounds.setExtent( max(bounds.width, minSize.x), max(bounds.height, minSize.y) ); ^this }; defBounds = Rect.fromPoints(defPos, defPos + minSize + (skin. ...
-
... minSize: %\n".postf(minSize); } calcBounds { var defBounds; if(bounds.isKindOf(Rect)) { bounds.setExtent( max(bounds.width, minSize.x), max(bounds.height, minSize.y) ); ^this }; defBounds = Rect.fromPoints(defPos, defPos + minSize + (skin. ...
-
... + 1; xsize = 300; ysize = 105+130+10; w = w ?? { w = Window.new("DMX Control", Rect(xposScreen, yposScreen, xsize + 10, ysize)).front; //w.view.background_(Color.black); w.view.decorator = FlowLayout(Rect(4, 4, w.bounds.width, w.bounds.hei ...
-
... 2f"); ^(prefix + value); } } showTooltip { |x, y| var text = this.makeText; var rect = Rect(x, y, (text.size+1) * 6, 20); hideTooltipTask.notNil.if({ hideTooltipTask.stop }); if (SGME_TooltipHandler.enabled.not) {^this}; tooltipWindow.notNi ...