-
... ssn.value > 0) { str = str ++ assn.key; }; }; str }, modStr, mod, code, window, userView, cond = Condition.new, rout, // how to tell when the user hit the real key? // it's different for each supported OS. yup. Qt is "cross platform" done = ...
-
... ector3D[0.25, 0, 0]); a.points; a.update; a.render(2, 100); a.renderedPoints; ( UserView().front.animate_(true).drawFunc_{|u| Pen.translate(75, 75); a.rotation_(RedVector3D[0, u.frame*0.01, u.frame*0.05]); a.update; a.render; a.draw; }; ) ⧉ ...
-
... tation_(RedVector[0, 0, 0, 0, 0, 0.2]); a.update; a.render; a.renderedPoints; ( UserView().front.animate_(true).drawFunc_{|u| Pen.translate(75, 75); a.rotation_(RedVector[0, 0.5, 0, 0, 0, u.frame*0.01]); a.update; a.render(2, 100); a.drawOu ...
-
... Rect(100, 200, 400, 400)}; var win= Window(this.class.name, b, false); var usr= UserView(win, Rect(0, 0, b.width, b.height)); usr.background= background ?? {Color.white}; usr.drawFunc= { Pen.translate(b.width*0.5, b.height*0.5); this.draw(b ...
-
... .string_("Click to launch instrument..."), GridLayout.rows( *images.collect{|x| UserView().drawFunc_{|usr| Pen.stringAtPoint(x.key.asString.drop(1), 50@50, Font(SGUI.font.name, 64))} .setBackgroundImage(x.value, 10).mouseUpAction_{SInstrume ...
-
... cancel in the right places, and always add up. BTW this example has a lot of UserView tricks. Note, for example, that to do the animation, I had to set a state variable *outside* the scope of the drawFunc, and 'refresh' the UserView to u ...
-
... n = Window( "Switch", Rect( 0, 300, 200, 300 ) ); var switch; var demo_view = UserView(); var demo_string = "Hello World"; var demo_states = [ ["Never", Color.black, Color.white, Color.red ], ["Gonna", Color.black, Color.white, C ...
-
... win.addFlowLayout( layoutMargin, layoutGap); views = fixtures.collect{|fixture| UserView(win, viewExtent) .drawFunc_{|me| var bounds = me.bounds.moveTo(0,0); fixture.desc[\drawFunc].value(fixture, bounds) } }; this.frameRate_.animate_(true) ...
-
... DragHandler; var <>task; var <>color; *new { |parent, bounds| ^super.new.view_( UserView( parent, bounds ) ).init; } init { color = Color.blue; view.canFocus_( false ); view.canReceiveDragHandler_({ |vw, x,y| var last; if( x.notNil ) { last ...
-
... DragHandler; var <>task; var <>color; *new { |parent, bounds| ^super.new.view_( UserView( parent, bounds ) ).init; } init { color = Color.blue; view.canFocus_( false ); view.canReceiveDragHandler_({ |vw, x,y| var last; if( x.notNil ) { last ...