dxopal 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/DEVELOPMENT.md +4 -4
  4. data/Gemfile +0 -1
  5. data/Gemfile.lock +22 -24
  6. data/README.md +4 -0
  7. data/Rakefile +6 -1
  8. data/build/dxopal.js +48950 -38847
  9. data/build/dxopal.min.js +1 -1
  10. data/config.ru +1 -1
  11. data/doc/api/DXOpal/Constants/Colors.html +4 -4
  12. data/doc/api/DXOpal/Constants.html +4 -4
  13. data/doc/api/DXOpal/Font.html +4 -4
  14. data/doc/api/DXOpal/Image.html +19 -19
  15. data/doc/api/DXOpal/Input/KeyCodes.html +6 -6
  16. data/doc/api/DXOpal/Input/MouseCodes.html +4 -4
  17. data/doc/api/DXOpal/Input/Touch.html +47 -47
  18. data/doc/api/DXOpal/Input.html +87 -81
  19. data/doc/api/DXOpal/RemoteResource.html +164 -33
  20. data/doc/api/DXOpal/Sound.html +22 -16
  21. data/doc/api/DXOpal/SoundEffect/WaveTypes.html +4 -4
  22. data/doc/api/DXOpal/SoundEffect.html +6 -6
  23. data/doc/api/DXOpal/Sprite/CollisionArea/Base.html +5 -5
  24. data/doc/api/DXOpal/Sprite/CollisionArea/Circle.html +4 -4
  25. data/doc/api/DXOpal/Sprite/CollisionArea/Point.html +4 -4
  26. data/doc/api/DXOpal/Sprite/CollisionArea/Rect.html +4 -4
  27. data/doc/api/DXOpal/Sprite/CollisionArea/Triangle.html +4 -4
  28. data/doc/api/DXOpal/Sprite/CollisionArea.html +4 -4
  29. data/doc/api/DXOpal/Sprite/CollisionCheck/ClassMethods.html +7 -7
  30. data/doc/api/DXOpal/Sprite/CollisionCheck.html +8 -8
  31. data/doc/api/DXOpal/Sprite/Physics.html +4 -4
  32. data/doc/api/DXOpal/Sprite.html +10 -10
  33. data/doc/api/DXOpal/Window.html +120 -114
  34. data/doc/api/DXOpal.html +5 -5
  35. data/doc/api/Kernel.html +4 -4
  36. data/doc/api/_index.html +5 -5
  37. data/doc/api/file.README.html +23 -20
  38. data/doc/api/frames.html +10 -5
  39. data/doc/api/index.html +23 -20
  40. data/doc/api/method_list.html +214 -206
  41. data/doc/api/top-level-namespace.html +4 -4
  42. data/lib/dxopal/input.rb +5 -2
  43. data/lib/dxopal/remote_resource.rb +33 -1
  44. data/lib/dxopal/sound.rb +5 -2
  45. data/lib/dxopal/version.rb +1 -1
  46. data/lib/dxopal/window.rb +6 -3
  47. data/lib/dxopal.rb +1 -0
  48. metadata +3 -3
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: DXOpal::Window
8
8
 
9
- &mdash; Documentation by YARD 0.9.26
9
+ &mdash; Documentation by YARD 0.9.36
10
10
 
11
11
  </title>
12
12
 
@@ -694,7 +694,7 @@
694
694
 
695
695
 
696
696
  <span class="summary_desc"><div class='inline'>
697
- <p>Set window height and resize the canvas Set `nil` to maximize canvas.</p>
697
+ <p>Set window height and resize the canvas Set nil` to maximize canvas.</p>
698
698
  </div></span>
699
699
 
700
700
  </li>
@@ -878,7 +878,7 @@
878
878
 
879
879
 
880
880
  <span class="summary_desc"><div class='inline'>
881
- <p>Set window width and resize the canvas Set `nil` to maximize canvas.</p>
881
+ <p>Set window width and resize the canvas Set nil` to maximize canvas.</p>
882
882
  </div></span>
