motion-game 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/build/android/armeabi/libchipmunk.a +0 -0
- data/build/android/armeabi/libcrypto.a +0 -0
- data/build/android/armeabi/libcurl.a +0 -0
- data/build/android/armeabi/libfreetype.a +0 -0
- data/build/android/armeabi/libjpeg.a +0 -0
- data/build/android/armeabi/libmotion-cocos.a +0 -0
- data/build/android/armeabi/libpng.a +0 -0
- data/build/android/armeabi/libssl.a +0 -0
- data/build/android/armeabi/libtiff.a +0 -0
- data/build/android/armeabi/libwebp.a +0 -0
- data/build/android/armeabi/libwebsockets.a +0 -0
- data/build/android/motion-cocos.jar +0 -0
- data/build/android/x86/libchipmunk.a +0 -0
- data/build/android/x86/libcrypto.a +0 -0
- data/build/android/x86/libcurl.a +0 -0
- data/build/android/x86/libfreetype.a +0 -0
- data/build/android/x86/libjpeg.a +0 -0
- data/build/android/x86/libmotion-cocos.a +0 -0
- data/build/android/x86/libpng.a +0 -0
- data/build/android/x86/libssl.a +0 -0
- data/build/android/x86/libtiff.a +0 -0
- data/build/android/x86/libwebp.a +0 -0
- data/build/android/x86/libwebsockets.a +0 -0
- data/build/ios/libchipmunk.a +0 -0
- data/build/ios/libcurl.a +0 -0
- data/build/ios/libfreetype.a +0 -0
- data/build/ios/libjpeg.a +0 -0
- data/build/ios/libmotion-cocos.a +0 -0
- data/build/ios/libpng.a +0 -0
- data/build/ios/libtiff.a +0 -0
- data/build/ios/libwebp.a +0 -0
- data/build/ios/libwebsockets.a +0 -0
- data/doc/MG.html +129 -0
- data/doc/MG/Application.html +332 -0
- data/doc/MG/Audio.html +1049 -0
- data/doc/MG/Button.html +722 -0
- data/doc/MG/Color.html +528 -0
- data/doc/MG/Director.html +1140 -0
- data/doc/MG/Draw.html +437 -0
- data/doc/MG/Events.html +127 -0
- data/doc/MG/Events/Acceleration.html +502 -0
- data/doc/MG/Events/Touch.html +232 -0
- data/doc/MG/Layout.html +513 -0
- data/doc/MG/List.html +1050 -0
- data/doc/MG/Node.html +1752 -0
- data/doc/MG/Parallax.html +294 -0
- data/doc/MG/Particle.html +1221 -0
- data/doc/MG/Point.html +540 -0
- data/doc/MG/Scene.html +1250 -0
- data/doc/MG/Scroll.html +530 -0
- data/doc/MG/Size.html +737 -0
- data/doc/MG/Slider.html +335 -0
- data/doc/MG/Sprite.html +2066 -0
- data/doc/MG/Text.html +918 -0
- data/doc/MG/Web.html +828 -0
- data/doc/MG/Widget.html +460 -0
- data/doc/_index.html +362 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +114 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +114 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +933 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/motion-game.rb +1 -0
- data/lib/motion-game/android.rb +23 -0
- data/lib/motion-game/android/main_activity.rb +2 -0
- data/lib/motion-game/ios.rb +14 -0
- data/lib/motion-game/ios/app_delegate.rb +20 -0
- data/lib/motion-game/ios/root_view_controller.rb +14 -0
- data/lib/motion-game/project.rb +1 -0
- data/lib/motion-game/shortcuts.rb +177 -0
- data/template/motion-game/files/Gemfile +5 -0
- data/template/motion-game/files/Rakefile +12 -0
- data/template/motion-game/files/app/application.rb +5 -0
- data/template/motion-game/files/app/main_scene.rb +7 -0
- data/template/motion-game/files/config/android.rb.erb +6 -0
- data/template/motion-game/files/config/ios.rb.erb +6 -0
- metadata +130 -0
data/doc/MG/Text.html
ADDED
@@ -0,0 +1,918 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: MG::Text
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!MG/Text.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (T)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Text</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: MG::Text
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName"><span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></li>
|
82
|
+
|
83
|
+
<li class="next"><span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></li>
|
84
|
+
|
85
|
+
<li class="next">MG::Text</li>
|
86
|
+
|
87
|
+
</ul>
|
88
|
+
<a href="#" class="inheritanceTree">show all</a>
|
89
|
+
|
90
|
+
</dd>
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dt class="r2 last">Defined in:</dt>
|
101
|
+
<dd class="r2 last">motion-game</dd>
|
102
|
+
|
103
|
+
</dl>
|
104
|
+
<div class="clear"></div>
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
<h2>Properties <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
111
|
+
<ul class="summary">
|
112
|
+
|
113
|
+
<li class="public ">
|
114
|
+
<span class="summary_signature">
|
115
|
+
|
116
|
+
<a href="#area_size-instance_method" title="#area_size (instance method)">- (Size) <strong>area_size</strong> </a>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
</span>
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<span class="summary_desc"><div class='inline'>
|
134
|
+
<p>The text rendering area size.</p>
|
135
|
+
</div></span>
|
136
|
+
|
137
|
+
</li>
|
138
|
+
|
139
|
+
|
140
|
+
<li class="public ">
|
141
|
+
<span class="summary_signature">
|
142
|
+
|
143
|
+
<a href="#font-instance_method" title="#font (instance method)">- (String) <strong>font</strong> </a>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</span>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
161
|
+
<p>Name of the font used by the widget.</p>
|
162
|
+
</div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#font_size-instance_method" title="#font_size (instance method)">- (Integer) <strong>font_size</strong> </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</span>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<span class="summary_desc"><div class='inline'>
|
188
|
+
<p>Size of the font used by the widget.</p>
|
189
|
+
</div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#horizontal_align-instance_method" title="#horizontal_align (instance method)">- (:left, ...) <strong>horizontal_align</strong> </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<span class="summary_desc"><div class='inline'>
|
215
|
+
<p>The horizontal alignment of the text.</p>
|
216
|
+
</div></span>
|
217
|
+
|
218
|
+
</li>
|
219
|
+
|
220
|
+
|
221
|
+
<li class="public ">
|
222
|
+
<span class="summary_signature">
|
223
|
+
|
224
|
+
<a href="#text-instance_method" title="#text (instance method)">- (String) <strong>text</strong> </a>
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
</span>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
<span class="summary_desc"><div class='inline'>
|
242
|
+
<p>Content of the widget.</p>
|
243
|
+
</div></span>
|
244
|
+
|
245
|
+
</li>
|
246
|
+
|
247
|
+
|
248
|
+
<li class="public ">
|
249
|
+
<span class="summary_signature">
|
250
|
+
|
251
|
+
<a href="#text_color-instance_method" title="#text_color (instance method)">- (Color) <strong>text_color</strong> </a>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</span>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
<span class="summary_desc"><div class='inline'>
|
269
|
+
<p>Color of the text part of the widget.</p>
|
270
|
+
</div></span>
|
271
|
+
|
272
|
+
</li>
|
273
|
+
|
274
|
+
|
275
|
+
<li class="public ">
|
276
|
+
<span class="summary_signature">
|
277
|
+
|
278
|
+
<a href="#vertical_align-instance_method" title="#vertical_align (instance method)">- (:top, ...) <strong>vertical_align</strong> </a>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
</span>
|
283
|
+
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<span class="summary_desc"><div class='inline'>
|
296
|
+
<p>The vertical alignment of the text.</p>
|
297
|
+
</div></span>
|
298
|
+
|
299
|
+
</li>
|
300
|
+
|
301
|
+
|
302
|
+
</ul>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></h3>
|
309
|
+
<p class="inherited"><span class='object_link'><a href="Widget.html#enabled%3F-instance_method" title="MG::Widget#enabled? (method)">#enabled?</a></span>, <span class='object_link'><a href="Widget.html#highlighted%3F-instance_method" title="MG::Widget#highlighted? (method)">#highlighted?</a></span></p>
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
314
|
+
<p class="inherited"><span class='object_link'><a href="Node.html#alpha-instance_method" title="MG::Node#alpha (method)">#alpha</a></span>, <span class='object_link'><a href="Node.html#anchor_point-instance_method" title="MG::Node#anchor_point (method)">#anchor_point</a></span>, <span class='object_link'><a href="Node.html#color-instance_method" title="MG::Node#color (method)">#color</a></span>, <span class='object_link'><a href="Node.html#name-instance_method" title="MG::Node#name (method)">#name</a></span>, <span class='object_link'><a href="Node.html#position-instance_method" title="MG::Node#position (method)">#position</a></span>, <span class='object_link'><a href="Node.html#rotation-instance_method" title="MG::Node#rotation (method)">#rotation</a></span>, <span class='object_link'><a href="Node.html#scale-instance_method" title="MG::Node#scale (method)">#scale</a></span>, <span class='object_link'><a href="Node.html#size-instance_method" title="MG::Node#size (method)">#size</a></span>, <span class='object_link'><a href="Node.html#visible%3F-instance_method" title="MG::Node#visible? (method)">#visible?</a></span>, <span class='object_link'><a href="Node.html#z_index-instance_method" title="MG::Node#z_index (method)">#z_index</a></span></p>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
<h2>
|
319
|
+
Constructors
|
320
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
321
|
+
</h2>
|
322
|
+
|
323
|
+
<ul class="summary">
|
324
|
+
|
325
|
+
<li class="public ">
|
326
|
+
<span class="summary_signature">
|
327
|
+
|
328
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Text) <strong>initialize</strong>(text = '', font = '', font_size = 0) </a>
|
329
|
+
|
330
|
+
|
331
|
+
|
332
|
+
</span>
|
333
|
+
|
334
|
+
|
335
|
+
<span class="note title constructor">constructor</span>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
<span class="summary_desc"><div class='inline'>
|
345
|
+
<p>Creates a new Text widget with optional content, font name and size.</p>
|
346
|
+
</div></span>
|
347
|
+
|
348
|
+
</li>
|
349
|
+
|
350
|
+
|
351
|
+
</ul>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></h3>
|
364
|
+
<p class="inherited"><span class='object_link'><a href="Widget.html#on_touch-instance_method" title="MG::Widget#on_touch (method)">#on_touch</a></span></p>
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
375
|
+
<p class="inherited"><span class='object_link'><a href="Node.html#add-instance_method" title="MG::Node#add (method)">#add</a></span>, <span class='object_link'><a href="Node.html#children-instance_method" title="MG::Node#children (method)">#children</a></span>, <span class='object_link'><a href="Node.html#clear-instance_method" title="MG::Node#clear (method)">#clear</a></span>, <span class='object_link'><a href="Node.html#delete-instance_method" title="MG::Node#delete (method)">#delete</a></span>, <span class='object_link'><a href="Node.html#delete_from_parent-instance_method" title="MG::Node#delete_from_parent (method)">#delete_from_parent</a></span>, <span class='object_link'><a href="Node.html#intersects%3F-instance_method" title="MG::Node#intersects? (method)">#intersects?</a></span>, <span class='object_link'><a href="Node.html#parent-instance_method" title="MG::Node#parent (method)">#parent</a></span></p>
|
376
|
+
<div id="constructor_details" class="method_details_list">
|
377
|
+
<h2>Constructor Details</h2>
|
378
|
+
|
379
|
+
<div class="method_details first">
|
380
|
+
<h3 class="signature first" id="initialize-instance_method">
|
381
|
+
|
382
|
+
- (<tt><span class='object_link'><a href="" title="MG::Text (class)">Text</a></span></tt>) <strong>initialize</strong>(text = '', font = '', font_size = 0)
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
</h3><div class="docstring">
|
389
|
+
<div class="discussion">
|
390
|
+
|
391
|
+
<p>Creates a new Text widget with optional content, font name and size.</p>
|
392
|
+
|
393
|
+
|
394
|
+
</div>
|
395
|
+
</div>
|
396
|
+
<div class="tags">
|
397
|
+
<p class="tag_title">Parameters:</p>
|
398
|
+
<ul class="param">
|
399
|
+
|
400
|
+
<li>
|
401
|
+
|
402
|
+
<span class='name'>text</span>
|
403
|
+
|
404
|
+
|
405
|
+
<span class='type'>(<tt>String</tt>)</span>
|
406
|
+
|
407
|
+
|
408
|
+
<em class="default">(defaults to: <tt>''</tt>)</em>
|
409
|
+
|
410
|
+
|
411
|
+
—
|
412
|
+
<div class='inline'>
|
413
|
+
<p>content for the text widget.</p>
|
414
|
+
</div>
|
415
|
+
|
416
|
+
</li>
|
417
|
+
|
418
|
+
<li>
|
419
|
+
|
420
|
+
<span class='name'>font</span>
|
421
|
+
|
422
|
+
|
423
|
+
<span class='type'>(<tt>String</tt>)</span>
|
424
|
+
|
425
|
+
|
426
|
+
<em class="default">(defaults to: <tt>''</tt>)</em>
|
427
|
+
|
428
|
+
|
429
|
+
—
|
430
|
+
<div class='inline'>
|
431
|
+
<p>name of the font the text widget should use.</p>
|
432
|
+
</div>
|
433
|
+
|
434
|
+
</li>
|
435
|
+
|
436
|
+
<li>
|
437
|
+
|
438
|
+
<span class='name'>font_size</span>
|
439
|
+
|
440
|
+
|
441
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
442
|
+
|
443
|
+
|
444
|
+
<em class="default">(defaults to: <tt>0</tt>)</em>
|
445
|
+
|
446
|
+
|
447
|
+
—
|
448
|
+
<div class='inline'>
|
449
|
+
<p>size of the font the text widget should use.</p>
|
450
|
+
</div>
|
451
|
+
|
452
|
+
</li>
|
453
|
+
|
454
|
+
</ul>
|
455
|
+
|
456
|
+
|
457
|
+
</div><table class="source_code">
|
458
|
+
<tr>
|
459
|
+
<td>
|
460
|
+
<pre class="lines">
|
461
|
+
|
462
|
+
|
463
|
+
707</pre>
|
464
|
+
</td>
|
465
|
+
<td>
|
466
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 707</span>
|
467
|
+
|
468
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_text'>text</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_font'>font</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_font_size'>font_size</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
469
|
+
</td>
|
470
|
+
</tr>
|
471
|
+
</table>
|
472
|
+
</div>
|
473
|
+
|
474
|
+
</div>
|
475
|
+
|
476
|
+
<div id="instance_attr_details" class="attr_details">
|
477
|
+
<h2>Instance Attribute Details</h2>
|
478
|
+
|
479
|
+
|
480
|
+
<span id="area_size=-instance_method"></span>
|
481
|
+
<div class="method_details first">
|
482
|
+
<h3 class="signature first" id="area_size-instance_method">
|
483
|
+
|
484
|
+
- (<tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>) <strong>area_size</strong>
|
485
|
+
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
|
490
|
+
</h3><div class="docstring">
|
491
|
+
<div class="discussion">
|
492
|
+
|
493
|
+
<p>Returns the text rendering area size.</p>
|
494
|
+
|
495
|
+
|
496
|
+
</div>
|
497
|
+
</div>
|
498
|
+
<div class="tags">
|
499
|
+
|
500
|
+
<p class="tag_title">Returns:</p>
|
501
|
+
<ul class="return">
|
502
|
+
|
503
|
+
<li>
|
504
|
+
|
505
|
+
|
506
|
+
<span class='type'>(<tt><span class='object_link'><a href="Size.html" title="MG::Size (class)">Size</a></span></tt>)</span>
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
—
|
511
|
+
<div class='inline'>
|
512
|
+
<p>the text rendering area size.</p>
|
513
|
+
</div>
|
514
|
+
|
515
|
+
</li>
|
516
|
+
|
517
|
+
</ul>
|
518
|
+
|
519
|
+
</div><table class="source_code">
|
520
|
+
<tr>
|
521
|
+
<td>
|
522
|
+
<pre class="lines">
|
523
|
+
|
524
|
+
|
525
|
+
725
|
526
|
+
726
|
527
|
+
727</pre>
|
528
|
+
</td>
|
529
|
+
<td>
|
530
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 725</span>
|
531
|
+
|
532
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_area_size'>area_size</span>
|
533
|
+
<span class='ivar'>@area_size</span>
|
534
|
+
<span class='kw'>end</span></pre>
|
535
|
+
</td>
|
536
|
+
</tr>
|
537
|
+
</table>
|
538
|
+
</div>
|
539
|
+
|
540
|
+
|
541
|
+
<span id="font=-instance_method"></span>
|
542
|
+
<div class="method_details ">
|
543
|
+
<h3 class="signature " id="font-instance_method">
|
544
|
+
|
545
|
+
- (<tt>String</tt>) <strong>font</strong>
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
</h3><div class="docstring">
|
552
|
+
<div class="discussion">
|
553
|
+
|
554
|
+
<p>Returns name of the font used by the widget.</p>
|
555
|
+
|
556
|
+
|
557
|
+
</div>
|
558
|
+
</div>
|
559
|
+
<div class="tags">
|
560
|
+
|
561
|
+
<p class="tag_title">Returns:</p>
|
562
|
+
<ul class="return">
|
563
|
+
|
564
|
+
<li>
|
565
|
+
|
566
|
+
|
567
|
+
<span class='type'>(<tt>String</tt>)</span>
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
—
|
572
|
+
<div class='inline'>
|
573
|
+
<p>name of the font used by the widget.</p>
|
574
|
+
</div>
|
575
|
+
|
576
|
+
</li>
|
577
|
+
|
578
|
+
</ul>
|
579
|
+
|
580
|
+
</div><table class="source_code">
|
581
|
+
<tr>
|
582
|
+
<td>
|
583
|
+
<pre class="lines">
|
584
|
+
|
585
|
+
|
586
|
+
719
|
587
|
+
720
|
588
|
+
721</pre>
|
589
|
+
</td>
|
590
|
+
<td>
|
591
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 719</span>
|
592
|
+
|
593
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_font'>font</span>
|
594
|
+
<span class='ivar'>@font</span>
|
595
|
+
<span class='kw'>end</span></pre>
|
596
|
+
</td>
|
597
|
+
</tr>
|
598
|
+
</table>
|
599
|
+
</div>
|
600
|
+
|
601
|
+
|
602
|
+
<span id="font_size=-instance_method"></span>
|
603
|
+
<div class="method_details ">
|
604
|
+
<h3 class="signature " id="font_size-instance_method">
|
605
|
+
|
606
|
+
- (<tt>Integer</tt>) <strong>font_size</strong>
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
|
612
|
+
</h3><div class="docstring">
|
613
|
+
<div class="discussion">
|
614
|
+
|
615
|
+
<p>Returns size of the font used by the widget.</p>
|
616
|
+
|
617
|
+
|
618
|
+
</div>
|
619
|
+
</div>
|
620
|
+
<div class="tags">
|
621
|
+
|
622
|
+
<p class="tag_title">Returns:</p>
|
623
|
+
<ul class="return">
|
624
|
+
|
625
|
+
<li>
|
626
|
+
|
627
|
+
|
628
|
+
<span class='type'>(<tt>Integer</tt>)</span>
|
629
|
+
|
630
|
+
|
631
|
+
|
632
|
+
—
|
633
|
+
<div class='inline'>
|
634
|
+
<p>size of the font used by the widget.</p>
|
635
|
+
</div>
|
636
|
+
|
637
|
+
</li>
|
638
|
+
|
639
|
+
</ul>
|
640
|
+
|
641
|
+
</div><table class="source_code">
|
642
|
+
<tr>
|
643
|
+
<td>
|
644
|
+
<pre class="lines">
|
645
|
+
|
646
|
+
|
647
|
+
722
|
648
|
+
723
|
649
|
+
724</pre>
|
650
|
+
</td>
|
651
|
+
<td>
|
652
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 722</span>
|
653
|
+
|
654
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_font_size'>font_size</span>
|
655
|
+
<span class='ivar'>@font_size</span>
|
656
|
+
<span class='kw'>end</span></pre>
|
657
|
+
</td>
|
658
|
+
</tr>
|
659
|
+
</table>
|
660
|
+
</div>
|
661
|
+
|
662
|
+
|
663
|
+
<span id="horizontal_align=-instance_method"></span>
|
664
|
+
<div class="method_details ">
|
665
|
+
<h3 class="signature " id="horizontal_align-instance_method">
|
666
|
+
|
667
|
+
- (<tt>:left</tt>, ...) <strong>horizontal_align</strong>
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
</h3><div class="docstring">
|
674
|
+
<div class="discussion">
|
675
|
+
|
676
|
+
<p>Returns the horizontal alignment of the text.</p>
|
677
|
+
|
678
|
+
|
679
|
+
</div>
|
680
|
+
</div>
|
681
|
+
<div class="tags">
|
682
|
+
|
683
|
+
<p class="tag_title">Returns:</p>
|
684
|
+
<ul class="return">
|
685
|
+
|
686
|
+
<li>
|
687
|
+
|
688
|
+
|
689
|
+
<span class='type'>(<tt>:left</tt>, <tt>:center</tt>, <tt>:right</tt>)</span>
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
—
|
694
|
+
<div class='inline'>
|
695
|
+
<p>the horizontal alignment of the text.</p>
|
696
|
+
</div>
|
697
|
+
|
698
|
+
</li>
|
699
|
+
|
700
|
+
</ul>
|
701
|
+
|
702
|
+
</div><table class="source_code">
|
703
|
+
<tr>
|
704
|
+
<td>
|
705
|
+
<pre class="lines">
|
706
|
+
|
707
|
+
|
708
|
+
731
|
709
|
+
732
|
710
|
+
733</pre>
|
711
|
+
</td>
|
712
|
+
<td>
|
713
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 731</span>
|
714
|
+
|
715
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_horizontal_align'>horizontal_align</span>
|
716
|
+
<span class='ivar'>@horizontal_align</span>
|
717
|
+
<span class='kw'>end</span></pre>
|
718
|
+
</td>
|
719
|
+
</tr>
|
720
|
+
</table>
|
721
|
+
</div>
|
722
|
+
|
723
|
+
|
724
|
+
<span id="text=-instance_method"></span>
|
725
|
+
<div class="method_details ">
|
726
|
+
<h3 class="signature " id="text-instance_method">
|
727
|
+
|
728
|
+
- (<tt>String</tt>) <strong>text</strong>
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
|
734
|
+
</h3><div class="docstring">
|
735
|
+
<div class="discussion">
|
736
|
+
|
737
|
+
<p>Returns content of the widget.</p>
|
738
|
+
|
739
|
+
|
740
|
+
</div>
|
741
|
+
</div>
|
742
|
+
<div class="tags">
|
743
|
+
|
744
|
+
<p class="tag_title">Returns:</p>
|
745
|
+
<ul class="return">
|
746
|
+
|
747
|
+
<li>
|
748
|
+
|
749
|
+
|
750
|
+
<span class='type'>(<tt>String</tt>)</span>
|
751
|
+
|
752
|
+
|
753
|
+
|
754
|
+
—
|
755
|
+
<div class='inline'>
|
756
|
+
<p>content of the widget.</p>
|
757
|
+
</div>
|
758
|
+
|
759
|
+
</li>
|
760
|
+
|
761
|
+
</ul>
|
762
|
+
|
763
|
+
</div><table class="source_code">
|
764
|
+
<tr>
|
765
|
+
<td>
|
766
|
+
<pre class="lines">
|
767
|
+
|
768
|
+
|
769
|
+
713
|
770
|
+
714
|
771
|
+
715</pre>
|
772
|
+
</td>
|
773
|
+
<td>
|
774
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 713</span>
|
775
|
+
|
776
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_text'>text</span>
|
777
|
+
<span class='ivar'>@text</span>
|
778
|
+
<span class='kw'>end</span></pre>
|
779
|
+
</td>
|
780
|
+
</tr>
|
781
|
+
</table>
|
782
|
+
</div>
|
783
|
+
|
784
|
+
|
785
|
+
<span id="text_color=-instance_method"></span>
|
786
|
+
<div class="method_details ">
|
787
|
+
<h3 class="signature " id="text_color-instance_method">
|
788
|
+
|
789
|
+
- (<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>) <strong>text_color</strong>
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
</h3><div class="docstring">
|
796
|
+
<div class="discussion">
|
797
|
+
|
798
|
+
<p>Returns color of the text part of the widget.</p>
|
799
|
+
|
800
|
+
|
801
|
+
</div>
|
802
|
+
</div>
|
803
|
+
<div class="tags">
|
804
|
+
|
805
|
+
<p class="tag_title">Returns:</p>
|
806
|
+
<ul class="return">
|
807
|
+
|
808
|
+
<li>
|
809
|
+
|
810
|
+
|
811
|
+
<span class='type'>(<tt><span class='object_link'><a href="Color.html" title="MG::Color (class)">Color</a></span></tt>)</span>
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
—
|
816
|
+
<div class='inline'>
|
817
|
+
<p>color of the text part of the widget.</p>
|
818
|
+
</div>
|
819
|
+
|
820
|
+
</li>
|
821
|
+
|
822
|
+
</ul>
|
823
|
+
|
824
|
+
</div><table class="source_code">
|
825
|
+
<tr>
|
826
|
+
<td>
|
827
|
+
<pre class="lines">
|
828
|
+
|
829
|
+
|
830
|
+
716
|
831
|
+
717
|
832
|
+
718</pre>
|
833
|
+
</td>
|
834
|
+
<td>
|
835
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 716</span>
|
836
|
+
|
837
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_text_color'>text_color</span>
|
838
|
+
<span class='ivar'>@text_color</span>
|
839
|
+
<span class='kw'>end</span></pre>
|
840
|
+
</td>
|
841
|
+
</tr>
|
842
|
+
</table>
|
843
|
+
</div>
|
844
|
+
|
845
|
+
|
846
|
+
<span id="vertical_align=-instance_method"></span>
|
847
|
+
<div class="method_details ">
|
848
|
+
<h3 class="signature " id="vertical_align-instance_method">
|
849
|
+
|
850
|
+
- (<tt>:top</tt>, ...) <strong>vertical_align</strong>
|
851
|
+
|
852
|
+
|
853
|
+
|
854
|
+
|
855
|
+
|
856
|
+
</h3><div class="docstring">
|
857
|
+
<div class="discussion">
|
858
|
+
|
859
|
+
<p>Returns the vertical alignment of the text.</p>
|
860
|
+
|
861
|
+
|
862
|
+
</div>
|
863
|
+
</div>
|
864
|
+
<div class="tags">
|
865
|
+
|
866
|
+
<p class="tag_title">Returns:</p>
|
867
|
+
<ul class="return">
|
868
|
+
|
869
|
+
<li>
|
870
|
+
|
871
|
+
|
872
|
+
<span class='type'>(<tt>:top</tt>, <tt>:center</tt>, <tt>:bottom</tt>)</span>
|
873
|
+
|
874
|
+
|
875
|
+
|
876
|
+
—
|
877
|
+
<div class='inline'>
|
878
|
+
<p>the vertical alignment of the text.</p>
|
879
|
+
</div>
|
880
|
+
|
881
|
+
</li>
|
882
|
+
|
883
|
+
</ul>
|
884
|
+
|
885
|
+
</div><table class="source_code">
|
886
|
+
<tr>
|
887
|
+
<td>
|
888
|
+
<pre class="lines">
|
889
|
+
|
890
|
+
|
891
|
+
728
|
892
|
+
729
|
893
|
+
730</pre>
|
894
|
+
</td>
|
895
|
+
<td>
|
896
|
+
<pre class="code"><span class="info file"># File 'motion-game', line 728</span>
|
897
|
+
|
898
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_vertical_align'>vertical_align</span>
|
899
|
+
<span class='ivar'>@vertical_align</span>
|
900
|
+
<span class='kw'>end</span></pre>
|
901
|
+
</td>
|
902
|
+
</tr>
|
903
|
+
</table>
|
904
|
+
</div>
|
905
|
+
|
906
|
+
</div>
|
907
|
+
|
908
|
+
|
909
|
+
</div>
|
910
|
+
|
911
|
+
<div id="footer">
|
912
|
+
Generated on Thu Sep 3 15:12:08 2015 by
|
913
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
914
|
+
0.8.7.6 (ruby-2.0.0).
|
915
|
+
</div>
|
916
|
+
|
917
|
+
</body>
|
918
|
+
</html>
|