supernova: fix boost.thread move semantics
[supercollider.git] / Help / GUI / GUI-Tools / GUI.html
blob437313501363610dd0d8c391bf78421763cd4b2f
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="949.43">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #5763a9; min-height: 14.0px}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #001ee6}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco}
16 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px}
18 p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #bf0000}
19 p.p10 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; color: #000000}
20 p.p11 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px Monaco; min-height: 14.0px}
21 p.p12 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
22 p.p13 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000; min-height: 12.0px}
23 p.p14 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #0000bf}
24 p.p15 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; color: #000000; min-height: 17.0px}
25 p.p16 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica}
26 p.p17 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; min-height: 12.0px}
27 p.p18 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica}
28 p.p19 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica; min-height: 14.0px}
29 p.p20 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica}
30 p.p21 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica; min-height: 14.0px}
31 span.s1 {font: 18.0px Helvetica}
32 span.s2 {color: #5763a9}
33 span.s3 {color: #000000}
34 span.s4 {text-decoration: underline}
35 span.s5 {text-decoration: underline ; color: #1638e6}
36 span.s6 {color: #0c2eee}
37 span.s7 {color: #0922b2}
38 span.s8 {color: #314bd1}
39 span.s9 {color: #0000bf}
40 span.s10 {font: 10.0px Monaco}
41 span.s11 {color: #bf0000}
42 span.s12 {font: 10.0px Monaco; color: #52566c}
43 span.s13 {color: #007300}
44 span.s14 {font: 10.0px Monaco; color: #545668}
45 span.s15 {color: #606060}
46 span.s16 {color: #5461ad}
47 span.Apple-tab-span {white-space:pre}
48 </style>
49 </head>
50 <body>
51 <p class="p1"><span class="s1"><b>GUI<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b></span><b>Factory abstraction for all GUI related core classes</b><span class="s1"><b><span class="Apple-tab-span"> </span></b></span></p>
52 <p class="p2"><br></p>
53 <p class="p1"><b>Inherits from: </b><a href="../../Core/Object.html"><span class="s2"><b>Object</b></span></a></p>
54 <p class="p3"><br></p>
55 <p class="p4"><span class="s3"><b>See also:</b> <a href="../GUI-Classes.html"><span class="s4">GUI-Classes</span></a>, <a href="../GUI-Overview.html"><span class="s4">GUI-Overview</span></a>, <a href="ViewRedirect.html"><span class="s5">ViewRedirect</span></a></span></p>
56 <p class="p5"><br></p>
57 <p class="p1">The GUI class provides a means of writing cross platform gui code. GUI provides Factory abstraction for all gui related core classes. Each gui kit is described by a gui scheme which maps class names to actual classes. These schemes are in turn used by <a href="ViewRedirect.html"><span class="s6">ViewRedirect</span></a> to provide a simple cross-platform gui syntax. It also provide utilities for switching kits and other cross platform tasks. You can get your available schemes (depending on what you installed) with:</p>
58 <p class="p2"><br></p>
59 <p class="p6"><span class="s7">GUI</span>.schemes;</p>
60 <p class="p2"><br></p>
61 <p class="p1">For a complete list of gui classes and redirects, see <a href="../GUI-Classes.html"><span class="s8">GUI-Classes</span></a>.</span></p>
62 <p class="p5"><br></p>
63 <p class="p7"><b>Switching and Referring to GUI Kits</b></p>
64 <p class="p8"><br></p>
65 <p class="p1">As of this writing, two GUI kits are available through the GUI class: CocoaGUI (Mac OS X native) and SwingGUI (Java) . Note that SwingOSC is not part of every SuperCollider distribution, so you may have to install it separately.</p>
66 <p class="p2"><br></p>
67 <p class="p1">You can switch the GUI kit by calling one of the following class methods:</p>
68 <p class="p2"><br></p>
69 <p class="p9"><span class="s9">GUI</span><span class="s3">.cocoa;<span class="Apple-tab-span"> </span></span>// use cocoa in subsequent GUI creation procedures</p>
70 <p class="p9"><span class="s9">GUI</span><span class="s3">.swing;<span class="Apple-tab-span"> </span></span>// use swing in subsequent GUI creation procedures</p>
71 <p class="p9"><span class="s3"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// NOTE: If you do not have SwingOSC installed, you get</span></p>
72 <p class="p9"><span class="s3"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// a warning only, and do not switch; so you cannot</span></p>
73 <p class="p9"><span class="s3"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// accidentally disable your (mac) gui system.</p>
74 <p class="p2"><span class="Apple-tab-span"> </span></p>
75 <p class="p1">These methods return the new GUI kit implementation. The current implementation can be queried by calling</p>
76 <p class="p2"><br></p>
77 <p class="p9"><span class="s9">GUI</span><span class="s3">.current;<span class="Apple-tab-span"> </span></span>// returns the current GUI kit implementation</p>
78 <p class="p2"><br></p>
79 <p class="p1">If you want to make a GUI kit specific switch (e.g. in a class), then you should use the following instead, as on non-OSX systems the class CocoaGUI is not in the class library path, and you cannot check for an undefined class:</p>
80 <p class="p2"><br></p>
81 <p class="p9"><span class="s9">GUI</span><span class="s3">.id;<span class="Apple-tab-span"> </span></span>// returns the current GUI kit implementation id; this is currently either \cocoa or \swing</p>
82 <p class="p2"><br></p>
83 <p class="p1">For persistency, you can store the identifier of the kit implementation and recall the kit through the class method <span class="s10">fromID</span>:</p>
84 <p class="p2"><br></p>
85 <p class="p10">x = <span class="s9">GUI</span>.cocoa;</p>
86 <p class="p9"><span class="s3">y = x.id;<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// store the identifier of a kit implementation</p>
87 <p class="p9"><span class="s3">y.postln;<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// ; the id could be stored in a preferences file for example</p>
88 <p class="p10"><span class="s9">GUI</span>.swing;</p>
89 <p class="p9">// now switch back to the kit implementation with identifier y</p>
90 <p class="p10"><span class="s9">GUI</span>.fromID( y );</p>
91 <p class="p10"><span class="s9">GUI</span>.current.id.postln;<span class="Apple-tab-span"> </span><span class="s11">// --&gt; cocoa</span></p>
92 <p class="p2"><br></p>
93 <p class="p1">The <span class="s12">*use</span> and <span class="s12">*useID</span> methods allow you to temporarily switch the kit, so as to use it only for a dedicated block of statements:</p>
94 <p class="p2"><br></p>
95 <p class="p10"><span class="s9">GUI</span>.cocoa;</p>
96 <p class="p10"><span class="s9">GUI</span>.useID( <span class="s13">\swing</span>, {<span class="s9">Array</span>.rand( 1000, 0.0, 1.0 ).plot });</p>
97 <p class="p10"><span class="s9">GUI</span>.current.id.postln;<span class="Apple-tab-span"> </span><span class="s11">// --&gt; still cocoa</span></p>
98 <p class="p11"><br></p>
99 <p class="p1">You can get a particular kit using the <span class="s12">*get</span> method. You can switch to a particular kit using the <span class="s12">*set</span> method:</p>
100 <p class="p2"><br></p>
101 <p class="p9"><span class="s3">x = </span><span class="s9">GUI</span><span class="s3">.get( </span><span class="s13">\swing</span><span class="s3"> );<span class="Apple-tab-span"> </span></span>// note: unlike *swing and *cocoa, this does not _switch_ the current kit!</p>
102 <p class="p10"><span class="s9">GUI</span>.current.id.postln;<span class="Apple-tab-span"> </span><span class="s11">// --&gt; still cocoa</span></p>
103 <p class="p9"><span class="s9">GUI</span><span class="s3">.set( x );<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// now we make SwingOSC the current kit</p>
104 <p class="p10"><span class="s9">GUI</span>.window.viewPalette;</p>
105 <p class="p8"><br></p>
106 <p class="p7"><b>Extending GUI Kits</b></p>
107 <p class="p8"><br></p>
108 <p class="p1">GUI Kits can be extended with custom classes by using their respective <span class="s14">.put</span> methods:</p>
109 <p class="p2"><br></p>
110 <p class="p12"><span class="s9">GUI</span>.get( <span class="s13">\cocoa</span> ).put( <span class="s13">\myText</span>, <span class="s9">SCStaticText</span> );</p>
111 <p class="p12"><span class="s9">GUI</span>.get( <span class="s13">\swing</span> ).put( <span class="s13">\myText</span>, <span class="s9">JSCStaticText</span> );</p>
112 <p class="p13"><br></p>
113 <p class="p12"><span class="s9">GUI</span>.cocoa;</p>
114 <p class="p12"><span class="s9">GUI</span>.swing;</p>
115 <p class="p12">(</p>
116 <p class="p12"><span class="Apple-tab-span"> </span>w = <span class="s9">GUI</span>.window.new;</p>
117 <p class="p12"><span class="Apple-tab-span"> </span><span class="s9">GUI</span>.myText.new( w, w.view.bounds.insetBy( 20, 20 )).string_( <span class="s15">"schoko"</span> ).background_( <span class="s9">Color</span>.red );</p>
118 <p class="p12"><span class="Apple-tab-span"> </span>w.front;</p>
119 <p class="p12">)</p>
120 <p class="p5"><br></p>
121 <p class="p1">If you intend to add extensions from within your own classes upon class library initialization time, the preferred way is to do this in the startup process:</p>
122 <p class="p13"><br></p>
123 <p class="p14">MyGUIExtension<span class="s3"> {</span></p>
124 <p class="p12"><span class="Apple-tab-span"> </span>*initClass {</p>
125 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s9">StartUp</span>.add({</p>
126 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s9">var</span> scheme;</p>
127 <p class="p13"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
128 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>scheme = <span class="s9">GUI</span>.get( <span class="s13">\cocoa</span> );</p>
129 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>if( scheme.notNil, {scheme.put( <span class="s13">\myText</span>, <span class="s9">SCStaticText</span> )});</p>
130 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>scheme = <span class="s9">GUI</span>.get( <span class="s13">\swing</span> );</p>
131 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>if( scheme.notNil, {scheme.put( <span class="s13">\myText</span>, <span class="s9">JSCStaticText</span> )});</p>
132 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>});</p>
133 <p class="p12"><span class="Apple-tab-span"> </span>}</p>
134 <p class="p12">}</p>
135 <p class="p15"><br></p>
136 <p class="p16"><b>Methods and Variables for GUI</b></p>
137 <p class="p17"><br></p>
138 <p class="p18"><b><span class="Apple-tab-span"> </span>*new (key)</b></p>
139 <p class="p17"><br></p>
140 <p class="p18"><b><span class="Apple-tab-span"> </span>*makeGUI (key, args, properties)</b></p>
141 <p class="p17"><br></p>
142 <p class="p17"><br></p>
143 <p class="p18"><b><span class="Apple-tab-span"> </span>*initClass</b></p>
144 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
145 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Sets the <b>skin</b> to default values on Compile.<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
146 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>fontSpecs</b>: <span class="Apple-tab-span"> </span>["Helvetica", 10],</p>
147 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>fontColor</b>: <span class="Apple-tab-span"> </span>Color.black,</p>
148 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>background</b>: <span class="Apple-tab-span"> </span>Color(0.8, 0.85, 0.7, 0.5),</p>
149 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>foreground</b>:<span class="Apple-tab-span"> </span>Color.grey(0.95),</p>
150 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>onColor</b>:<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>Color(0.5, 1, 0.5),</span></p>
151 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>offColor</b>:<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>Color.clear,</p>
152 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>gap</b>:<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>0 @ 0,</p>
153 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>margin</b>: <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>2@2,</p>
154 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>buttonHeight</b>:<span class="Apple-tab-span"> </span>16</p>
155 <p class="p17"><br></p>
156 <p class="p18"><b><span class="Apple-tab-span"> </span>*cocoa</b></p>
157 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
158 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Makes Cocoa (Mac OS X GUI) the current scheme and returns it. Subsequent GUI object calls to GUI are delegated to cocoa. Returns the current (cocoa) scheme.</p>
159 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
160 <p class="p17"><br></p>
161 <p class="p18"><b><span class="Apple-tab-span"> </span>*swing</b></p>
162 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
163 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Makes Swing (Java GUI) the current scheme and returns it. Subsequent GUI object calls to GUI are delegated to swing. Returns the current (swing) scheme.</p>
164 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
165 <p class="p18"><b><span class="Apple-tab-span"> </span>*fromID (id)</b></p>
166 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
167 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Changes the current scheme and returns the new scheme.</p>
168 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>id </b>- (Symbol) the identifier of the scheme touse</p>
169 <p class="p17"><br></p>
170 <p class="p18"><b><span class="Apple-tab-span"> </span>*current</b></p>
171 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
172 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Returns the current scheme. This is useful for objects that, upon instantiation, wish to store the then-current scheme, so as to be able to consistently use the same scheme in future method calls.</span></p>
173 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span></p>
174 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>Note: the caller shouldn't make any assumptions about the nature (the class) of the returned object, so that the actual implementation (an Event) may change in the future.</span></p>
175 <p class="p17"><br></p>
176 <p class="p18"><b><span class="Apple-tab-span"> </span>*get (id)</b></p>
177 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
178 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Returns the scheme for a given identifier. Does not switch the current scheme.</p>
179 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>id </b>- (Symbol) the identifier of the scheme to retrieve, such as returned by calling aScheme.id</p>
180 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
181 <p class="p18"><b><span class="Apple-tab-span"> </span>*set (aScheme)</b></p>
182 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
183 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Changes the current scheme.</p>
184 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>aScheme </b>- An instance of Symbol. The scheme to use as current scheme</p>
185 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
186 <p class="p18"><b><span class="Apple-tab-span"> </span>*use (aScheme, func)</b></p>
187 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
188 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Executes a function body, temporarily setting the current GUI scheme. This is usefull inside view's action functions in order to make this function use the GUI scheme that was originally used for the view of the action, even if the scheme has been switched meanwhile.</p>
189 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>aScheme </b>- The scheme to use during the function execution.</p>
190 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>func </b>- An Instance of Function.</p>
191 <p class="p17"><br></p>
192 <p class="p18"><b><span class="Apple-tab-span"> </span>*useID (id, func)</b></p>
193 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
194 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Same as 'use' but using a scheme's id as first argument.</p>
195 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>id </b>- The id of the scheme to use during the function execution.</p>
196 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>func </b>- A body to execute.</p>
197 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
198 <p class="p18"><b><span class="Apple-tab-span"> </span>*add (aScheme)</b></p>
199 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
200 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Registers a new scheme. This is typically called by external libraries in their startup procedure. If a scheme with the same identifier (scheme.id) exists, it is overwritten.</p>
201 <p class="p20"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>aScheme </b>- The scheme to add.</p>
202 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
203 <p class="p18"><b><span class="Apple-tab-span"> </span>*doesNotUnderstand (selector, args)</b></p>
204 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
205 <p class="p18"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>All method calls are mapped to the current scheme, so that for example GUI.button can be used and is delegated to the button association of the current scheme.</p>
206 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
207 <p class="p18"><b><span class="Apple-tab-span"> </span>*setSkin (skinName)</b></p>
208 <p class="p19"><b><span class="Apple-tab-span"> </span></b></p>
209 <p class="p19"><span class="Apple-tab-span"> </span></p>
210 <p class="p18"><b><span class="Apple-tab-span"> </span>*scheme</b></p>
211 <p class="p19"><b><span class="Apple-tab-span"> </span></b><span class="Apple-tab-span"> </span></p>
212 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>A class variable. Returns the current scheme.</p>
213 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
214 <p class="p18"><b><span class="Apple-tab-span"> </span>*schemes</b></p>
215 <p class="p19"><b><span class="Apple-tab-span"> </span></b><span class="Apple-tab-span"> </span></p>
216 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>A class variable. Returns an <a href="../../Collections/IdentityDictionary.html"><span class="s16">IdentityDictionary</span></a> of registered schemes.</p>
217 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
218 <p class="p18"><b><span class="Apple-tab-span"> </span>*skin</b></p>
219 <p class="p19"><b><span class="Apple-tab-span"> </span></b><span class="Apple-tab-span"> </span></p>
220 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>A class variable. Returns the current skin.</p>
221 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
222 <p class="p18"><b><span class="Apple-tab-span"> </span>*skins</b></p>
223 <p class="p19"><b><span class="Apple-tab-span"> </span></b><span class="Apple-tab-span"> </span></p>
224 <p class="p18"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>A class variable. Returns an <a href="../../Collections/IdentityDictionary.html"><span class="s16">IdentityDictionary</span></a> of registered skins.</p>
225 <p class="p19"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
226 </body>
227 </html>