-
... { var numv,slv; smallGui { arg layout; var l; l=this.guify(layout); this.box(l,Rect(0,0,40,GUI.skin.buttonHeight)); if(layout.isNil,{ l.front }); } guiBody { arg layout,bounds,slider=true, box=true; var h,w,p,gap; bounds = (bounds ?? {layo ...
-
... var numv, slv; smallGui { arg layout; var l; l=this.guify(layout); this.box(l, Rect(0, 0, 40, GUI.skin.buttonHeight)); if(layout.isNil, { l.front }); } guiBody { arg layout, bounds, slider=true, box=true; var h, w, p, gap; bounds = (bounds ...
-
... : 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 ...
-
... ose window if(uni == 27, {animateFn.stop;win.close;}) }); StaticText(win, Rect(60,100,384,48)) .font_(Font(Font.defaultSansFace, 36)) .stringColor_(Color.gray(0.8)) .string_("wavetable 0") .align_(\center); StaticText(win, Rect ...
-
... 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 ...
-
... tates and current state reassignment. ( var win = Window( "MultiButtonView", Rect( 0, 300, 600, 150 ) ); var multi_button_view; // State = [ "Displayed Text", Text Color if selected, Border Color if selected, BG Color if selected, ...
-
... auchy (0.0, 1.0, inf ); c = a.asStream.nextN(500); w = Window .new( "Pcauchy" , Rect (10, 10, 540, 800)); // plot the values c.plot(bounds: Rect (10, 10, 520, 380), discrete: true , parent: w); // a histogram of the values c.histo(500).plot ...