-
... h_(150) ) ).front; ) ⧉ ✔ The minimum size of a view is especially important for UserViews which doesn't have by default a minimum size. In the example the first UserView is invisible. ( w = Window.new(bounds:Rect(100,100,200,200)).layout_( ...
-
... ctaves= 8; w= Window("perlin test 1d", Rect(128, 64, width, height), false); u= UserView(w, Rect(0, 0, width, height)); u.background= Color.black; a= RedPerlin.new; u.drawFunc= { Pen.strokeColor= Color.white; width.do{|x| Pen.addRect(Rect.a ...
-
... a cross for creating graphical interfaces Location: NOT INSTALLED! See also: GMUserView , GMStyle Description GMCloseButton is an easy to use customisable button. It natively displays a cross, suggesting pressing it will close the currentl ...
-
... 46269, 0.96588486140725, 1.0); width = min(layout.bounds.width, 200); // view = userView ?? { UserView(layout, bounds ?? { Rect(0, 0, 100, 800) }) }; ActionButton(layout, "..", { this.drillUp }); searchBox = TextField(layout, (width-28)@17) ...
-
... ize= Size(22, 22); var button; Window().front.view.layout_( StackLayout( UserView().drawFunc_{|usr| Pen.strokeColor= Color.black; Pen.width= 1; Pen.translate(size.width/2, size.height/2); ~drawCogs.value(size.height/2 ...
-
... tion of the 5th through 11th columns is related to the Q-factor."); view = UserView(win, Rect(0, 160, w, h-430)); vIn = true; view .mouseDownAction_{ |view, x, y, modifiers, buttonNumber, clickCount| if(buttonNumber==0 & ...
-
... speed = 200; win = Window("LSPlant", winBounds).onClose_(this.stopDraw); view = UserView(win, win.view.bounds) .clearOnRefresh_(false) .background_(Color.black) .drawFunc_ ({ var dx, dy, nextP; if(willDraw, { dx = ((headingStack.last * (pi ...
-
... , 30, 10 )) .font_(Font("Helvetica", 8)) .string_(i.asString) } ; u = UserView(w, Rect(0, 20, d, e)).background_(Color.white) ; f = {|v, f2, f1| StaticText(u, Rect(f2.linlin(500, 2500, d, 0), f1.linlin(200, 800, 0, e)-18, ...
-
... AUTHOR: Marinus Klaassen (2012, 2021Q3) * * TODO make een single press base SCMUserView voor delete and plus button */ SCMButtonDelete : UserView { var pressed=false, strokeColor, highLightColor; *new { |parent, bounds| ^super.new(parent, ...
-
... n2iRect = bounds.extent.asRect.top_(hi * 0.8).height_(hi * 0.2); var nUFOView = UserView(nUFOZone, uvRect) .background_(NTMI.g.butGrey); NTMI.g.main.nUFOView = nUFOView; nUFOView.drawFunc_({ |uv| var bounds = uv.bounds.extent.asRect; Pen.ad ...