883
883
 
884
884
  </li>
@@ -919,10 +919,10 @@
919
919
  <pre class="lines">
920
920
 
921
921
 
922
- 127</pre>
922
+ 130</pre>
923
923
  </td>
924
924
  <td>
925
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 127</span>
925
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 130</span>
926
926
 
927
927
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__img'>_img</span><span class='semicolon'>;</span> <span class='cvar'>@@img</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
928
928
  </td>
@@ -945,18 +945,18 @@
945
945
  <pre class="lines">
946
946
 
947
947
 
948
- 116
949
- 117
950
- 118
951
948
  119
952
949
  120
953
950
  121
954
951
  122
955
952
  123
956
- 124</pre>
953
+ 124
954
+ 125
955
+ 126
956
+ 127</pre>
957
957
  </td>
958
958
  <td>
959
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 116</span>
959
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 119</span>
960
960
 
961
961
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__init'>_init</span>
962
962
  <span class='id identifier rubyid_canvas'>canvas</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'>document.getElementById(&quot;dxopal-canvas&quot;)</span><span class='tstring_end'>`</span></span>
@@ -998,7 +998,6 @@
998
998
  <pre class="lines">
999
999
 
1000
1000
 
1001
- 52
1002
1001
  53
1003
1002
  54
1004
1003
  55
@@ -1060,10 +1059,13 @@
1060
1059
  111
1061
1060
  112
1062
1061
  113
1063
- 114</pre>
1062
+ 114
1063
+ 115
1064
+ 116
1065
+ 117</pre>
1064
1066
  </td>
1065
1067
  <td>
1066
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 52</span>
1068
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 53</span>
1067
1069
 
1068
1070
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_timestamp'>timestamp</span><span class='rparen'>)</span>
1069
1071
  <span class='cvar'>@@img</span> <span class='op'>||=</span> <span class='id identifier rubyid__init'>_init</span>
@@ -1077,7 +1079,8 @@
1077
1079
  <span class='kw'>if</span> <span class='cvar'>@@fps_ct</span> <span class='op'>&gt;=</span> <span class='id identifier rubyid_frame_msec'>frame_msec</span>
1078
1080
  <span class='cvar'>@@fps_ct</span> <span class='op'>-=</span> <span class='id identifier rubyid_frame_msec'>frame_msec</span>
1079
1081
  <span class='kw'>else</span>
1080
- <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1082
+ <span class='id identifier rubyid_self_'>self_</span> <span class='op'>=</span> <span class='kw'>self</span>
1083
+ <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid_self_'>self_</span><span class='period'>.</span><span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1081
1084
  <span class='kw'>return</span>
1082
1085
  <span class='kw'>end</span>
1083
1086
 
@@ -1126,7 +1129,8 @@
1126
1129
  <span class='kw'>end</span>
1127
1130
  <span class='kw'>end</span>
1128
1131
 
1129
- <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1132
+ <span class='id identifier rubyid_self_'>self_</span> <span class='op'>=</span> <span class='kw'>self</span>
1133
+ <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid_self_'>self_</span><span class='period'>.</span><span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1130
1134
  <span class='kw'>end</span></pre>
1131
1135
  </td>
1132
1136
  </tr>
@@ -1148,10 +1152,10 @@
1148
1152
  <pre class="lines">
1149
1153
 
1150
1154
 
1151
- 151</pre>
1155
+ 154</pre>
1152
1156
  </td>
1153
1157
  <td>
1154
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 151</span>
1158
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 154</span>
1155
1159
 
1156
1160
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_bgcolor'>bgcolor</span><span class='semicolon'>;</span> <span class='cvar'>@@bgcolor</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1157
1161
  </td>
@@ -1174,10 +1178,10 @@
1174
1178
  <pre class="lines">
