-
... : ViewTester { test_startRow { var f,g,a,b,c; f = FlowView.new(w); a = Slider(f,Rect(0,0,100,100)); b = Slider(f,Rect(0,0,100,100)); f.startRow; c = Slider(f,Rect(0,0,100,100)); this.assert( a.bounds.left < b.bounds.left,"b should not be on ...
-
/* divide a rect into grids A1 A2 3 4 5 6 ... 24 B1 B2 B3 request a rect as A1 B2 it can add gutter if you need it previously known as GridLayout */ GridLayoutCalc { var <>bounds,<>numCols,<>numRows,<>gutter; var <colWidth,<rowHeight; *new ...
-
... r); } initGrid { arg w, argbounds, argcolumns, argrows, argborder=false; var p, rect, pen; lazyRefreshFunc = { this.refresh; refreshDeferred = false; }; bounds = argbounds ? Rect(20, 20, 400, 200); bounds = Rect(bounds.left , bounds.top , b ...
-
... tGui { var <sub,<get; var <xsize = 185; addSubButton{ sub = GUI.button.new( cw, Rect( 0, 0, 25, 16 )).states_( [ [ "Sub", Color.blue ], ["Uns", Color.red ] ] ).action_( { |but| parent.subSlot( slot.id, but.value ); }).font_( font ); } addGe ...
-
... eset; var pp, w, ppg, ng, hlv, vlv1, vlv2, butrow, randerButs; w = Window(name, Rect(450, 0, 387+100, 440)); w.alpha_(NTMI.g.alpha).front; hlv = HLayoutView(w, w.bounds.moveTo(0,0)); vlv1 = VLayoutView(hlv, Rect.new(0,0, 100, hlv.bounds.hei ...
-
SVGRect Part of wslib see also: SVG , SVGFile superclass : SVGObject The SVGRect holds the data for a rectangle creation SVGRect ( x, y, width, height, rx, ry, name, strokeColor, fillColor, strokeWidth, transform ) creates a new object with ...
-
... ) ]; } unmap { |value| var index; index = list.indexOf( value ); // first try direct (faster) if( index.notNil ) { ^index; } { if( value.isNumber.not ) { value = value.asSymbol; }; ^indexMap[ sortedList.indexIn( value ) ] ? defaultIndex; }; ...
-
... ing? var w; loc = loc ?? {400@300}; name = this.checkName(name); w = Window("", Rect(loc.x, loc.y - 40, 150, 40), false); StaticText(w, Rect(0,0,70,20)).align_(\center).string_("name set:"); TextField(w, Rect(70,0,70,20)).align_(\center) .s ...
-
... t prototypes may be classes or instances of AdhocClass. viewBounds: An Array of Rect objects specifying the bounds of each view, relative to the top left corner of the channel. Example: This is the default MixerGUIDef, suitable for stereo m ...
-
... t prototypes may be classes or instances of AdhocClass. viewBounds: An Array of Rect objects specifying the bounds of each view, relative to the top left corner of the channel. Example: This is the default MixerGUIDef, suitable for stereo m ...