-
... eViewController; *initClass { StartUp.defer({ DrawIcon.drawFuncs.put( \lock, { |rect| var size = rect.width.min( rect.height ) * 0.8; var radius = size/6; var corners = [ -1 @ 0, -1 @ -2, 1 @ -2, 1 @ 0 ] * radius; Pen.use({ Pen.translate( * ...
-
... in ?? { 30 @ 30 }; xmargin = margin.x; ymargin = margin.y; bounds = bounds ?? { Rect(20, 30, 800, 300) }; window = Window(name, bounds); window.front; window.background = backgroundColor; userView = UserView(window, Rect(0,0,window.bounds.w ...
-
... tmap Images so } bitsPerSample { ^scns_obj.invoke("bitsPerSample"); } bounds { ^Rect(0,0,this.width, this.height); } drawAtPoint { |aPoint| Pen.use { Pen.translate(aPoint.x, this.height+aPoint.y); Pen.scale(1.0, -1.0); scns_obj.invoke("draw ...
-
... t { var bnd, cmWin, tBox; bnd = Window.screenBounds; cmWin = Window("Command:", Rect((bnd.width/2) - 100, (bnd.height/2), 200, 40), resizable: false); tBox = TextField(cmWin, Rect(10, 10, 180, 20)).focus(true) .action_ ({|txt| Executor.last ...
-
... } show { |name, bounds| if (w.isNil or: { w.isClosed }) { bounds = bounds ?? { Rect(20, 20, 300, 100) }; w = Window("osc msg mon", bounds).front; w.addFlowLayout; Button(w, Rect(0,0, 45, 20)).states_( [[\on, Color.black, Color.grey(0.7)], ...
-
... clean string.".postln; }); } *makeCleanerWindow { var w; w = Window("cleaner", Rect(0,0,140, 60)).front; w.view.decorator = FlowLayout(w.bounds.copy.left_(0).top_(0)); Button(w, Rect(0,0,120,20)) .states_([["clean current doc"]]) .action_ ...
-
... clean string.".postln; }); } *makeCleanerWindow { var w; w = Window("cleaner", Rect(0,0,140, 60)).front; w.view.decorator = FlowLayout(w.bounds.copy.left_(0).top_(0)); Button(w, Rect(0,0,120,20)) .states_([["clean current doc"]]) .action_ ...
-
... e("Courier New") ? Font.defaultSansFace, 10); bounds !? { thisBounds = bounds.asRect }; if(parent.isNil) { window = Window("shortcut editor:"+name, thisBounds ?? { thisBounds = Rect( Window.screenBounds.width-600/2, Window.screenBounds.heig ...
-
... : 0.0 ) }.dup(board.numChannels); //--window var win= Window("fft plot widget", Rect(1000, 1000, 512, 338));//changed by kh to be top right; var fs= "Frequency (Hz)"; var as= "Amplitude (uV)"; win.view.minSize= Size(502, 145); win.backgroun ...
-
... licenses/>. It is possible to add more type instances by adding the functions directly to the dict from the initClass function of the class that one wants to make an instance of some type class. Memory tests: ~consume = { |xs| 0.01.wait; "p ...