1175
1179
 
1176
1180
 
1177
- 152</pre>
1181
+ 155</pre>
1178
1182
  </td>
1179
1183
  <td>
1180
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 152</span>
1184
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 155</span>
1181
1185
 
1182
1186
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_bgcolor='>bgcolor=</span><span class='lparen'>(</span><span class='id identifier rubyid_col'>col</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='cvar'>@@bgcolor</span> <span class='op'>=</span> <span class='id identifier rubyid_col'>col</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1183
1187
  </td>
@@ -1200,12 +1204,12 @@
1200
1204
  <pre class="lines">
1201
1205
 
1202
1206
 
1203
- 154
1204
- 155
1205
- 156</pre>
1207
+ 157
1208
+ 158
1209
+ 159</pre>
1206
1210
  </td>
1207
1211
  <td>
1208
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 154</span>
1212
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 157</span>
1209
1213
 
1210
1214
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw'>draw</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1211
1215
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:image</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='rparen'>)</span>
@@ -1230,12 +1234,12 @@
1230
1234
  <pre class="lines">
1231
1235
 
1232
1236
 
1233
- 184
1234
- 185
1235
- 186</pre>
1237
+ 187
1238
+ 188
1239
+ 189</pre>
1236
1240
  </td>
1237
1241
  <td>
1238
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 184</span>
1242
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 187</span>
1239
1243
 
1240
1244
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_box'>draw_box</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1241
1245
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:box</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1260,12 +1264,12 @@
1260
1264
  <pre class="lines">
1261
1265
 
1262
1266
 
1263
- 188
1264
- 189
1265
- 190</pre>
1267
+ 191
1268
+ 192
1269
+ 193</pre>
1266
1270
  </td>
1267
1271
  <td>
1268
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 188</span>
1272
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 191</span>
1269
1273
 
1270
1274
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_box_fill'>draw_box_fill</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1271
1275
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:box_fill</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1290,12 +1294,12 @@
1290
1294
  <pre class="lines">
1291
1295
 
1292
1296
 
1293
- 192
1294
- 193
1295
- 194</pre>
1297
+ 195
1298
+ 196
1299
+ 197</pre>
1296
1300
  </td>
1297
1301
  <td>
1298
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 192</span>
1302
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 195</span>
1299
1303
 
1300
1304
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_circle'>draw_circle</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1301
1305
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:circle</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1320,12 +1324,12 @@
1320
1324
  <pre class="lines">
1321
1325
 
1322
1326
 
1323
- 196
1324
- 197
1325
- 198</pre>
1327
+ 199
1328
+ 200
1329
+ 201</pre>
1326
1330
  </td>
1327
1331
  <td>
1328
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 196</span>
1332
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 199</span>
1329
1333
 
1330
1334
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_circle_fill'>draw_circle_fill</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1331
1335
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:circle_fill</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_r'>r</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1350,12 +1354,12 @@
1350
1354
  <pre class="lines">
1351
1355
 
1352
1356
 
1353
- 166
1354
- 167
1355
- 168</pre>
1357
+ 169
1358
+ 170
1359
+ 171</pre>
1356
1360
  </td>
1357
1361
  <td>
1358
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 166</span>
1362
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 169</span>
1359
1363
 
1360
1364
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_ex'>draw_ex</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1361
1365
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:z</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span><span class='comma'>,</span> <span class='symbol'>:draw_ex</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -1380,14 +1384,14 @@
1380
1384
  <pre class="lines">
1381
1385
 
1382
1386
 
1383
- 170
1384
- 171
1385
- 172
1386
1387
  173
1387
- 174</pre>
1388
+ 174
1389
+ 175
1390
+ 176
1391
+ 177</pre>
1388
1392
  </td>
1389
1393
  <td>
1390
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 170</span>
1394
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 173</span>
1391
1395
 
