-
... s, { this.refresh }) .put( \curves, { this.refresh }); } refresh { if( plotView.userView.view.isClosed.not ) { { plotView.refresh }.defer; }; } selected_ { |index| selected = index; this.changed( \selected, selected ); this.refresh } select ...
-
... n.view.mouseMoveAction; win.front; CmdPeriod.doOnce({win.close}); //--plot usr= UserView(win, Rect(*#[0.1, 0.08, 0.88, 0.84]*win.bounds.extent.asArray)); img= Image(usr.bounds.width.asInteger, usr.bounds.height.asInteger); img.interpolation ...
-
... = Rect(0, 0, 400, max(400, tabSize * (countSize.value(levels) + 2))); // view = UserView.new(window, bounds); // // view.drawFunc = { // var xtabs = 0, ytabs = 0, drawFunc; // // drawFunc = {|group| // var thisSize, rect, endYTabs; // xtabs ...
-
... ew(123); // now type "x = x + 1" // -> 2 // 2. Window resize by code loops when userview with drawfunc is present. m = MView(123); m.drawFunc.disable(\all); m.parent.bounds_(Rect(100, 100, 150, 24)); // crash m.parent.bounds_(m.parent.bound ...
-
... tationProb = 0.2; win = Window .new( "TSP" , Rect (300, 300, 500, 500)); view = UserView (win, win.view.bounds).background_( Color .black) .drawFunc_ ({ var fittest = gaInstance.genePool[0]; points.do ({ |pnt, cnt| Pen .color = if(cnt == 0, ...
-
... LinesButtonLeft, ampLinesButtonRight, ampLinesPopup; var ampUsr, ampUsrAnim, ampUserView; var ampLfoDepthElement= SGUIelement(); var ampLfoDepthSpec= ControlSpec(0, 100, 'lin', 1, defaultAmpLfoDepth, "%"); var ampLfoRateElement= SGUIelement ...
-
... bounds = Rect(bounds.left+1, bounds.top+1, bounds.width, bounds.height); view = UserView(w, bounds); bounds = bounds.moveTo(0,0); // my reference boxWidth = bounds.width.asFloat / numCols; boxHeight = bounds.height.asFloat / numRows; view.f ...
-
// wslib 2006 // scaled SCUserView // 2007: altered for SC3.2 compatibility // 2009: altered for SwingOsc compatibility // TODO: correct half pixel problem for mouse feedback ScaledUserView { classvar <>defaultGridColor; var <gridColor; var ...
-
... oa, { tablet = TabletView(win,Rect(0, 0, screenX, tabletScreenY)) }, { tablet = UserView(win,Rect(0, 0, screenX, tabletScreenY)) } ); tablet.background = Color.white; tablet.canFocus = false; if ( GUI.id == \cocoa, { tablet.mouseDownAction ...
-
... onState(bypassButton, false, activeOrbit, \activeCompressor); comporessorView = UserView(compressorFeedback, compressorFeedback.bounds); comporessorView.background_(Color.grey(0.95)); // Draw the comporessorView comporessorView.drawFunc = { ...