-
... perior topPanelBounds = Rect(0, 0, window.bounds.width, halfHeight); topPanel = UserView(compositeView, topPanelBounds) //.background_(Color.red) .canFocus_(true); topPanel.mouseDownAction_({|view, x, y, modifiers, buttonNumber, clickCount| ...
-
... req, amp; var temp; var black, white; var counter=0; //for scrolling around var userview; var drawdataready=false, drawpos=0; var i, t; //var drawupdate = drawaccum/ var bufferfetchwait = (1.0/172.0); var drawupdatex = drawaccum*xperframe; ...
-
... }); [r,g,b].do({|item| item.sliderView.canFocus_(false) }); color = UserView(w,Rect(160,0,64,64)) .background_(Color.black) .enabled_(true) .mouseDownAction_({ color.background.postln;}) .beginDragAction_({color.back ...
-
... .fill2D(xSize,ySize,{ [0, 1, 1, 0, 0].choose }); ~arr = arr; }; uview = UserView.new(win, Rect(0, 0, xSize*scale, ySize*scale)); uview.clearOnRefresh = true; uview.drawFunc = { |uview| xSize.do { |x| ySize.do { |y| Pen.fi ...
-
... in other words, different interfaces. Keyboard input Window 'inherits' from the UserView action system. It can respond to mouse and keyboard events. See the UserView help file for more information about this. Another way to interact with th ...
-
... = pos; lastVal = val; update.value; }; canvas = UserView(w, Rect(0, 30, 800, 300)) .background_(Color.white) .animate_(true) .mouseDownAction_(draw) .mouseMoveAction_(draw) ...
-
... r; // Crear una vista personalizada para la barra de progreso progressBarView = UserView(window, Rect(50, windowHeight - 50, windowWidth - 100, 20)) .background_(Color(0.8, 0.8, 0.8)) // Fondo de la barra de progreso .drawFunc_({ |view| var ...
-
... it(server) } init {|server| tServer = server; window = Window.new.front; view = UserView(window, window.view.bounds).background_(Color.white); fillColors = [ Color(0.367, 0.713, 0.714, 0.5), Color(0.854, 0.765, 0.383, 0.5), Color(0.849, 0.8 ...
-
... icalScroller_(false); b.background = Color.grey; c.background = Color.grey; d = UserView(a, Rect(0, 0, 620, 620)); e = UserView(b, Rect(0, 0, 40, 630)); f = UserView(c, Rect(0, 0, 630, 40)); a.action = { var origin; origin = a.visibleOrigin ...
-
... aticText(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 ...