motion-game 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +7 -0
  2. data/build/android/armeabi/libchipmunk.a +0 -0
  3. data/build/android/armeabi/libcrypto.a +0 -0
  4. data/build/android/armeabi/libcurl.a +0 -0
  5. data/build/android/armeabi/libfreetype.a +0 -0
  6. data/build/android/armeabi/libjpeg.a +0 -0
  7. data/build/android/armeabi/libmotion-cocos.a +0 -0
  8. data/build/android/armeabi/libpng.a +0 -0
  9. data/build/android/armeabi/libssl.a +0 -0
  10. data/build/android/armeabi/libtiff.a +0 -0
  11. data/build/android/armeabi/libwebp.a +0 -0
  12. data/build/android/armeabi/libwebsockets.a +0 -0
  13. data/build/android/motion-cocos.jar +0 -0
  14. data/build/android/x86/libchipmunk.a +0 -0
  15. data/build/android/x86/libcrypto.a +0 -0
  16. data/build/android/x86/libcurl.a +0 -0
  17. data/build/android/x86/libfreetype.a +0 -0
  18. data/build/android/x86/libjpeg.a +0 -0
  19. data/build/android/x86/libmotion-cocos.a +0 -0
  20. data/build/android/x86/libpng.a +0 -0
  21. data/build/android/x86/libssl.a +0 -0
  22. data/build/android/x86/libtiff.a +0 -0
  23. data/build/android/x86/libwebp.a +0 -0
  24. data/build/android/x86/libwebsockets.a +0 -0
  25. data/build/ios/libchipmunk.a +0 -0
  26. data/build/ios/libcurl.a +0 -0
  27. data/build/ios/libfreetype.a +0 -0
  28. data/build/ios/libjpeg.a +0 -0
  29. data/build/ios/libmotion-cocos.a +0 -0
  30. data/build/ios/libpng.a +0 -0
  31. data/build/ios/libtiff.a +0 -0
  32. data/build/ios/libwebp.a +0 -0
  33. data/build/ios/libwebsockets.a +0 -0
  34. data/doc/MG.html +129 -0
  35. data/doc/MG/Application.html +332 -0
  36. data/doc/MG/Audio.html +1049 -0
  37. data/doc/MG/Button.html +722 -0
  38. data/doc/MG/Color.html +528 -0
  39. data/doc/MG/Director.html +1140 -0
  40. data/doc/MG/Draw.html +437 -0
  41. data/doc/MG/Events.html +127 -0
  42. data/doc/MG/Events/Acceleration.html +502 -0
  43. data/doc/MG/Events/Touch.html +232 -0
  44. data/doc/MG/Layout.html +513 -0
  45. data/doc/MG/List.html +1050 -0
  46. data/doc/MG/Node.html +1752 -0
  47. data/doc/MG/Parallax.html +294 -0
  48. data/doc/MG/Particle.html +1221 -0
  49. data/doc/MG/Point.html +540 -0
  50. data/doc/MG/Scene.html +1250 -0
  51. data/doc/MG/Scroll.html +530 -0
  52. data/doc/MG/Size.html +737 -0
  53. data/doc/MG/Slider.html +335 -0
  54. data/doc/MG/Sprite.html +2066 -0
  55. data/doc/MG/Text.html +918 -0
  56. data/doc/MG/Web.html +828 -0
  57. data/doc/MG/Widget.html +460 -0
  58. data/doc/_index.html +362 -0
  59. data/doc/class_list.html +58 -0
  60. data/doc/css/common.css +1 -0
  61. data/doc/css/full_list.css +57 -0
  62. data/doc/css/style.css +339 -0
  63. data/doc/file.README.html +114 -0
  64. data/doc/file_list.html +60 -0
  65. data/doc/frames.html +26 -0
  66. data/doc/index.html +114 -0
  67. data/doc/js/app.js +219 -0
  68. data/doc/js/full_list.js +181 -0
  69. data/doc/js/jquery.js +4 -0
  70. data/doc/method_list.html +933 -0
  71. data/doc/top-level-namespace.html +112 -0
  72. data/lib/motion-game.rb +1 -0
  73. data/lib/motion-game/android.rb +23 -0
  74. data/lib/motion-game/android/main_activity.rb +2 -0
  75. data/lib/motion-game/ios.rb +14 -0
  76. data/lib/motion-game/ios/app_delegate.rb +20 -0
  77. data/lib/motion-game/ios/root_view_controller.rb +14 -0
  78. data/lib/motion-game/project.rb +1 -0
  79. data/lib/motion-game/shortcuts.rb +177 -0
  80. data/template/motion-game/files/Gemfile +5 -0
  81. data/template/motion-game/files/Rakefile +12 -0
  82. data/template/motion-game/files/app/application.rb +5 -0
  83. data/template/motion-game/files/app/main_scene.rb +7 -0
  84. data/template/motion-game/files/config/android.rb.erb +6 -0
  85. data/template/motion-game/files/config/ios.rb.erb +6 -0
  86. metadata +130 -0