1392
1396
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_font'>draw_font</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_string'>string</span><span class='comma'>,</span> <span class='id identifier rubyid_font'>font</span><span class='comma'>,</span> <span class='id identifier rubyid_option'>option</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1393
1397
  <span class='id identifier rubyid_z'>z</span> <span class='op'>=</span> <span class='id identifier rubyid_option'>option</span><span class='lbracket'>[</span><span class='symbol'>:z</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='int'>0</span>
@@ -1414,12 +1418,12 @@
1414
1418
  <pre class="lines">
1415
1419
 
1416
1420
 
1417
- 180
1418
- 181
1419
- 182</pre>
1421
+ 183
1422
+ 184
1423
+ 185</pre>
1420
1424
  </td>
1421
1425
  <td>
1422
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 180</span>
1426
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 183</span>
1423
1427
 
1424
1428
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_line'>draw_line</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1425
1429
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:line</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1444,13 +1448,13 @@
1444
1448
  <pre class="lines">
1445
1449
 
1446
1450
 
1447
- 46
1448
1451
  47
1449
1452
  48
1450
- 49</pre>
1453
+ 49
1454
+ 50</pre>
1451
1455
  </td>
1452
1456
  <td>
1453
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 46</span>
1457
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 47</span>
1454
1458
 
1455
1459
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_pause_screen'>draw_pause_screen</span>
1456
1460
  <span class='const'><span class='object_link'><a href="" title="DXOpal::Window (module)">Window</a></span></span><span class='period'>.</span><span class='id identifier rubyid_draw_box_fill'><span class='object_link'><a href="#draw_box_fill-class_method" title="DXOpal::Window.draw_box_fill (method)">draw_box_fill</a></span></span><span class='lparen'>(</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>0</span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="DXOpal::Window (module)">Window</a></span></span><span class='period'>.</span><span class='id identifier rubyid_width'><span class='object_link'><a href="#width-class_method" title="DXOpal::Window.width (method)">width</a></span></span><span class='comma'>,</span> <span class='const'><span class='object_link'><a href="" title="DXOpal::Window (module)">Window</a></span></span><span class='period'>.</span><span class='id identifier rubyid_height'><span class='object_link'><a href="#height-class_method" title="DXOpal::Window.height (method)">height</a></span></span><span class='comma'>,</span> <span class='const'>C_BLACK</span><span class='rparen'>)</span>
@@ -1476,12 +1480,12 @@
1476
1480
  <pre class="lines">
1477
1481
 
1478
1482
 
1479
- 176
1480
- 177
1481
- 178</pre>
1483
+ 179
1484
+ 180
1485
+ 181</pre>
1482
1486
  </td>
1483
1487
  <td>
1484
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 176</span>
1488
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 179</span>
1485
1489
 
1486
1490
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_pixel'>draw_pixel</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1487
1491
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:pixel</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1506,12 +1510,12 @@
1506
1510
  <pre class="lines">
1507
1511
 
1508
1512
 
1509
- 162
1510
- 163
1511
- 164</pre>
1513
+ 165
1514
+ 166
1515
+ 167</pre>
1512
1516
  </td>
1513
1517
  <td>
1514
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 162</span>
1518
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 165</span>
1515
1519
 
1516
1520
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_rot'>draw_rot</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_angle'>angle</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1517
1521
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:image_rot</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_angle'>angle</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='rparen'>)</span>
@@ -1536,12 +1540,12 @@
1536
1540
  <pre class="lines">
1537
1541
 
1538
1542
 
1539
- 158
1540
- 159
1541
- 160</pre>
1543
+ 161
1544
+ 162
1545
+ 163</pre>
1542
1546
  </td>
1543
1547
  <td>
1544
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 158</span>
1548
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 161</span>
1545
1549
 
1546
1550
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_scale'>draw_scale</span><span class='lparen'>(</span><span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_x'>scale_x</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_y'>scale_y</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1547
1551
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:image_scale</span><span class='comma'>,</span> <span class='id identifier rubyid_x'>x</span><span class='comma'>,</span> <span class='id identifier rubyid_y'>y</span><span class='comma'>,</span> <span class='id identifier rubyid_image'>image</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_x'>scale_x</span><span class='comma'>,</span> <span class='id identifier rubyid_scale_y'>scale_y</span><span class='comma'>,</span> <span class='id identifier rubyid_center_x'>center_x</span><span class='comma'>,</span> <span class='id identifier rubyid_center_y'>center_y</span><span class='rparen'>)</span>
@@ -1566,12 +1570,12 @@
1566
1570
  <pre class="lines">
1567
1571
 
1568
1572
 
1569
- 200
1570
- 201
1571
- 202</pre>
1573
+ 203
1574
+ 204
1575
+ 205</pre>
1572
1576
  </td>
1573
1577
  <td>
1574
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 200</span>
1578
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 203</span>
1575
1579
 
1576
1580
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_triangle'>draw_triangle</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1577
1581
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:triangle</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1596,12 +1600,12 @@
1596
1600
  <pre class="lines">
1597
1601
 
1598
1602
 
1599
- 204
1600
- 205
1601
- 206</pre>
1603
+ 207
1604
+ 208
1605
+ 209</pre>
1602
1606
  </td>
1603
1607
  <td>
1604
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 204</span>
1608
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 207</span>
1605
1609
 
1606
1610
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_draw_triangle_fill'>draw_triangle_fill</span><span class='lparen'>(</span><span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='comma'>,</span> <span class='id identifier rubyid_z'>z</span><span class='op'>=</span><span class='int'>0</span><span class='rparen'>)</span>
1607
1611
  <span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='symbol'>:triangle_fill</span><span class='comma'>,</span> <span class='id identifier rubyid_x1'>x1</span><span class='comma'>,</span> <span class='id identifier rubyid_y1'>y1</span><span class='comma'>,</span> <span class='id identifier rubyid_x2'>x2</span><span class='comma'>,</span> <span class='id identifier rubyid_y2'>y2</span><span class='comma'>,</span> <span class='id identifier rubyid_x3'>x3</span><span class='comma'>,</span> <span class='id identifier rubyid_y3'>y3</span><span class='comma'>,</span> <span class='id identifier rubyid_color'>color</span><span class='rparen'>)</span>
