motion-game 1.1.7 → 1.1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +2 -0
- data/build/android/motion-cocos.jar +0 -0
- metadata +2 -66
- data/doc/MG.html +0 -131
- data/doc/MG/Action.html +0 -402
- data/doc/MG/Animate.html +0 -281
- data/doc/MG/Application.html +0 -335
- data/doc/MG/Audio.html +0 -1268
- data/doc/MG/Blink.html +0 -257
- data/doc/MG/Button.html +0 -725
- data/doc/MG/Color.html +0 -535
- data/doc/MG/DelayTime.html +0 -239
- data/doc/MG/Director.html +0 -1301
- data/doc/MG/Draw.html +0 -813
- data/doc/MG/Events.html +0 -129
- data/doc/MG/Events/Acceleration.html +0 -505
- data/doc/MG/Events/Touch.html +0 -235
- data/doc/MG/FadeIn.html +0 -240
- data/doc/MG/FadeOut.html +0 -240
- data/doc/MG/FadeTo.html +0 -256
- data/doc/MG/File.html +0 -219
- data/doc/MG/Follow.html +0 -241
- data/doc/MG/JumpBy.html +0 -292
- data/doc/MG/JumpTo.html +0 -287
- data/doc/MG/Layout.html +0 -516
- data/doc/MG/List.html +0 -1053
- data/doc/MG/Menu.html +0 -458
- data/doc/MG/MoveBy.html +0 -259
- data/doc/MG/MoveTo.html +0 -257
- data/doc/MG/Node.html +0 -2013
- data/doc/MG/Parallax.html +0 -297
- data/doc/MG/Particle.html +0 -1224
- data/doc/MG/Point.html +0 -543
- data/doc/MG/Repeat.html +0 -257
- data/doc/MG/RepeatForever.html +0 -239
- data/doc/MG/RotateBy.html +0 -259
- data/doc/MG/RotateTo.html +0 -257
- data/doc/MG/ScaleBy.html +0 -255
- data/doc/MG/ScaleTo.html +0 -255
- data/doc/MG/Scene.html +0 -1544
- data/doc/MG/Scroll.html +0 -533
- data/doc/MG/Sequence.html +0 -241
- data/doc/MG/Size.html +0 -741
- data/doc/MG/SkewBy.html +0 -273
- data/doc/MG/SkewTo.html +0 -273
- data/doc/MG/Slider.html +0 -338
- data/doc/MG/Spawn.html +0 -239
- data/doc/MG/Speed.html +0 -259
- data/doc/MG/Sprite.html +0 -2591
- data/doc/MG/Text.html +0 -921
- data/doc/MG/TintBy.html +0 -272
- data/doc/MG/TintTo.html +0 -274
- data/doc/MG/Web.html +0 -831
- data/doc/MG/Widget.html +0 -552
- data/doc/_index.html +0 -574
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -481
- data/doc/file.README.html +0 -192
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -192
- data/doc/js/app.js +0 -243
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1635
- data/doc/top-level-namespace.html +0 -112
data/doc/MG/List.html
DELETED
@@ -1,1053 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Class: MG::List
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.5
|
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
|
-
pathId = "MG::List";
|
19
|
-
relpath = '../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../class_list.html"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../_index.html">Index (L)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">List</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<iframe id="search_frame" src="../class_list.html"></iframe>
|
63
|
-
|
64
|
-
<div id="content"><h1>Class: MG::List
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
</h1>
|
69
|
-
<div class="box_info">
|
70
|
-
|
71
|
-
<dl>
|
72
|
-
<dt>Inherits:</dt>
|
73
|
-
<dd>
|
74
|
-
<span class="inheritName"><span class='object_link'><a href="Scroll.html" title="MG::Scroll (class)">Scroll</a></span></span>
|
75
|
-
|
76
|
-
<ul class="fullTree">
|
77
|
-
<li>Object</li>
|
78
|
-
|
79
|
-
<li class="next"><span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></li>
|
80
|
-
|
81
|
-
<li class="next"><span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></li>
|
82
|
-
|
83
|
-
<li class="next"><span class='object_link'><a href="Layout.html" title="MG::Layout (class)">Layout</a></span></li>
|
84
|
-
|
85
|
-
<li class="next"><span class='object_link'><a href="Scroll.html" title="MG::Scroll (class)">Scroll</a></span></li>
|
86
|
-
|
87
|
-
<li class="next">MG::List</li>
|
88
|
-
|
89
|
-
</ul>
|
90
|
-
<a href="#" class="inheritanceTree">show all</a>
|
91
|
-
|
92
|
-
</dd>
|
93
|
-
</dl>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
<dl>
|
106
|
-
<dt>Defined in:</dt>
|
107
|
-
<dd>motion-game</dd>
|
108
|
-
</dl>
|
109
|
-
|
110
|
-
</div>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
<h2>Properties <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
117
|
-
<ul class="summary">
|
118
|
-
|
119
|
-
<li class="public ">
|
120
|
-
<span class="summary_signature">
|
121
|
-
|
122
|
-
<a href="#items_margin-instance_method" title="#items_margin (instance method)">#<strong>items_margin</strong> ⇒ Float </a>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</span>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
<span class="summary_desc"><div class='inline'>
|
140
|
-
<p>The margin between items in the list.</p>
|
141
|
-
</div></span>
|
142
|
-
|
143
|
-
</li>
|
144
|
-
|
145
|
-
|
146
|
-
</ul>
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Scroll.html" title="MG::Scroll (class)">Scroll</a></span></h3>
|
153
|
-
<p class="inherited"><span class='object_link'><a href="Scroll.html#direction-instance_method" title="MG::Scroll#direction (method)">#direction</a></span>, <span class='object_link'><a href="Scroll.html#inner_container-instance_method" title="MG::Scroll#inner_container (method)">#inner_container</a></span>, <span class='object_link'><a href="Scroll.html#inner_size-instance_method" title="MG::Scroll#inner_size (method)">#inner_size</a></span></p>
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Layout.html" title="MG::Layout (class)">Layout</a></span></h3>
|
158
|
-
<p class="inherited"><span class='object_link'><a href="Layout.html#background_color-instance_method" title="MG::Layout#background_color (method)">#background_color</a></span>, <span class='object_link'><a href="Layout.html#clipping%3F-instance_method" title="MG::Layout#clipping? (method)">#clipping?</a></span>, <span class='object_link'><a href="Layout.html#type-instance_method" title="MG::Layout#type (method)">#type</a></span></p>
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></h3>
|
163
|
-
<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>, <span class='object_link'><a href="Widget.html#touch_enabled%3F-instance_method" title="MG::Widget#touch_enabled? (method)">#touch_enabled?</a></span></p>
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
168
|
-
<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>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
<h2>
|
173
|
-
Constructors
|
174
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
175
|
-
</h2>
|
176
|
-
|
177
|
-
<ul class="summary">
|
178
|
-
|
179
|
-
<li class="public ">
|
180
|
-
<span class="summary_signature">
|
181
|
-
|
182
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ List </a>
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
</span>
|
187
|
-
|
188
|
-
|
189
|
-
<span class="note title constructor">constructor</span>
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
<span class="summary_desc"><div class='inline'>
|
199
|
-
<p>Creates a new List widget.</p>
|
200
|
-
</div></span>
|
201
|
-
|
202
|
-
</li>
|
203
|
-
|
204
|
-
|
205
|
-
</ul>
|
206
|
-
|
207
|
-
<h2>
|
208
|
-
Managing Items
|
209
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
210
|
-
</h2>
|
211
|
-
|
212
|
-
<ul class="summary">
|
213
|
-
|
214
|
-
<li class="public ">
|
215
|
-
<span class="summary_signature">
|
216
|
-
|
217
|
-
<a href="#add_item-instance_method" title="#add_item (instance method)">#<strong>add_item</strong>(widget) ⇒ List </a>
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
</span>
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
<span class="summary_desc"><div class='inline'>
|
232
|
-
<p>Adds a new item to the end of the list.</p>
|
233
|
-
</div></span>
|
234
|
-
|
235
|
-
</li>
|
236
|
-
|
237
|
-
|
238
|
-
<li class="public ">
|
239
|
-
<span class="summary_signature">
|
240
|
-
|
241
|
-
<a href="#clear_items-instance_method" title="#clear_items (instance method)">#<strong>clear_items</strong> ⇒ List </a>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
</span>
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
<span class="summary_desc"><div class='inline'>
|
256
|
-
<p>Removes all items in the list.</p>
|
257
|
-
</div></span>
|
258
|
-
|
259
|
-
</li>
|
260
|
-
|
261
|
-
|
262
|
-
<li class="public ">
|
263
|
-
<span class="summary_signature">
|
264
|
-
|
265
|
-
<a href="#delete_item-instance_method" title="#delete_item (instance method)">#<strong>delete_item</strong>(index) ⇒ List </a>
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
</span>
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
<span class="summary_desc"><div class='inline'>
|
280
|
-
<p>Deletes the item at the given index.</p>
|
281
|
-
</div></span>
|
282
|
-
|
283
|
-
</li>
|
284
|
-
|
285
|
-
|
286
|
-
<li class="public ">
|
287
|
-
<span class="summary_signature">
|
288
|
-
|
289
|
-
<a href="#insert_item-instance_method" title="#insert_item (instance method)">#<strong>insert_item</strong>(index, widget) ⇒ List </a>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
</span>
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
<span class="summary_desc"><div class='inline'>
|
304
|
-
<p>Inserts a new item at the given index in the list.</p>
|
305
|
-
</div></span>
|
306
|
-
|
307
|
-
</li>
|
308
|
-
|
309
|
-
|
310
|
-
<li class="public ">
|
311
|
-
<span class="summary_signature">
|
312
|
-
|
313
|
-
<a href="#item_at-instance_method" title="#item_at (instance method)">#<strong>item_at</strong>(index) ⇒ Widget </a>
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
</span>
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
<span class="summary_desc"><div class='inline'>
|
328
|
-
<p>Retrieves the item at the given index.</p>
|
329
|
-
</div></span>
|
330
|
-
|
331
|
-
</li>
|
332
|
-
|
333
|
-
|
334
|
-
</ul>
|
335
|
-
|
336
|
-
<h2>
|
337
|
-
Selection
|
338
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
339
|
-
</h2>
|
340
|
-
|
341
|
-
<ul class="summary">
|
342
|
-
|
343
|
-
<li class="public ">
|
344
|
-
<span class="summary_signature">
|
345
|
-
|
346
|
-
<a href="#on_selection-instance_method" title="#on_selection (instance method)">#<strong>on_selection</strong> {|Integer| ... } ⇒ List </a>
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
</span>
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
<span class="summary_desc"><div class='inline'>
|
361
|
-
<p>Configures a block to be called when an item is selected in the list view.</p>
|
362
|
-
</div></span>
|
363
|
-
|
364
|
-
</li>
|
365
|
-
|
366
|
-
|
367
|
-
<li class="public ">
|
368
|
-
<span class="summary_signature">
|
369
|
-
|
370
|
-
<a href="#selected_item-instance_method" title="#selected_item (instance method)">#<strong>selected_item</strong> ⇒ Integer </a>
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
</span>
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
<span class="summary_desc"><div class='inline'>
|
385
|
-
<p>The index of the currently selected item.</p>
|
386
|
-
</div></span>
|
387
|
-
|
388
|
-
</li>
|
389
|
-
|
390
|
-
|
391
|
-
</ul>
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></h3>
|
416
|
-
<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>
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
|
427
|
-
<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>, <span class='object_link'><a href="Node.html#run_action-instance_method" title="MG::Node#run_action (method)">#run_action</a></span>, <span class='object_link'><a href="Node.html#stop_action-instance_method" title="MG::Node#stop_action (method)">#stop_action</a></span>, <span class='object_link'><a href="Node.html#stop_all_actions-instance_method" title="MG::Node#stop_all_actions (method)">#stop_all_actions</a></span></p>
|
428
|
-
<div id="constructor_details" class="method_details_list">
|
429
|
-
<h2>Constructor Details</h2>
|
430
|
-
|
431
|
-
<div class="method_details first">
|
432
|
-
<h3 class="signature first" id="initialize-instance_method">
|
433
|
-
|
434
|
-
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
</h3><div class="docstring">
|
441
|
-
<div class="discussion">
|
442
|
-
|
443
|
-
<p>Creates a new List widget.</p>
|
444
|
-
|
445
|
-
|
446
|
-
</div>
|
447
|
-
</div>
|
448
|
-
<div class="tags">
|
449
|
-
|
450
|
-
|
451
|
-
</div><table class="source_code">
|
452
|
-
<tr>
|
453
|
-
<td>
|
454
|
-
<pre class="lines">
|
455
|
-
|
456
|
-
|
457
|
-
1314</pre>
|
458
|
-
</td>
|
459
|
-
<td>
|
460
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1314</span>
|
461
|
-
|
462
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
463
|
-
</td>
|
464
|
-
</tr>
|
465
|
-
</table>
|
466
|
-
</div>
|
467
|
-
|
468
|
-
</div>
|
469
|
-
|
470
|
-
<div id="instance_attr_details" class="attr_details">
|
471
|
-
<h2>Instance Attribute Details</h2>
|
472
|
-
|
473
|
-
|
474
|
-
<span id="items_margin=-instance_method"></span>
|
475
|
-
<div class="method_details first">
|
476
|
-
<h3 class="signature first" id="items_margin-instance_method">
|
477
|
-
|
478
|
-
#<strong>items_margin</strong> ⇒ <tt>Float</tt>
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
</h3><div class="docstring">
|
485
|
-
<div class="discussion">
|
486
|
-
|
487
|
-
<p>Returns the margin between items in the list.</p>
|
488
|
-
|
489
|
-
|
490
|
-
</div>
|
491
|
-
</div>
|
492
|
-
<div class="tags">
|
493
|
-
|
494
|
-
<p class="tag_title">Returns:</p>
|
495
|
-
<ul class="return">
|
496
|
-
|
497
|
-
<li>
|
498
|
-
|
499
|
-
|
500
|
-
<span class='type'>(<tt>Float</tt>)</span>
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
—
|
505
|
-
<div class='inline'>
|
506
|
-
<p>the margin between items in the list.</p>
|
507
|
-
</div>
|
508
|
-
|
509
|
-
</li>
|
510
|
-
|
511
|
-
</ul>
|
512
|
-
|
513
|
-
</div><table class="source_code">
|
514
|
-
<tr>
|
515
|
-
<td>
|
516
|
-
<pre class="lines">
|
517
|
-
|
518
|
-
|
519
|
-
1360
|
520
|
-
1361
|
521
|
-
1362</pre>
|
522
|
-
</td>
|
523
|
-
<td>
|
524
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1360</span>
|
525
|
-
|
526
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_items_margin'>items_margin</span>
|
527
|
-
<span class='ivar'>@items_margin</span>
|
528
|
-
<span class='kw'>end</span></pre>
|
529
|
-
</td>
|
530
|
-
</tr>
|
531
|
-
</table>
|
532
|
-
</div>
|
533
|
-
|
534
|
-
</div>
|
535
|
-
|
536
|
-
|
537
|
-
<div id="instance_method_details" class="method_details_list">
|
538
|
-
<h2>Instance Method Details</h2>
|
539
|
-
|
540
|
-
|
541
|
-
<div class="method_details first">
|
542
|
-
<h3 class="signature first" id="add_item-instance_method">
|
543
|
-
|
544
|
-
#<strong>add_item</strong>(widget) ⇒ <tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
</h3><div class="docstring">
|
551
|
-
<div class="discussion">
|
552
|
-
|
553
|
-
<p>Adds a new item to the end of the list.</p>
|
554
|
-
|
555
|
-
|
556
|
-
</div>
|
557
|
-
</div>
|
558
|
-
<div class="tags">
|
559
|
-
<p class="tag_title">Parameters:</p>
|
560
|
-
<ul class="param">
|
561
|
-
|
562
|
-
<li>
|
563
|
-
|
564
|
-
<span class='name'>widget</span>
|
565
|
-
|
566
|
-
|
567
|
-
<span class='type'>(<tt><span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></tt>)</span>
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
—
|
572
|
-
<div class='inline'>
|
573
|
-
<p>the item to add.</p>
|
574
|
-
</div>
|
575
|
-
|
576
|
-
</li>
|
577
|
-
|
578
|
-
</ul>
|
579
|
-
|
580
|
-
<p class="tag_title">Returns:</p>
|
581
|
-
<ul class="return">
|
582
|
-
|
583
|
-
<li>
|
584
|
-
|
585
|
-
|
586
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>)</span>
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
—
|
591
|
-
<div class='inline'>
|
592
|
-
<p>the receiver.</p>
|
593
|
-
</div>
|
594
|
-
|
595
|
-
</li>
|
596
|
-
|
597
|
-
</ul>
|
598
|
-
|
599
|
-
</div><table class="source_code">
|
600
|
-
<tr>
|
601
|
-
<td>
|
602
|
-
<pre class="lines">
|
603
|
-
|
604
|
-
|
605
|
-
1322</pre>
|
606
|
-
</td>
|
607
|
-
<td>
|
608
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1322</span>
|
609
|
-
|
610
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_add_item'>add_item</span><span class='lparen'>(</span><span class='id identifier rubyid_widget'>widget</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
611
|
-
</td>
|
612
|
-
</tr>
|
613
|
-
</table>
|
614
|
-
</div>
|
615
|
-
|
616
|
-
<div class="method_details ">
|
617
|
-
<h3 class="signature " id="clear_items-instance_method">
|
618
|
-
|
619
|
-
#<strong>clear_items</strong> ⇒ <tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
</h3><div class="docstring">
|
626
|
-
<div class="discussion">
|
627
|
-
|
628
|
-
<p>Removes all items in the list.</p>
|
629
|
-
|
630
|
-
|
631
|
-
</div>
|
632
|
-
</div>
|
633
|
-
<div class="tags">
|
634
|
-
|
635
|
-
<p class="tag_title">Returns:</p>
|
636
|
-
<ul class="return">
|
637
|
-
|
638
|
-
<li>
|
639
|
-
|
640
|
-
|
641
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>)</span>
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
—
|
646
|
-
<div class='inline'>
|
647
|
-
<p>the receiver.</p>
|
648
|
-
</div>
|
649
|
-
|
650
|
-
</li>
|
651
|
-
|
652
|
-
</ul>
|
653
|
-
|
654
|
-
</div><table class="source_code">
|
655
|
-
<tr>
|
656
|
-
<td>
|
657
|
-
<pre class="lines">
|
658
|
-
|
659
|
-
|
660
|
-
1342</pre>
|
661
|
-
</td>
|
662
|
-
<td>
|
663
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1342</span>
|
664
|
-
|
665
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_clear_items'>clear_items</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
666
|
-
</td>
|
667
|
-
</tr>
|
668
|
-
</table>
|
669
|
-
</div>
|
670
|
-
|
671
|
-
<div class="method_details ">
|
672
|
-
<h3 class="signature " id="delete_item-instance_method">
|
673
|
-
|
674
|
-
#<strong>delete_item</strong>(index) ⇒ <tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
</h3><div class="docstring">
|
681
|
-
<div class="discussion">
|
682
|
-
|
683
|
-
<p>Deletes the item at the given index.</p>
|
684
|
-
|
685
|
-
|
686
|
-
</div>
|
687
|
-
</div>
|
688
|
-
<div class="tags">
|
689
|
-
<p class="tag_title">Parameters:</p>
|
690
|
-
<ul class="param">
|
691
|
-
|
692
|
-
<li>
|
693
|
-
|
694
|
-
<span class='name'>index</span>
|
695
|
-
|
696
|
-
|
697
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
—
|
702
|
-
<div class='inline'>
|
703
|
-
<p>the index to look up.</p>
|
704
|
-
</div>
|
705
|
-
|
706
|
-
</li>
|
707
|
-
|
708
|
-
</ul>
|
709
|
-
|
710
|
-
<p class="tag_title">Returns:</p>
|
711
|
-
<ul class="return">
|
712
|
-
|
713
|
-
<li>
|
714
|
-
|
715
|
-
|
716
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>)</span>
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
—
|
721
|
-
<div class='inline'>
|
722
|
-
<p>the receiver.</p>
|
723
|
-
</div>
|
724
|
-
|
725
|
-
</li>
|
726
|
-
|
727
|
-
</ul>
|
728
|
-
|
729
|
-
</div><table class="source_code">
|
730
|
-
<tr>
|
731
|
-
<td>
|
732
|
-
<pre class="lines">
|
733
|
-
|
734
|
-
|
735
|
-
1338</pre>
|
736
|
-
</td>
|
737
|
-
<td>
|
738
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1338</span>
|
739
|
-
|
740
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_delete_item'>delete_item</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
741
|
-
</td>
|
742
|
-
</tr>
|
743
|
-
</table>
|
744
|
-
</div>
|
745
|
-
|
746
|
-
<div class="method_details ">
|
747
|
-
<h3 class="signature " id="insert_item-instance_method">
|
748
|
-
|
749
|
-
#<strong>insert_item</strong>(index, widget) ⇒ <tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
</h3><div class="docstring">
|
756
|
-
<div class="discussion">
|
757
|
-
|
758
|
-
<p>Inserts a new item at the given index in the list.</p>
|
759
|
-
|
760
|
-
|
761
|
-
</div>
|
762
|
-
</div>
|
763
|
-
<div class="tags">
|
764
|
-
<p class="tag_title">Parameters:</p>
|
765
|
-
<ul class="param">
|
766
|
-
|
767
|
-
<li>
|
768
|
-
|
769
|
-
<span class='name'>index</span>
|
770
|
-
|
771
|
-
|
772
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
—
|
777
|
-
<div class='inline'>
|
778
|
-
<p>the index where to add the item.</p>
|
779
|
-
</div>
|
780
|
-
|
781
|
-
</li>
|
782
|
-
|
783
|
-
<li>
|
784
|
-
|
785
|
-
<span class='name'>widget</span>
|
786
|
-
|
787
|
-
|
788
|
-
<span class='type'>(<tt><span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></tt>)</span>
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
—
|
793
|
-
<div class='inline'>
|
794
|
-
<p>the item to add.</p>
|
795
|
-
</div>
|
796
|
-
|
797
|
-
</li>
|
798
|
-
|
799
|
-
</ul>
|
800
|
-
|
801
|
-
<p class="tag_title">Returns:</p>
|
802
|
-
<ul class="return">
|
803
|
-
|
804
|
-
<li>
|
805
|
-
|
806
|
-
|
807
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>)</span>
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
—
|
812
|
-
<div class='inline'>
|
813
|
-
<p>the receiver.</p>
|
814
|
-
</div>
|
815
|
-
|
816
|
-
</li>
|
817
|
-
|
818
|
-
</ul>
|
819
|
-
|
820
|
-
</div><table class="source_code">
|
821
|
-
<tr>
|
822
|
-
<td>
|
823
|
-
<pre class="lines">
|
824
|
-
|
825
|
-
|
826
|
-
1328</pre>
|
827
|
-
</td>
|
828
|
-
<td>
|
829
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1328</span>
|
830
|
-
|
831
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_insert_item'>insert_item</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='comma'>,</span> <span class='id identifier rubyid_widget'>widget</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
832
|
-
</td>
|
833
|
-
</tr>
|
834
|
-
</table>
|
835
|
-
</div>
|
836
|
-
|
837
|
-
<div class="method_details ">
|
838
|
-
<h3 class="signature " id="item_at-instance_method">
|
839
|
-
|
840
|
-
#<strong>item_at</strong>(index) ⇒ <tt><span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></tt>
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
</h3><div class="docstring">
|
847
|
-
<div class="discussion">
|
848
|
-
|
849
|
-
<p>Retrieves the item at the given index.</p>
|
850
|
-
|
851
|
-
|
852
|
-
</div>
|
853
|
-
</div>
|
854
|
-
<div class="tags">
|
855
|
-
<p class="tag_title">Parameters:</p>
|
856
|
-
<ul class="param">
|
857
|
-
|
858
|
-
<li>
|
859
|
-
|
860
|
-
<span class='name'>index</span>
|
861
|
-
|
862
|
-
|
863
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
—
|
868
|
-
<div class='inline'>
|
869
|
-
<p>the index to look up.</p>
|
870
|
-
</div>
|
871
|
-
|
872
|
-
</li>
|
873
|
-
|
874
|
-
</ul>
|
875
|
-
|
876
|
-
<p class="tag_title">Returns:</p>
|
877
|
-
<ul class="return">
|
878
|
-
|
879
|
-
<li>
|
880
|
-
|
881
|
-
|
882
|
-
<span class='type'>(<tt><span class='object_link'><a href="Widget.html" title="MG::Widget (class)">Widget</a></span></tt>)</span>
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
—
|
887
|
-
<div class='inline'>
|
888
|
-
<p>the item at the given index, or <code>nil</code> if there isn't any.</p>
|
889
|
-
</div>
|
890
|
-
|
891
|
-
</li>
|
892
|
-
|
893
|
-
</ul>
|
894
|
-
|
895
|
-
</div><table class="source_code">
|
896
|
-
<tr>
|
897
|
-
<td>
|
898
|
-
<pre class="lines">
|
899
|
-
|
900
|
-
|
901
|
-
1333</pre>
|
902
|
-
</td>
|
903
|
-
<td>
|
904
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1333</span>
|
905
|
-
|
906
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_item_at'>item_at</span><span class='lparen'>(</span><span class='id identifier rubyid_index'>index</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
907
|
-
</td>
|
908
|
-
</tr>
|
909
|
-
</table>
|
910
|
-
</div>
|
911
|
-
|
912
|
-
<div class="method_details ">
|
913
|
-
<h3 class="signature " id="on_selection-instance_method">
|
914
|
-
|
915
|
-
#<strong>on_selection</strong> {|Integer| ... } ⇒ <tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
</h3><div class="docstring">
|
922
|
-
<div class="discussion">
|
923
|
-
|
924
|
-
<p>Configures a block to be called when an item is selected in the list view.</p>
|
925
|
-
|
926
|
-
|
927
|
-
</div>
|
928
|
-
</div>
|
929
|
-
<div class="tags">
|
930
|
-
|
931
|
-
<p class="tag_title">Yields:</p>
|
932
|
-
<ul class="yield">
|
933
|
-
|
934
|
-
<li>
|
935
|
-
|
936
|
-
|
937
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
938
|
-
|
939
|
-
|
940
|
-
|
941
|
-
—
|
942
|
-
<div class='inline'>
|
943
|
-
<p>the given block will be called when an item is selected, passing the index
|
944
|
-
of the selection as the argument.</p>
|
945
|
-
</div>
|
946
|
-
|
947
|
-
</li>
|
948
|
-
|
949
|
-
</ul>
|
950
|
-
<p class="tag_title">Returns:</p>
|
951
|
-
<ul class="return">
|
952
|
-
|
953
|
-
<li>
|
954
|
-
|
955
|
-
|
956
|
-
<span class='type'>(<tt><span class='object_link'><a href="" title="MG::List (class)">List</a></span></tt>)</span>
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
—
|
961
|
-
<div class='inline'>
|
962
|
-
<p>the receiver.</p>
|
963
|
-
</div>
|
964
|
-
|
965
|
-
</li>
|
966
|
-
|
967
|
-
</ul>
|
968
|
-
|
969
|
-
</div><table class="source_code">
|
970
|
-
<tr>
|
971
|
-
<td>
|
972
|
-
<pre class="lines">
|
973
|
-
|
974
|
-
|
975
|
-
1351</pre>
|
976
|
-
</td>
|
977
|
-
<td>
|
978
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1351</span>
|
979
|
-
|
980
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_on_selection'>on_selection</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
981
|
-
</td>
|
982
|
-
</tr>
|
983
|
-
</table>
|
984
|
-
</div>
|
985
|
-
|
986
|
-
<div class="method_details ">
|
987
|
-
<h3 class="signature " id="selected_item-instance_method">
|
988
|
-
|
989
|
-
#<strong>selected_item</strong> ⇒ <tt>Integer</tt>
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
</h3><div class="docstring">
|
996
|
-
<div class="discussion">
|
997
|
-
|
998
|
-
<p>Returns the index of the currently selected item.</p>
|
999
|
-
|
1000
|
-
|
1001
|
-
</div>
|
1002
|
-
</div>
|
1003
|
-
<div class="tags">
|
1004
|
-
|
1005
|
-
<p class="tag_title">Returns:</p>
|
1006
|
-
<ul class="return">
|
1007
|
-
|
1008
|
-
<li>
|
1009
|
-
|
1010
|
-
|
1011
|
-
<span class='type'>(<tt>Integer</tt>)</span>
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
—
|
1016
|
-
<div class='inline'>
|
1017
|
-
<p>the index of the currently selected item.</p>
|
1018
|
-
</div>
|
1019
|
-
|
1020
|
-
</li>
|
1021
|
-
|
1022
|
-
</ul>
|
1023
|
-
|
1024
|
-
</div><table class="source_code">
|
1025
|
-
<tr>
|
1026
|
-
<td>
|
1027
|
-
<pre class="lines">
|
1028
|
-
|
1029
|
-
|
1030
|
-
1354</pre>
|
1031
|
-
</td>
|
1032
|
-
<td>
|
1033
|
-
<pre class="code"><span class="info file"># File 'motion-game', line 1354</span>
|
1034
|
-
|
1035
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_selected_item'>selected_item</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
1036
|
-
</td>
|
1037
|
-
</tr>
|
1038
|
-
</table>
|
1039
|
-
</div>
|
1040
|
-
|
1041
|
-
</div>
|
1042
|
-
|
1043
|
-
</div>
|
1044
|
-
|
1045
|
-
<div id="footer">
|
1046
|
-
Generated on Sun Dec 11 16:38:30 2016 by
|
1047
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1048
|
-
0.9.5 (ruby-2.3.3).
|
1049
|
-
</div>
|
1050
|
-
|
1051
|
-
</div>
|
1052
|
-
</body>
|
1053
|
-
</html>
|