-
... bounds.width; thisHeight = bounds.height; }); parent ?? { parent = Window(name, Rect(thisX, thisY, thisWidth+14, thisHeight+7), server: server) }; // parent.acceptsMouseOver_(true); cvcGui ?? { parent.onClose_({ this.size.do({ |slot| if(edi ...
-
... f, height, tf, source, width=600; var l; l = layout ?? {PageLayout(~name.value, Rect(0, 0, 500, 600))}; // set spec here, must recable it then ~spec.gui(l); l.startRow; source = ~source.asCompileString; f = GUI.font.new("Courier", 12.0); he ...
-
... Point(0, 0)}!3; buffer.start; win= Window("gui example userview accelerometer", Rect(10, 100, width, height)).front; win.view.background= Color.white; img= Image(width, height); imgFunc= { img.draw({ data.do{|xyz| height.do{|y| img.setColor ...
-
... if( skin.font.class != Font.implClass ) { // quick hack to make sure font is correct skin.font = Font( Font.defaultSansFace, 11 ); }; if( parent.isNil ) { parent = chain.class.asString; }; if( parent.class == String ) { if( (singleWindow an ...
-
... title bar. An instance of String or Symbol . The default is 'panel'. bounds - A Rect or Point specifying the size of the window. The size does not include the title bar. N.B. App Modal windows are centred on the screen when created, so if y ...
-
... (\dim); var color = Color.black.blend(fixture.getColor, dim); var colorBounds = Rect( 0, 0, *extentHalf.asArray ); var dimString = "\tdim: %" .format(fixture.getRaw(\dim)); var dimStringBounds = Rect( 0, 0, extentHalf.x * 2, extentHalf.y ); ...
-
... bounds.width; thisHeight = bounds.height; }); parent ?? { parent = Window(name, Rect(thisX, thisY, thisWidth+14, thisHeight+7), server: server) }; // parent.acceptsMouseOver_(true); cvcGui ?? { parent.onClose_({ #[lo, hi].do({ |hilo| if(edi ...
-
... ght= 300, w, wgrav, world, n= 1, ploc; //--world w= RedWindow("pendulum test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.02); //dim,grav,maxvel,damp //--objec ...
-
... ght= 300, w, wgrav, world, n= 1, ploc; //--world w= RedWindow("pendulum test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.02); //dim,grav,maxvel,damp //--objec ...
-
... t is embedded. Otherwise a new Window is created. bounds - the window bounds (a Rect ) ( a = Plotter ( "the plot" , Rect (600, 30, 800, 250)); a.value = (0..1000).normalize(0, 14pi).curdle(0.01).scramble.flat.sin; ) something. plot2(args) / ...