-
... 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 ...
-
... andardizePath,\n\tnil, //\"AIFF\" \"WAVE\"\n\t\"int16\"\n)" ); }, ['template', 'userview'], { Document( "userview", "(\nvar width= 500, height= 500;\nvar win= Window(\"animation template\", Rect(300, 300, width, height), false);\nvar usr= U ...
-
... ds| ^super.newCopyArgs.init( parent, bounds ); } init { |parent, bounds| view = UserView( parent, bounds ); color = Color.blue; all.add( this ); view.onClose = { onClose.value; this.task.stop; all.remove( this ) }; view.canReceiveDragHandle ...
-
... ds| ^super.newCopyArgs.init( parent, bounds ); } init { |parent, bounds| view = UserView( parent, bounds ); color = Color.blue; all.add( this ); view.onClose = { onClose.value; this.task.stop; all.remove( this ) }; view.canReceiveDragHandle ...
-
... taticText(zone, Rect(0,0,50, 20)) .font_(font).string_("weights"); inNameView = UserView(zone, Rect(0,0, 200, 20)) .resize_(2); // elastic horiz inNameView.drawFunc = { |u| inNames.do { |name, i| var wid = u.bounds.width / inNames.size; Pen ...
-
... taticText(zone, Rect(0,0,50, 20)) .font_(font).string_("weights"); inNameView = UserView(zone, Rect(0,0, 200, 20)) .resize_(2); // elastic horiz inNameView.drawFunc = { |u| inNames.do { |name, i| var wid = u.bounds.width / inNames.size; Pen ...
-
... ds ); } init { |parent, bounds| view = CompositeView( parent, bounds ); uview = UserView( view, view.bounds.moveTo(0,0) ).enabled_( true ); uview.mouseUpAction_({ |vw ...args| mouseUpAction.value( this, *args ); action.value( this, *args ); ...
-
... and green line left bot - what to put there? Window.closeAll; TODO: split in 4 UserViews that rescale, keeping proportions as is update inVals UV when invals change, outvals when outvals change // hm, cant bench graphics costs? bench { u.r ...