@@ -1637,12 +1641,12 @@
1637
1641
  <pre class="lines">
1638
1642
 
1639
1643
 
1640
- 209
1641
- 210
1642
- 211</pre>
1644
+ 212
1645
+ 213
1646
+ 214</pre>
1643
1647
  </td>
1644
1648
  <td>
1645
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 209</span>
1649
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 212</span>
1646
1650
 
1647
1651
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_enqueue_draw'>enqueue_draw</span><span class='lparen'>(</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
1648
1652
  <span class='cvar'>@@draw_queue</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='id identifier rubyid_z'>z</span><span class='comma'>,</span> <span class='cvar'>@@draw_queue</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rbracket'>]</span><span class='rparen'>)</span>
@@ -1667,10 +1671,10 @@
1667
1671
  <pre class="lines">
1668
1672
 
1669
1673
 
1670
- 129</pre>
1674
+ 132</pre>
1671
1675
  </td>
1672
1676
  <td>
1673
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 129</span>
1677
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 132</span>
1674
1678
 
1675
1679
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fps'>fps</span><span class='semicolon'>;</span> <span class='cvar'>@@fps</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1676
1680
  </td>
@@ -1693,10 +1697,10 @@
1693
1697
  <pre class="lines">
1694
1698
 
1695
1699
 
1696
- 130</pre>
1700
+ 133</pre>
1697
1701
  </td>
1698
1702
  <td>
1699
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 130</span>
1703
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 133</span>
1700
1704
 