@@ -0,0 +1,460 @@
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::Widget
8
+
9
+ &mdash; 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/Widget.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 (W)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../MG.html" title="MG (module)">MG</a></span></span>
36
+ &raquo;
37
+ <span class="title">Widget</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::Widget
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="Node.html" title="MG::Node (class)">Node</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">MG::Widget</li>
84
+
85
+ </ul>
86
+ <a href="#" class="inheritanceTree">show all</a>
87
+
88
+ </dd>
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ <dt class="r2 last">Defined in:</dt>
99
+ <dd class="r2 last">motion-game</dd>
100
+
101
+ </dl>
102
+ <div class="clear"></div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>The base class for all UI widgets. You should not instantiate this class
108
+ directly but use a subclass instead.</p>
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+
116
+ </div><div id="subclasses">
117
+ <h2>Direct Known Subclasses</h2>
118
+ <p class="children"><span class='object_link'><a href="Button.html" title="MG::Button (class)">Button</a></span>, <span class='object_link'><a href="Layout.html" title="MG::Layout (class)">Layout</a></span>, <span class='object_link'><a href="Slider.html" title="MG::Slider (class)">Slider</a></span>, <span class='object_link'><a href="Text.html" title="MG::Text (class)">Text</a></span>, <span class='object_link'><a href="Web.html" title="MG::Web (class)">Web</a></span></p>
119
+ </div>
120
+
121
+
122
+
123
+
124
+ <h2>Properties <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
125
+ <ul class="summary">
126
+
127
+ <li class="public ">
128
+ <span class="summary_signature">
129
+
130
+ <a href="#enabled%3F-instance_method" title="#enabled? (instance method)">- (Boolean) <strong>enabled?</strong> </a>
131
+
132
+
133
+
134
+ </span>
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>Whether the widget is enabled.</p>
149
+ </div></span>
150
+
151
+ </li>
152
+
153
+
154
+ <li class="public ">
155
+ <span class="summary_signature">
156
+
157
+ <a href="#highlighted%3F-instance_method" title="#highlighted? (instance method)">- (Boolean) <strong>highlighted?</strong> </a>
158
+
159
+
160
+
161
+ </span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+ <span class="summary_desc"><div class='inline'>
175
+ <p>Whether the widget is highlighted.</p>
176
+ </div></span>
177
+
178
+ </li>
179
+
180
+
181
+ </ul>
182
+
183
+
184
+
185
+
186
+
187
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
188
+ <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>
189
+
190
+
191
+
192
+ <h2>
193
+ Events
194
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
195
+ </h2>
196
+
197
+ <ul class="summary">
198
+
199
+ <li class="public ">
200
+ <span class="summary_signature">
201
+
202
+ <a href="#on_touch-instance_method" title="#on_touch (instance method)">- (Widget) <strong>on_touch</strong> {|Symbol| ... }</a>
203
+
204
+
205
+
206
+ </span>
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+ <span class="summary_desc"><div class='inline'>
217
+ <p>Configures a block to be called when a touch event is received on the
218
+ widget.</p>
219
+ </div></span>
220
+
221
+ </li>
222
+
223
+
224
+ </ul>
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Node.html" title="MG::Node (class)">Node</a></span></h3>
237
+ <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>
238
+
239
+ <div id="instance_attr_details" class="attr_details">
240
+ <h2>Instance Attribute Details</h2>
241
+
242
+
243
+ <span id="enabled?=-instance_method"></span>
244
+ <div class="method_details first">
245
+ <h3 class="signature first" id="enabled?-instance_method">
246
+
247
+ - (<tt>Boolean</tt>) <strong>enabled?</strong>
248
+
249
+
250
+
251
+
252
+
253
+ </h3><div class="docstring">
254
+ <div class="discussion">
255
+
256
+ <p>Whether the widget is enabled. When enabled, a widget can be touched or
257
+ clicked. By default, a widget is enabled.</p>
258
+
259
+
260
+ </div>
261
+ </div>
262
+ <div class="tags">
263
+
264
+ <p class="tag_title">Returns:</p>
265
+ <ul class="return">
266
+
267
+ <li>
268
+
269
+
270
+ <span class='type'>(<tt>Boolean</tt>)</span>
271
+
272
+
273
+
274
+ &mdash;
275
+ <div class='inline'>
276
+ <p>whether the widget is enabled.</p>
277
+ </div>
278
+
279
+ </li>
280
+
281
+ </ul>
282
+
283
+ </div><table class="source_code">
284
+ <tr>
285
+ <td>
286
+ <pre class="lines">
287
+
288
+
289
+ 680
290
+ 681
291
+ 682</pre>
292
+ </td>
293
+ <td>
294
+ <pre class="code"><span class="info file"># File 'motion-game', line 680</span>
295
+
296
+ def enabled?
297
+ @enabled?
298
+ end</pre>
299
+ </td>
300
+ </tr>
301
+ </table>
302
+ </div>
303
+
304
+
305
+ <span id="highlighted?=-instance_method"></span>
306
+ <div class="method_details ">
307
+ <h3 class="signature " id="highlighted?-instance_method">
308
+
309
+ - (<tt>Boolean</tt>) <strong>highlighted?</strong>
310
+
311
+
312
+
313
+
314
+
315
+ </h3><div class="docstring">
316
+ <div class="discussion">
317
+
318
+ <p>Whether the widget is highlighted. By default, a widget is not highlighted.</p>
319
+
320
+
321
+ </div>
322
+ </div>
323
+ <div class="tags">
324
+
325
+ <p class="tag_title">Returns:</p>
326
+ <ul class="return">
327
+
328
+ <li>
329
+
330
+
331
+ <span class='type'>(<tt>Boolean</tt>)</span>
332
+
333
+
334
+
335
+ &mdash;
336
+ <div class='inline'>
337
+ <p>whether the widget is highlighted.</p>
338
+ </div>
339
+
340
+ </li>
341
+
342
+ </ul>
343
+
344
+ </div><table class="source_code">
345
+ <tr>
346
+ <td>
347
+ <pre class="lines">
348
+
349
+
350
+ 684
351
+ 685
352
+ 686</pre>
353
+ </td>
354
+ <td>
355
+ <pre class="code"><span class="info file"># File 'motion-game', line 684</span>
356
+
357
+ def highlighted?
358
+ @highlighted?
359
+ end</pre>
360
+ </td>
361
+ </tr>
362
+ </table>
363
+ </div>
364
+
365
+ </div>
366
+
367
+
368
+ <div id="instance_method_details" class="method_details_list">
369
+ <h2>Instance Method Details</h2>
370
+
371
+
372
+ <div class="method_details first">
373
+ <h3 class="signature first" id="on_touch-instance_method">
374
+
375
+ - (<tt><span class='object_link'><a href="" title="MG::Widget (class)">Widget</a></span></tt>) <strong>on_touch</strong> {|Symbol| ... }
376
+
377
+
378
+
379
+
380
+
381
+ </h3><div class="docstring">
382
+ <div class="discussion">
383
+
384
+ <p>Configures a block to be called when a touch event is received on the
385
+ widget.</p>
386
+
387
+
388
+ </div>
389
+ </div>
390
+ <div class="tags">
391
+
392
+ <p class="tag_title">Yields:</p>
393
+ <ul class="yield">
394
+
395
+ <li>
396
+
397
+
398
+ <span class='type'>(<tt>Symbol</tt>)</span>
399
+
400
+
401
+
402
+ &mdash;
403
+ <div class='inline'>
404
+ <p>the given block will be called when the event is received with a
405
+ <code>Symbol</code> that describes the type of event, which can be
406
+ <code>:begin</code>, <code>:move</code>, <code>:end</code> or
407
+ <code>:cancel</code>.</p>
408
+ </div>
409
+
410
+ </li>
411
+
412
+ </ul>
413
+ <p class="tag_title">Returns:</p>
414
+ <ul class="return">
415
+
416
+ <li>
417
+
418
+
419
+ <span class='type'>(<tt><span class='object_link'><a href="" title="MG::Widget (class)">Widget</a></span></tt>)</span>
420
+
421
+
422
+
423
+ &mdash;
424
+ <div class='inline'>
425
+ <p>the receiver.</p>
426
+ </div>
427
+
428
+ </li>
429
+
430
+ </ul>
431
+
432
+ </div><table class="source_code">
433
+ <tr>
434
+ <td>
435
+ <pre class="lines">
436
+
437
+
438
+ 695</pre>
439
+ </td>
440
+ <td>
441
+ <pre class="code"><span class="info file"># File 'motion-game', line 695</span>
442
+
443
+ <span class='kw'>def</span> <span class='id identifier rubyid_on_touch'>on_touch</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
444
+ </td>
445
+ </tr>
446
+ </table>
447
+ </div>
448
+
449
+ </div>
450
+
451
+ </div>
452
+
453
+ <div id="footer">
454
+ Generated on Thu Sep 3 15:12:08 2015 by
455
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
456
+ 0.8.7.6 (ruby-2.0.0).
457
+ </div>
458
+
459
+ </body>
460
+ </html>