-
... t(100, 250, bounds.width + 40, bounds.height+30)); win.front }); mouseTracker = UserView.new(win, bounds); // thanks ron! bounds = mouseTracker.bounds; pen = Pen; startnote = argstartnote ? 48; trackKey = 0; //pix = [0, 6, 10, 16, 20, 30, 3 ...
-
... (true); cWin.view.keyDownAction_({|...args| this.handleKeys(*args); }); cView = UserView(cWin, cWin.view.bounds) .background_(Color.white) .resize_(5) .drawFunc_ ({ var tempRect; var tempDist; Pen.color_(Color.black); if(cablePointsBucket.s ...
-
... Pen.stroke; Pen.pop; }; win.front; CmdPeriod.doOnce({win.close}); //--plot usr= UserView(win, Rect(*#[0.14, 0.19, 0.8, 0.64]*win.bounds.extent.asArray)); usr.background= Color.new255(245, 245, 245, 220); usr.clearOnRefresh= true; usr.drawFu ...
-
... moveTo((extX*0.5)@(0)); Pen.lineTo((extX*0.5)@(extY)); Pen.stroke; }; }; plot = UserView.new(parent, bounds) .drawFunc_({|w| var width, height, rect, pad = 10; if (drawAxis) { pad = 60 }; width = w.bounds.width - pad; height = w.bounds.heig ...
-
... opUpMenu(), stretch:1], clearButton= Button().states_(#[["Clear"]]) ), usrView= UserView().minSize_(Size(winRect.width-22, winRect.height*0.75)), midiNotesText= TextView().maxHeight_(22), midiVelocitiesText= TextView().maxHeight_(22), HLayo ...
-
... ag A Boolean. Actions and hooks . drawFunc . drawFunc = aFunction Just like the UserView , the window can be given a Function to evaluate whenever it is asked to redraw itself, so you can use the Pen class to draw on the window. See UserVie ...
-
... s.pr_drawArrow(rr)}); }; }; showArrow.booleanValue.and(btnClass=="Button" ).if{ UserView(button,rr).drawFunc_({this.pr_drawArrow(r)}); }; button.action=this.prButtonAction; } toolTip_{arg str; button.toolTip_(str); button.refresh; } pr_draw ...
-
... entGrid.deepCopy; view.refresh; } ) }) .onClose_({ playRoutine.stop; }); view = UserView(win, win.view.bounds) .clearOnRefresh_(false) .background_(Color.black) .drawFunc_ ({ if(isPlaying, { Pen.color = Color.gray(0, alpha: fadeAmount); }, ...
-
... \\ \;\ vv = GUI .compositeView.new(w, b2).background_( Color .black);\ v = GUI .userView.new(vv, Rect (0, 0, w.bounds.width, w.bounds.height))\ \ .mouseMoveAction_(\ |v,x| mapVal.value(x) \)\ .mouseUpAction_(\ |v,x| mapVal.value(x); changed ...
-
... r = Color.black; gridNodes = Array.newClear(columns) ! rows; mouseTracker = GUI.userView.new(win, Rect(bounds.left, bounds.top, bounds.width+1, bounds.height+1)); //bounds = mouseTracker.bounds; pen = GUI.pen; columns.do({arg c; rows.do({ar ...