1701
1705
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_fps='>fps=</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='rparen'>)</span><span class='semicolon'>;</span> <span class='cvar'>@@fps</span> <span class='op'>=</span> <span class='id identifier rubyid_w'>w</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1702
1706
  </td>
@@ -1719,10 +1723,10 @@
1719
1723
  <pre class="lines">
1720
1724
 
1721
1725
 
1722
- 141</pre>
1726
+ 144</pre>
1723
1727
  </td>
1724
1728
  <td>
1725
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 141</span>
1729
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 144</span>
1726
1730
 
1727
1731
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_height'>height</span><span class='semicolon'>;</span> <span class='cvar'>@@height</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1728
1732
  </td>
@@ -1742,7 +1746,7 @@
1742
1746
  </h3><div class="docstring">
1743
1747
  <div class="discussion">
1744
1748
 
1745
- <p>Set window height and resize the canvas Set `nil` to maximize canvas</p>
1749
+ <p>Set window height and resize the canvas Set nil` to maximize canvas</p>
1746
1750
 
1747
1751
 
1748
1752
  </div>
@@ -1756,15 +1760,15 @@
1756
1760
  <pre class="lines">
1757
1761
 
1758
1762
 
1759
- 144
1760
- 145
1761
- 146
1762
1763
  147
1763
1764
  148
1764
- 149</pre>
1765
+ 149
1766
+ 150
1767
+ 151
1768
+ 152</pre>
1765
1769
  </td>
1766
1770
  <td>
1767
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 144</span>
1771
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 147</span>
1768
1772
 
1769
1773
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_height='>height=</span><span class='lparen'>(</span><span class='id identifier rubyid_h'>h</span><span class='rparen'>)</span>
1770
1774
  <span class='id identifier rubyid_canvas'>canvas</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'>document.getElementById(&quot;dxopal-canvas&quot;)</span><span class='tstring_end'>`</span></span>
@@ -1855,7 +1859,8 @@
1855
1859
  30
1856
1860
  31
1857
1861
  32
1858
- 33</pre>
1862
+ 33
1863
+ 34</pre>
1859
1864
  </td>
1860
1865
  <td>
1861
1866
  <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 28</span>
@@ -1864,7 +1869,8 @@
1864
1869
  <span class='id identifier rubyid_already_running'>already_running</span> <span class='op'>=</span> <span class='op'>!</span><span class='op'>!</span><span class='cvar'>@@block</span>
1865
1870
  <span class='cvar'>@@block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
1866
1871
  <span class='kw'>return</span> <span class='kw'>if</span> <span class='id identifier rubyid_already_running'>already_running</span>
1867
- <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1872
+ <span class='id identifier rubyid_self_'>self_</span> <span class='op'>=</span> <span class='kw'>self</span>
1873
+ <span class='backtick'>`</span><span class='tstring_content'>window</span><span class='tstring_end'>`</span></span><span class='period'>.</span><span class='const'>JS</span><span class='period'>.</span><span class='id identifier rubyid_requestAnimationFrame'>requestAnimationFrame</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_time'>time</span><span class='op'>|</span> <span class='id identifier rubyid_self_'>self_</span><span class='period'>.</span><span class='id identifier rubyid__loop'>_loop</span><span class='lparen'>(</span><span class='id identifier rubyid_time'>time</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1868
1874
  <span class='kw'>end</span></pre>
1869
1875
  </td>
1870
1876
  </tr>
@@ -1897,14 +1903,14 @@
1897
1903
  <pre class="lines">
1898
1904
 
1899
1905
 
1900
- 36
1901
1906
  37
1902
1907
  38
1903
1908
  39
1904
- 40</pre>
1909
+ 40
1910
+ 41</pre>
1905
1911
  </td>
1906
1912
  <td>
1907
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 36</span>
1913
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 37</span>
1908
1914
 
1909
1915
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_pause'>pause</span>
1910
1916
  <span class='cvar'>@@paused</span> <span class='op'>=</span> <span class='kw'>true</span>
