-
// W. Snoei 2005 + SCWindow { // SC2 methods views { ^view.children } at { |index| ^view.at(index) } @ { |index| ^view.at(index) } //// window code generator: // only the window asCode { |varName = "w"| ^( varName.asString ++ " = GUI.window ...
-
... GameOfLife Unit Library. If not, see <http://www.gnu.org/licenses/>. */ FilePathView { classvar <>clipboard; var <value; var <views, <view; var <viewHeight = 14; var <>action; var <>defaultStringColor; var <font; var <>allowEmpty = false; v ...
-
+ SCWindow { /* asNSWindow { var view, window; view = SCNSObject.newFromRawPointer(dataptr); window = view.invoke("window"); view.release; ^window; // you own it - call release once you do not need it anymore } */ background_ { |color| var ...
-
... GameOfLife Unit Library. If not, see <http://www.gnu.org/licenses/>. */ EnvPlotView { var <env, <view, <plotView, <ctrl; var <active = true; var <selected; var <selectedLine; var <>font, <>viewHeight = 14, <resize = 5; var <min = 0, <max = ...
-
... rBoxClass { ^SmoothNumberBox } staticTextClass { ^StaticText } init { arg parentView, bounds, label, argControlSpec, argAction, initVal, initAction, labelWidth, argNumberWidth,argUnitWidth, labelHeight, argLayout, argGap, argMargin; var lab ...
-
MKtlElementView { classvar <>makeViewFuncDict; var <element; var <>parent, <>view, <>value, <>getValueFunc; var <>snapbackValue = 0, <snapback = false; *new { |parent, bounds, element, redirectView| // "% : redirectView is % \n".postf(thisM ...
-
... | ^value.asUReplyKey( spec ); } map { |value| ^value } unmap { |value| ^value } viewNumLines { ^1 } makeView { |parent, bounds, label, action, resize| var vws, view, labelWidth; var ctrl, strWidth; vws = (); // this is basically an EZButton ...
-
... * Sciss 2009 / WS 2009 * part of wslib (temporarily?) * * A base class for UserView subclasses. Subclassing UserViewBase avoid the * problem of two concurrent superclasses, SCUserView and JSCUserView, by * holding a UserView internally. Th ...
-
// wslib 2006 // scaled SCUserView // 2007: altered for SC3.2 compatibility // 2009: altered for SwingOsc compatibility // TODO: correct half pixel problem for mouse feedback ScaledUserView { classvar <>defaultGridColor; var <gridColor; var ...
-
TestSCScrollView : UnitTest { /* THESE TESTS ARE WRONG apparently: http://www.listarc.bham.ac.uk/lists/sc-dev/msg09900.html test_nestingRelVsAbs { // Albers ad infinitum // but this should look centered, just the one in composite view var v ...