-
//f.olofsson 2019 SGUI { //abstract class classvar currentPalette, <>font, <>themes, <currentTheme; var <view, >action; *initClass { themes= ( dark: QPalette.dark.highlight_(Color.green(1, 0.75)), light: QPalette.light.highlight_(Color.gree ...
-
... , bounds).front}, bounds) }, draw: { arg pen, bounds, style; pen.color = style['fontColor']; pen.font = style['font']; if(style['center'], { pen.stringCenteredIn(~name.value, bounds) }, { pen.stringLeftJustIn(~name.value, bounds.insetBy(2, ...
-
... ath.asWFSPath2.draw( 1, pixelScale: vw.pixelScale * 1.5, color: color); } { Pen.font = Font( Font.defaultSansFace, 16 ); Pen.color = Color.red(0.66); Pen.stringAtPoint( "?", 5@0 ); }; }) .mouseDownAction_({ |vw, sx, sy, mod, x, y, isInside, ...
-
... = StaticText.new(this); subView.string = parameterName.asString ++ ":"; subView.font = Font(Font.defaultSansFace, bold: true); currentLayout.add(subView); labelString = ""; lineHeight = 0; totalHeight = 0; // NumberBox // RangeSlider // Sco ...
-
... ct(0,40,50,20))); StaticText(v,Rect(0,60,50,20)) .string_(name).align_(\center).font_(Font("Futura", 10)); }; }, simpknob: { |win, name, cv, rect| var v; ~label.value(win, name); cv.asArray.do { |cv| v = CompositeView(win, Rect(0,0,50,60)); ...
-
... awFunc = { |uv| Pen.stringCenteredIn( "q.draw.demoUV.drawFunc runs", uv.bounds, Font("Futura", 24), Color.white ); }; // make sure history has a line History.enter("// this is a historic line"); // and show the last entered code line on the ...
-
... var minNumLines = 5; var scrollRatio = 1/8; var keepCursorCentered = true; var font = Font(Font.defaultSansFace, 10); margin = margin ?? { 30 @ 30 }; xmargin = margin.x; ymargin = margin.y; bounds = bounds ?? { Rect(20, 30, 800, 300) }; wi ...
-
... Butz.style.winCol = Color.red(1, 0.8); Butz.style.winExtent_(60@16); Butz.style.font.name = Font.defaultMonoFace; Butz.style.font.size = (18 * (NTMI.g.screenScale ** 0.5)).round; "// Butz font: %\n\n".postf(Butz.style.font); Butz.show; Butz ...
-
... overriden by individual tabs <>tabViews, // array of TabbbedViewTab instances <font, // default Font. cannot be overriden by individual tabs <resize = 1, <>detachedClosable=true, <>archiveKeys, <activeTab, <>changeAction, // execute on cha ...
-
... rPos.add(1.0.rand) }); selbPool = GUI.popUpMenu.new(win, Rect(10, 5, 102, 16)) .font_(GUI.font.new("Helvetica", 9)) .items_(if(XQ.poolNames == [], {["no pool", "no pool 2"]}, {XQ.poolNames})) .value_(1) .background_(Color.white) .action_({ ...