@@ -1953,10 +1959,10 @@
1953
1959
  <pre class="lines">
1954
1960
 
1955
1961
 
1956
- 41</pre>
1962
+ 42</pre>
1957
1963
  </td>
1958
1964
  <td>
1959
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 41</span>
1965
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 42</span>
1960
1966
 
1961
1967
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_paused?'>paused?</span><span class='semicolon'>;</span> <span class='cvar'>@@paused</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1962
1968
  </td>
@@ -1979,10 +1985,10 @@
1979
1985
  <pre class="lines">
1980
1986
 
1981
1987
 
1982
- 131</pre>
1988
+ 134</pre>
1983
1989
  </td>
1984
1990
  <td>
1985
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 131</span>
1991
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 134</span>
1986
1992
 
1987
1993
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_real_fps'>real_fps</span><span class='semicolon'>;</span> <span class='cvar'>@@real_fps</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1988
1994
  </td>
@@ -2005,13 +2011,13 @@
2005
2011
  <pre class="lines">
2006
2012
 
2007
2013
 
2008
- 42
2009
2014
  43
2010
2015
  44
2011
- 45</pre>
2016
+ 45
2017
+ 46</pre>
2012
2018
  </td>
2013
2019
  <td>
2014
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 42</span>
2020
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 43</span>
2015
2021
 
2016
2022
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_resume'>resume</span>
2017
2023
  <span class='id identifier rubyid_raise'>raise</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Window.resume is called before Window.loop</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='cvar'>@@block</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
@@ -2037,10 +2043,10 @@
2037
2043
  <pre class="lines">
2038
2044
 
2039
2045
 
2040
- 132</pre>
2046
+ 135</pre>
2041
2047
  </td>
2042
2048
  <td>
2043
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 132</span>
2049
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 135</span>
2044
2050
 
2045
2051
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_width'>width</span><span class='semicolon'>;</span> <span class='cvar'>@@width</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
2046
2052
  </td>
@@ -2060,7 +2066,7 @@
2060
2066
  </h3><div class="docstring">
2061
2067
  <div class="discussion">
2062
2068
 
2063
- <p>Set window width and resize the canvas Set `nil` to maximize canvas</p>
2069
+ <p>Set window width and resize the canvas Set nil` to maximize canvas</p>
2064
2070
 
2065
2071
 
2066
2072
  </div>
@@ -2074,15 +2080,15 @@
2074
2080
  <pre class="lines">
2075
2081
 
2076
2082
 
2077
- 135
2078
- 136
2079
- 137
2080
2083
  138
2081
2084
  139
2082
- 140</pre>
2085
+ 140
2086
+ 141
2087
+ 142
2088
+ 143</pre>
2083
2089
  </td>
2084
2090
  <td>
2085
- <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 135</span>
2091
+ <pre class="code"><span class="info file"># File 'lib/dxopal/window.rb', line 138</span>
2086
2092
 
2087
2093
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_width='>width=</span><span class='lparen'>(</span><span class='id identifier rubyid_w'>w</span><span class='rparen'>)</span>
2088
2094
  <span class='id identifier rubyid_canvas'>canvas</span> <span class='op'>=</span> <span class='backtick'>`</span><span class='tstring_content'>document.getElementById(&quot;dxopal-canvas&quot;)</span><span class='tstring_end'>`</span></span>
@@ -2100,9 +2106,9 @@
2100
2106
  </div>
2101
2107
 
2102
2108
  <div id="footer">
2103
- Generated on Tue Dec 29 11:37:23 2020 by
2104
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2105
- 0.9.26 (ruby-2.7.0).
2109
+ Generated on Tue Jul 9 22:42:33 2024 by
2110
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2111
+ 0.9.36 (ruby-3.2.2).
2106
2112
  </div>
2107
2113
 
2108
2114
  </div>