-
... dict[\hiRect] = dict[\bounds00].copy .width_(dict[\width] * 0.5); } drawLabel { Pen.stringLeftJustIn( dict[\label], dict[\boundsLabel], dict[\font], dict[\labelCol] ); } adjustFont { |str, font, rect| var drawSize = QtGUI.stringBounds(str, ...
-
... inlets, outlets); }, save: { [] }, load: { MxChannelInput.new } /*, draw: { arg pen, bounds, style; ~source.draw(pen, bounds, style) } */ ));
-
... Nil ) { curves = env.curves.asCollection.wrapExtend(env.times.size); if( Env.shapeNumber( curves[selectedLine] ) == 1 ) { curves[selectedLine] = 0; }; if( curves[selectedLine].isNumber ) { if( pts[selectedLine].y > (pts[selectedLine+1].y) ) ...
-
... e. Arguments: string A label for the separator. These are not always visible, depending on your OS and context. Inherited class methods Undocumented class methods MenuAction. qtClass Instance Methods . string . string = str From superclass: ...
-
... ue); q.drawFunc_({ ~allPoints.do({ |pos, index| if ((index > 0), { Pen.fillColor = "000000"; Pen.line( Point(~allPoints[index-1][0], ~allPoints[index-1][1]), Point(pos[0], pos[1])); Pen.stroke; }); }); }); ) / ...
-
... w(win, Rect(10,10,280, 680)) .canFocus_(false) .drawFunc_({ if(GUI.id==\cocoa, {Pen.setShadow(1@1, 5, Color.black) }); GUI.pen.translate(0.5,0.5); 8.do({|i| GUI.pen.line(Point(30+(i*30), 10), Point(30+(i*30), 670)) }); // strings 6.do({|i| ...
-
... r_(Color) - The background color of the view. setBackgrDrawFunc_(func) - Allows Pen to draw behind the nodes and connections. setSelectFillColor_(Color) - The color of the rect when selecting nodes. setSelectStrokeColor_(Color) - The stroke ...
-
... var radius = size/6; var corners = [ -1 @ 0, -1 @ -2, 1 @ -2, 1 @ 0 ] * radius; Pen.use({ Pen.translate( *rect.center.asArray ); Pen.fillRect( Rect( size.neg * 0.25,0, size / 2, size / 3 ) ); 2.do({ Pen.moveTo( corners[0] ) .arcTo( corners[ ...
-
... SGUI.report(win); SGUI.adapt(win); backgroundImage= Image(500, 500).draw({|img| Pen.width= 0.25; Pen.strokeColor= palette.highlight; 60.do{ Pen.moveTo(Point(25.gauss(25), 25.gauss(25)+img.height)); Pen.curveTo( Point(25.gauss(25)+img.width, ...
-
... i kits, and also provides syntax for transparently writing kit and platform independent code. Two main classes control this mechnanism: the gui factory abstraction class, GUI , and the subclasses of ViewRedirect , which transparently uses t ...