-
... , Rect(160, 0, window.bounds.width - 165, window.bounds.height)); surfaceView = UserView(compositeBack, Rect(0, 0, window.bounds.width - 165, window.bounds.height)) .focusColor_(Color.gray(alpha: 0)) .background_(Color.white) .mouseOverActi ...
-
... teFunc; var pen, font; pen = GUI.current.pen; font = Font.sansSerif(10); view = UserView.new(parent, Rect(0,0,400,400)); view.drawFunc = { var xtabs = 0, ytabs = 0, drawFunc; drawFunc = {|group| var thisSize, rect, endYTabs; xtabs = xtabs + ...
-
... tent), 10 + padExtent, 0, 0] } }.flatten; } createView {|parent, extent| view = UserView(parent, extent); view.background_(Color.clear); view.drawFunc = {|uview| var vals = manta.values.pad; //navigateIdx.postln; rects.do{|rect, i| this.dra ...
-
... alpha_(0.5); fontName = fontName ? "Monaco"; fontSize = inFontSize ? 20; view = UserView( parent, Rect( inBounds.left, inBounds.top, (fontSize * 7.2) + 2, fontSize * 1.2 ) ) //.relativeOrigin_( false ) //.canFocus_( false ) ; view.drawFunc ...
-
... = argRadius; toggleSize=argToggleWidth; argBounds=argBounds.asRect; this.view = UserView(argParent, argBounds); this.view.mouseDownAction={ arg v, x, y, modifiers, buttonNumber, clickCount; this.mouseDown(x, y, modifiers, buttonNumber, clic ...
-
... = NTMI.nUFO.rawImuBiValues; NTMI.g.main.movevals = 0.25!9; NTMI.g.main.imuUV = UserView(nil, 666@666).front; NTMI.g.main.imuUV.drawFunc = NTMI.g.main.imuUVMFunc; nUFO pad dimensions: area outerpads: w: 12.5, h: 9.5 area innerpads: w: 9.3, ...
-
... s = Rect.aboutPoint( bounds.center, wheight * 0.5, wheight * 0.5); main.bigUV = UserView(w, main.bigUVBounds) .canFocus_(false); main.bigUVMFunc = MFunc(); main.bigUV.drawFunc = main.bigUVMFunc; LoadMe("subsParts/bigUV.scd", NTMI.g.dir); ma ...
-
... ntered var <>mouseDownAction, <>mouseUpAction, <>mouseMoveAction; *viewClass { ^UserView } *initClass { defaultMode='vert'; modes = [\vert, \horiz, \round, \blend,\clear, \button]; textModes = [\both,\switch,\label,\value]; aligns = [\left, ...
-
GMUserView : UserView { var thisStyle; var thisDisplayBackground = true; var thisDisplayBorder = true; *new { |parent, bounds| ^super.new.init; } *initClass { // Those classes needs to be compiled // BEFORE we can compile this particular cl ...
-
... |sine, i| ((inAngle + angle) * (i+1) * n).cos * sine; }).sum; }; vws[ \plot ] = UserView( view, (subViewHeight@subViewHeight) * 4 ) .background_( Color.gray(0.5) ) .drawFunc_({ |vw| var radius, points, pos, n = 64; radius = (vw.bounds.width ...