gosu 0.7.15-x86-mswin32-60 → 0.7.16-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/ChipmunkIntegration.rb +7 -7
- data/examples/CptnRuby.rb +5 -5
- data/examples/OpenGLIntegration.rb +6 -6
- data/examples/RMagickIntegration.rb +1 -1
- data/examples/TextInput.rb +7 -1
- data/examples/Tutorial.rb +5 -5
- data/lib/gosu.for_1_8.so +0 -0
- data/lib/gosu.for_1_9.so +0 -0
- data/lib/gosu.rb +6 -1
- data/lib/gosu/patches.rb +53 -0
- data/reference/rdoc/classes/Gosu.html +23 -3
- data/reference/rdoc/classes/Gosu/Color.html +127 -29
- data/reference/rdoc/classes/Gosu/Font.html +31 -21
- data/reference/rdoc/classes/Gosu/GLTexInfo.html +3 -3
- data/reference/rdoc/classes/Gosu/Image.html +52 -37
- data/reference/rdoc/classes/Gosu/Sample.html +19 -13
- data/reference/rdoc/classes/Gosu/SampleInstance.html +29 -19
- data/reference/rdoc/classes/Gosu/Song.html +41 -27
- data/reference/rdoc/classes/Gosu/TextInput.html +42 -3
- data/reference/rdoc/classes/Gosu/Window.html +102 -69
- data/reference/rdoc/classes/Numeric.html +7 -3
- data/reference/rdoc/created.rid +1 -1
- data/reference/rdoc/files/COPYING_txt.html +3 -3
- data/reference/rdoc/files/README_txt.html +3 -3
- data/reference/rdoc/files/reference/Deployment on OS X_rdoc.html +4 -19
- data/reference/rdoc/files/reference/Deployment on Windows_rdoc.html +18 -31
- data/reference/rdoc/files/reference/Drawing with Colors_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Order of Corners_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Tileability_rdoc.html +3 -3
- data/reference/rdoc/files/reference/Z Ordering_rdoc.html +3 -3
- data/reference/rdoc/files/reference/gosu_rb.html +3 -3
- data/reference/rdoc/fr_method_index.html +49 -48
- data/reference/rdoc/index.html +1 -1
- metadata +4 -65
- data/reference/rdoc/classes/Gosu.src/M000003.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000004.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000005.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000006.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000007.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000008.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000009.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000010.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000011.html +0 -0
- data/reference/rdoc/classes/Gosu.src/M000012.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000016.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000017.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000018.html +0 -0
- data/reference/rdoc/classes/Gosu/Color.src/M000019.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000029.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000030.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000031.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000032.html +0 -0
- data/reference/rdoc/classes/Gosu/Font.src/M000033.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000020.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000021.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000022.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000023.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000024.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000025.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000026.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000027.html +0 -0
- data/reference/rdoc/classes/Gosu/Image.src/M000028.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000013.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000014.html +0 -0
- data/reference/rdoc/classes/Gosu/Sample.src/M000015.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000051.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000052.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000053.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000054.html +0 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.src/M000055.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000056.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000057.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000058.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000059.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000060.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000061.html +0 -0
- data/reference/rdoc/classes/Gosu/Song.src/M000062.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000034.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000035.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000036.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000037.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000038.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000039.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000040.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000041.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000042.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000043.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000044.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000045.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000046.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000047.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000048.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000049.html +0 -0
- data/reference/rdoc/classes/Gosu/Window.src/M000050.html +0 -0
- data/reference/rdoc/classes/Numeric.src/M000001.html +0 -0
- data/reference/rdoc/classes/Numeric.src/M000002.html +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::SampleInstance</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::SampleInstance</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -344,44 +344,44 @@ Object
|
|
344
344
|
<div class="navigation top" id="methods"><h3>Methods</h3>
|
345
345
|
|
346
346
|
|
347
|
-
<a href='#
|
347
|
+
<a href='#M000053'>
|
348
348
|
pause<br/>
|
349
349
|
</a>
|
350
350
|
|
351
351
|
|
352
352
|
|
353
353
|
|
354
|
-
<a href='#
|
354
|
+
<a href='#M000054'>
|
355
355
|
paused?<br/>
|
356
356
|
</a>
|
357
357
|
|
358
358
|
|
359
359
|
|
360
360
|
|
361
|
-
<a href='#
|
361
|
+
<a href='#M000056'>
|
362
362
|
playing?<br/>
|
363
363
|
</a>
|
364
364
|
|
365
365
|
|
366
366
|
|
367
367
|
|
368
|
-
<a href='#
|
368
|
+
<a href='#M000055'>
|
369
369
|
resume<br/>
|
370
370
|
</a>
|
371
371
|
|
372
372
|
|
373
373
|
|
374
374
|
|
375
|
-
<a href='#
|
375
|
+
<a href='#M000052'>
|
376
376
|
stop<br/>
|
377
377
|
</a>
|
378
378
|
|
379
379
|
|
380
380
|
</div>
|
381
|
-
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link"
|
381
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
382
382
|
<div id="description"><p>
|
383
383
|
An instance of a <a href="Sample.html">Sample</a> playing. Can be used to
|
384
|
-
<a href="SampleInstance.html#
|
384
|
+
<a href="SampleInstance.html#M000052">stop</a> sounds dynamically, or to
|
385
385
|
check if they are finished. It is recommended that you throw away sample
|
386
386
|
instances if possible, as they could accidentally refer to other sounds
|
387
387
|
being played after a very long time has passed.
|
@@ -427,9 +427,9 @@ being played after a very long time has passed.
|
|
427
427
|
<h1>Public Instance Methods</h1>
|
428
428
|
|
429
429
|
|
430
|
-
<a class="small" name="
|
430
|
+
<a class="small" name="M000053"><br/></a>
|
431
431
|
<div class="method_block"><h3>
|
432
|
-
<a href='#
|
432
|
+
<a href='#M000053'>
|
433
433
|
|
434
434
|
|
435
435
|
pause
|
@@ -443,11 +443,13 @@ Pauses this instance to be resumed afterwards. It will still keep a channel
|
|
443
443
|
filled while paused.
|
444
444
|
</p>
|
445
445
|
|
446
|
+
<p class="source_link" id="M000053-show-link"><a href="#" onclick="toggle('M000053-source'); toggleText('M000053-link'); return false;" id="M000053-link">Show source...</a></p><div class="source" id="M000053-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 294</span>
|
447
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pause</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
446
448
|
</div>
|
447
449
|
|
448
|
-
<a class="small" name="
|
450
|
+
<a class="small" name="M000054"><br/></a>
|
449
451
|
<div class="method_block"><h3>
|
450
|
-
<a href='#
|
452
|
+
<a href='#M000054'>
|
451
453
|
|
452
454
|
|
453
455
|
paused?
|
@@ -457,11 +459,13 @@ paused?
|
|
457
459
|
</a>
|
458
460
|
</h3>
|
459
461
|
|
462
|
+
<p class="source_link" id="M000054-show-link"><a href="#" onclick="toggle('M000054-source'); toggleText('M000054-link'); return false;" id="M000054-link">Show source...</a></p><div class="source" id="M000054-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 295</span>
|
463
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paused?</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
460
464
|
</div>
|
461
465
|
|
462
|
-
<a class="small" name="
|
466
|
+
<a class="small" name="M000056"><br/></a>
|
463
467
|
<div class="method_block"><h3>
|
464
|
-
<a href='#
|
468
|
+
<a href='#M000056'>
|
465
469
|
|
466
470
|
|
467
471
|
playing?
|
@@ -471,11 +475,13 @@ playing?
|
|
471
475
|
</a>
|
472
476
|
</h3>
|
473
477
|
|
478
|
+
<p class="source_link" id="M000056-show-link"><a href="#" onclick="toggle('M000056-source'); toggleText('M000056-link'); return false;" id="M000056-link">Show source...</a></p><div class="source" id="M000056-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 297</span>
|
479
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">playing?</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
474
480
|
</div>
|
475
481
|
|
476
|
-
<a class="small" name="
|
482
|
+
<a class="small" name="M000055"><br/></a>
|
477
483
|
<div class="method_block"><h3>
|
478
|
-
<a href='#
|
484
|
+
<a href='#M000055'>
|
479
485
|
|
480
486
|
|
481
487
|
resume
|
@@ -485,11 +491,13 @@ resume
|
|
485
491
|
</a>
|
486
492
|
</h3>
|
487
493
|
|
494
|
+
<p class="source_link" id="M000055-show-link"><a href="#" onclick="toggle('M000055-source'); toggleText('M000055-link'); return false;" id="M000055-link">Show source...</a></p><div class="source" id="M000055-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 296</span>
|
495
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">resume</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
488
496
|
</div>
|
489
497
|
|
490
|
-
<a class="small" name="
|
498
|
+
<a class="small" name="M000052"><br/></a>
|
491
499
|
<div class="method_block"><h3>
|
492
|
-
<a href='#
|
500
|
+
<a href='#M000052'>
|
493
501
|
|
494
502
|
|
495
503
|
stop
|
@@ -504,10 +512,12 @@ late, does not do any harm. You can nil out the reference to the instance
|
|
504
512
|
afterwards as it will be useless.
|
505
513
|
</p>
|
506
514
|
|
515
|
+
<p class="source_link" id="M000052-show-link"><a href="#" onclick="toggle('M000052-source'); toggleText('M000052-link'); return false;" id="M000052-link">Show source...</a></p><div class="source" id="M000052-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 292</span>
|
516
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
507
517
|
</div>
|
508
518
|
|
509
519
|
|
510
520
|
|
511
521
|
|
512
522
|
|
513
|
-
</div><div class="clear" id="footer">
|
523
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Song</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Song</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -344,55 +344,55 @@ Object
|
|
344
344
|
<div class="navigation top" id="methods"><h3>Methods</h3>
|
345
345
|
|
346
346
|
|
347
|
-
<a href='#
|
347
|
+
<a href='#M000057'>
|
348
348
|
current_song<br/>
|
349
349
|
</a>
|
350
350
|
|
351
351
|
|
352
352
|
|
353
353
|
|
354
|
-
<a href='#
|
354
|
+
<a href='#M000058'>
|
355
355
|
new<br/>
|
356
356
|
</a>
|
357
357
|
|
358
358
|
|
359
359
|
|
360
360
|
|
361
|
-
<a href='#
|
361
|
+
<a href='#M000060'>
|
362
362
|
pause<br/>
|
363
363
|
</a>
|
364
364
|
|
365
365
|
|
366
366
|
|
367
367
|
|
368
|
-
<a href='#
|
368
|
+
<a href='#M000061'>
|
369
369
|
paused?<br/>
|
370
370
|
</a>
|
371
371
|
|
372
372
|
|
373
373
|
|
374
374
|
|
375
|
-
<a href='#
|
375
|
+
<a href='#M000059'>
|
376
376
|
play<br/>
|
377
377
|
</a>
|
378
378
|
|
379
379
|
|
380
380
|
|
381
381
|
|
382
|
-
<a href='#
|
382
|
+
<a href='#M000063'>
|
383
383
|
playing?<br/>
|
384
384
|
</a>
|
385
385
|
|
386
386
|
|
387
387
|
|
388
388
|
|
389
|
-
<a href='#
|
389
|
+
<a href='#M000062'>
|
390
390
|
stop<br/>
|
391
391
|
</a>
|
392
392
|
|
393
393
|
|
394
394
|
</div>
|
395
|
-
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link"
|
395
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
396
396
|
<div id="description"><p>
|
397
397
|
Songs are less flexible than samples in that they can only be played one at
|
398
398
|
a time and without panning or speed parameters.
|
@@ -422,9 +422,9 @@ a time and without panning or speed parameters.
|
|
422
422
|
<h1>Public Class Methods</h1>
|
423
423
|
|
424
424
|
|
425
|
-
<a class="small" name="
|
425
|
+
<a class="small" name="M000057"><br/></a>
|
426
426
|
<div class="method_block"><h3>
|
427
|
-
<a href='#
|
427
|
+
<a href='#M000057'>
|
428
428
|
|
429
429
|
|
430
430
|
current_song
|
@@ -438,11 +438,13 @@ Returns the song currently being played or paused, or nil if no song has
|
|
438
438
|
been played yet or the last song has finished playing.
|
439
439
|
</p>
|
440
440
|
|
441
|
+
<p class="source_link" id="M000057-show-link"><a href="#" onclick="toggle('M000057-source'); toggleText('M000057-link'); return false;" id="M000057-link">Show source...</a></p><div class="source" id="M000057-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 306</span>
|
442
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">current_song</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
441
443
|
</div>
|
442
444
|
|
443
|
-
<a class="small" name="
|
445
|
+
<a class="small" name="M000058"><br/></a>
|
444
446
|
<div class="method_block"><h3>
|
445
|
-
<a href='#
|
447
|
+
<a href='#M000058'>
|
446
448
|
|
447
449
|
|
448
450
|
new
|
@@ -452,15 +454,17 @@ new
|
|
452
454
|
</a>
|
453
455
|
</h3>
|
454
456
|
|
457
|
+
<p class="source_link" id="M000058-show-link"><a href="#" onclick="toggle('M000058-source'); toggleText('M000058-link'); return false;" id="M000058-link">Show source...</a></p><div class="source" id="M000058-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 310</span>
|
458
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
455
459
|
</div>
|
456
460
|
|
457
461
|
|
458
462
|
<h1>Public Instance Methods</h1>
|
459
463
|
|
460
464
|
|
461
|
-
<a class="small" name="
|
465
|
+
<a class="small" name="M000060"><br/></a>
|
462
466
|
<div class="method_block"><h3>
|
463
|
-
<a href='#
|
467
|
+
<a href='#M000060'>
|
464
468
|
|
465
469
|
|
466
470
|
pause
|
@@ -471,14 +475,16 @@ pause
|
|
471
475
|
</h3>
|
472
476
|
<p>
|
473
477
|
Pauses playback of the song. It is not considered being played. <a
|
474
|
-
href="Song.html#
|
478
|
+
href="Song.html#M000057">current_song</a> will stay the same.
|
475
479
|
</p>
|
476
480
|
|
481
|
+
<p class="source_link" id="M000060-show-link"><a href="#" onclick="toggle('M000060-source'); toggleText('M000060-link'); return false;" id="M000060-link">Show source...</a></p><div class="source" id="M000060-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 318</span>
|
482
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pause</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
477
483
|
</div>
|
478
484
|
|
479
|
-
<a class="small" name="
|
485
|
+
<a class="small" name="M000061"><br/></a>
|
480
486
|
<div class="method_block"><h3>
|
481
|
-
<a href='#
|
487
|
+
<a href='#M000061'>
|
482
488
|
|
483
489
|
|
484
490
|
paused?
|
@@ -491,11 +497,13 @@ paused?
|
|
491
497
|
Returns true if the song is the current song, but in paused mode.
|
492
498
|
</p>
|
493
499
|
|
500
|
+
<p class="source_link" id="M000061-show-link"><a href="#" onclick="toggle('M000061-source'); toggleText('M000061-link'); return false;" id="M000061-link">Show source...</a></p><div class="source" id="M000061-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 322</span>
|
501
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">paused?</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
494
502
|
</div>
|
495
503
|
|
496
|
-
<a class="small" name="
|
504
|
+
<a class="small" name="M000059"><br/></a>
|
497
505
|
<div class="method_block"><h3>
|
498
|
-
<a href='#
|
506
|
+
<a href='#M000059'>
|
499
507
|
|
500
508
|
|
501
509
|
play
|
@@ -506,15 +514,17 @@ play
|
|
506
514
|
</h3>
|
507
515
|
<p>
|
508
516
|
Starts or resumes playback of the song. This will <a
|
509
|
-
href="Song.html#
|
517
|
+
href="Song.html#M000062">stop</a> all other songs and set the current song
|
510
518
|
to this object.
|
511
519
|
</p>
|
512
520
|
|
521
|
+
<p class="source_link" id="M000059-show-link"><a href="#" onclick="toggle('M000059-source'); toggleText('M000059-link'); return false;" id="M000059-link">Show source...</a></p><div class="source" id="M000059-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 314</span>
|
522
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">play</span>(<span class="ruby-identifier">looping</span> = <span class="ruby-keyword kw">false</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
513
523
|
</div>
|
514
524
|
|
515
|
-
<a class="small" name="
|
525
|
+
<a class="small" name="M000063"><br/></a>
|
516
526
|
<div class="method_block"><h3>
|
517
|
-
<a href='#
|
527
|
+
<a href='#M000063'>
|
518
528
|
|
519
529
|
|
520
530
|
playing?
|
@@ -527,11 +537,13 @@ playing?
|
|
527
537
|
Returns true if the song is currently playing.
|
528
538
|
</p>
|
529
539
|
|
540
|
+
<p class="source_link" id="M000063-show-link"><a href="#" onclick="toggle('M000063-source'); toggleText('M000063-link'); return false;" id="M000063-link">Show source...</a></p><div class="source" id="M000063-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 329</span>
|
541
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">playing?</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
530
542
|
</div>
|
531
543
|
|
532
|
-
<a class="small" name="
|
544
|
+
<a class="small" name="M000062"><br/></a>
|
533
545
|
<div class="method_block"><h3>
|
534
|
-
<a href='#
|
546
|
+
<a href='#M000062'>
|
535
547
|
|
536
548
|
|
537
549
|
stop
|
@@ -542,13 +554,15 @@ stop
|
|
542
554
|
</h3>
|
543
555
|
<p>
|
544
556
|
Stops playback of this song if it is currently played or paused.
|
545
|
-
Afterwards, <a href="Song.html#
|
557
|
+
Afterwards, <a href="Song.html#M000057">current_song</a> will return 0.
|
546
558
|
</p>
|
547
559
|
|
560
|
+
<p class="source_link" id="M000062-show-link"><a href="#" onclick="toggle('M000062-source'); toggleText('M000062-link'); return false;" id="M000062-link">Show source...</a></p><div class="source" id="M000062-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 326</span>
|
561
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stop</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
548
562
|
</div>
|
549
563
|
|
550
564
|
|
551
565
|
|
552
566
|
|
553
567
|
|
554
|
-
</div><div class="clear" id="footer">
|
568
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::TextInput</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::TextInput</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -341,7 +341,16 @@ Object
|
|
341
341
|
|
342
342
|
|
343
343
|
|
344
|
-
<div
|
344
|
+
<div class="navigation top" id="methods"><h3>Methods</h3>
|
345
|
+
|
346
|
+
|
347
|
+
<a href='#M000013'>
|
348
|
+
filter<br/>
|
349
|
+
</a>
|
350
|
+
|
351
|
+
|
352
|
+
</div>
|
353
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
345
354
|
<div id="description"><p>
|
346
355
|
<a href="TextInput.html">TextInput</a> instances are invisible objects that
|
347
356
|
build a text string from input, using the current operating system‘s
|
@@ -401,5 +410,35 @@ your own GUIs to build upon.
|
|
401
410
|
</table></p>
|
402
411
|
|
403
412
|
|
413
|
+
<h1>Public Instance Methods</h1>
|
414
|
+
|
415
|
+
|
416
|
+
<a class="small" name="M000013"><br/></a>
|
417
|
+
<div class="method_block"><h3>
|
418
|
+
<a href='#M000013'>
|
419
|
+
|
420
|
+
|
421
|
+
filter
|
422
|
+
|
423
|
+
(text_in)
|
424
|
+
|
425
|
+
</a>
|
426
|
+
</h3>
|
427
|
+
<p>
|
428
|
+
Overridable <a href="TextInput.html#M000013">filter</a> that is applied to
|
429
|
+
all new text that is entered. Allows for context-sensitive
|
430
|
+
filtering/extending/… of the text. The text will be inserted at
|
431
|
+
caretPos afterwards.
|
432
|
+
</p>
|
433
|
+
|
434
|
+
<p class="source_link" id="M000013-show-link"><a href="#" onclick="toggle('M000013-source'); toggleText('M000013-link'); return false;" id="M000013-link">Show source...</a></p><div class="source" id="M000013-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 352</span>
|
435
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filter</span> <span class="ruby-identifier">text_in</span>
|
436
|
+
<span class="ruby-identifier">text_in</span>
|
437
|
+
<span class="ruby-keyword kw">end</span></pre></div>
|
438
|
+
</div>
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
404
443
|
|
405
|
-
</div><div class="clear" id="footer">
|
444
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Window</title><link type="text/css" media="screen"
|
1
|
+
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Window</title><link type="text/css" media="screen" href="../.././rdoc-style.css" rel="stylesheet"/><script type="text/javascript">
|
2
2
|
// Allison template
|
3
3
|
// Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
|
4
4
|
|
@@ -344,125 +344,125 @@ Object
|
|
344
344
|
<div class="navigation top" id="methods"><h3>Methods</h3>
|
345
345
|
|
346
346
|
|
347
|
-
<a href='#
|
347
|
+
<a href='#M000042'>
|
348
348
|
button_down<br/>
|
349
349
|
</a>
|
350
350
|
|
351
351
|
|
352
352
|
|
353
353
|
|
354
|
-
<a href='#
|
354
|
+
<a href='#M000047'>
|
355
355
|
button_down?<br/>
|
356
356
|
</a>
|
357
357
|
|
358
358
|
|
359
359
|
|
360
360
|
|
361
|
-
<a href='#
|
361
|
+
<a href='#M000048'>
|
362
362
|
button_id_to_char<br/>
|
363
363
|
</a>
|
364
364
|
|
365
365
|
|
366
366
|
|
367
367
|
|
368
|
-
<a href='#
|
368
|
+
<a href='#M000043'>
|
369
369
|
button_up<br/>
|
370
370
|
</a>
|
371
371
|
|
372
372
|
|
373
373
|
|
374
374
|
|
375
|
-
<a href='#
|
375
|
+
<a href='#M000049'>
|
376
376
|
char_to_button_id<br/>
|
377
377
|
</a>
|
378
378
|
|
379
379
|
|
380
380
|
|
381
381
|
|
382
|
-
<a href='#
|
382
|
+
<a href='#M000051'>
|
383
383
|
clip_to<br/>
|
384
384
|
</a>
|
385
385
|
|
386
386
|
|
387
387
|
|
388
388
|
|
389
|
-
<a href='#
|
389
|
+
<a href='#M000037'>
|
390
390
|
close<br/>
|
391
391
|
</a>
|
392
392
|
|
393
393
|
|
394
394
|
|
395
395
|
|
396
|
-
<a href='#
|
396
|
+
<a href='#M000039'>
|
397
397
|
draw<br/>
|
398
398
|
</a>
|
399
399
|
|
400
400
|
|
401
401
|
|
402
402
|
|
403
|
-
<a href='#
|
403
|
+
<a href='#M000044'>
|
404
404
|
draw_line<br/>
|
405
405
|
</a>
|
406
406
|
|
407
407
|
|
408
408
|
|
409
409
|
|
410
|
-
<a href='#
|
410
|
+
<a href='#M000046'>
|
411
411
|
draw_quad<br/>
|
412
412
|
</a>
|
413
413
|
|
414
414
|
|
415
415
|
|
416
416
|
|
417
|
-
<a href='#
|
417
|
+
<a href='#M000045'>
|
418
418
|
draw_triangle<br/>
|
419
419
|
</a>
|
420
420
|
|
421
421
|
|
422
422
|
|
423
423
|
|
424
|
-
<a href='#
|
424
|
+
<a href='#M000050'>
|
425
425
|
gl<br/>
|
426
426
|
</a>
|
427
427
|
|
428
428
|
|
429
429
|
|
430
430
|
|
431
|
-
<a href='#
|
431
|
+
<a href='#M000040'>
|
432
432
|
needs_redraw?<br/>
|
433
433
|
</a>
|
434
434
|
|
435
435
|
|
436
436
|
|
437
437
|
|
438
|
-
<a href='#
|
438
|
+
<a href='#M000035'>
|
439
439
|
new<br/>
|
440
440
|
</a>
|
441
441
|
|
442
442
|
|
443
443
|
|
444
444
|
|
445
|
-
<a href='#
|
445
|
+
<a href='#M000041'>
|
446
446
|
set_mouse_position<br/>
|
447
447
|
</a>
|
448
448
|
|
449
449
|
|
450
450
|
|
451
451
|
|
452
|
-
<a href='#
|
452
|
+
<a href='#M000036'>
|
453
453
|
show<br/>
|
454
454
|
</a>
|
455
455
|
|
456
456
|
|
457
457
|
|
458
458
|
|
459
|
-
<a href='#
|
459
|
+
<a href='#M000038'>
|
460
460
|
update<br/>
|
461
461
|
</a>
|
462
462
|
|
463
463
|
|
464
464
|
</div>
|
465
|
-
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link"
|
465
|
+
<div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_class" onKeyUp="return filterList('class', this.value, event);"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_file" onKeyUp="return filterList('file', this.value, event);"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter: </label><input type="text" onKeyPress="return disableSubmit(event);" id="filter_method" onKeyUp="return filterList('method', this.value, event);"></input></form></div></div></div><div id="content">
|
466
466
|
<div id="description"><p>
|
467
467
|
Main class that serves as the foundation of a standard <a
|
468
468
|
href="../Gosu.html">Gosu</a> application. Manages initialization of all of
|
@@ -475,14 +475,12 @@ coordinates relative to the window. This means that the mouse position can
|
|
475
475
|
be negative or larger than the window size.
|
476
476
|
</p>
|
477
477
|
<p>
|
478
|
-
Note that you should really only use
|
478
|
+
Note that you should really only use one instance of this class at the same
|
479
479
|
time. This may or may not change later.
|
480
480
|
</p>
|
481
481
|
<p>
|
482
482
|
Right now, having two or more windows and loading samples or songs on both
|
483
|
-
of them will result in an exception.
|
484
|
-
window, make sure the old one is really dead, e.g. by poking the garbage
|
485
|
-
collector.
|
483
|
+
of them will result in an exception.
|
486
484
|
</p>
|
487
485
|
</div>
|
488
486
|
|
@@ -557,9 +555,9 @@ collector.
|
|
557
555
|
<h1>Public Class Methods</h1>
|
558
556
|
|
559
557
|
|
560
|
-
<a class="small" name="
|
558
|
+
<a class="small" name="M000048"><br/></a>
|
561
559
|
<div class="method_block"><h3>
|
562
|
-
<a href='#
|
560
|
+
<a href='#M000048'>
|
563
561
|
|
564
562
|
|
565
563
|
button_id_to_char
|
@@ -569,14 +567,17 @@ button_id_to_char
|
|
569
567
|
</a>
|
570
568
|
</h3>
|
571
569
|
<p>
|
572
|
-
DEPRECATED: Returns the character a button usually produces, or nil.
|
570
|
+
DEPRECATED: Returns the character a button usually produces, or nil. Please
|
571
|
+
use <a href="TextInput.html">TextInput</a> instead.
|
573
572
|
</p>
|
574
573
|
|
574
|
+
<p class="source_link" id="M000048-show-link"><a href="#" onclick="toggle('M000048-source'); toggleText('M000048-link'); return false;" id="M000048-link">Show source...</a></p><div class="source" id="M000048-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 426</span>
|
575
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">button_id_to_char</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
575
576
|
</div>
|
576
577
|
|
577
|
-
<a class="small" name="
|
578
|
+
<a class="small" name="M000049"><br/></a>
|
578
579
|
<div class="method_block"><h3>
|
579
|
-
<a href='#
|
580
|
+
<a href='#M000049'>
|
580
581
|
|
581
582
|
|
582
583
|
char_to_button_id
|
@@ -587,14 +588,17 @@ char_to_button_id
|
|
587
588
|
</h3>
|
588
589
|
<p>
|
589
590
|
DEPRECATED: Returns the button that has to be pressed to produce the given
|
590
|
-
character, or nil.
|
591
|
+
character, or nil. Please use <a href="TextInput.html">TextInput</a>
|
592
|
+
instead.
|
591
593
|
</p>
|
592
594
|
|
595
|
+
<p class="source_link" id="M000049-show-link"><a href="#" onclick="toggle('M000049-source'); toggleText('M000049-link'); return false;" id="M000049-link">Show source...</a></p><div class="source" id="M000049-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 430</span>
|
596
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">char_to_button_id</span>(<span class="ruby-identifier">char</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
593
597
|
</div>
|
594
598
|
|
595
|
-
<a class="small" name="
|
599
|
+
<a class="small" name="M000035"><br/></a>
|
596
600
|
<div class="method_block"><h3>
|
597
|
-
<a href='#
|
601
|
+
<a href='#M000035'>
|
598
602
|
|
599
603
|
|
600
604
|
new
|
@@ -609,20 +613,22 @@ new
|
|
609
613
|
</td></tr>
|
610
614
|
</table>
|
611
615
|
<p>
|
612
|
-
to the <a href="Window.html#
|
616
|
+
to the <a href="Window.html#M000038">update</a> member function. The
|
613
617
|
default means the game will run at 60 FPS, which is ideal on standard 60 Hz
|
614
618
|
TFT screens.
|
615
619
|
</p>
|
616
620
|
|
621
|
+
<p class="source_link" id="M000035-show-link"><a href="#" onclick="toggle('M000035-source'); toggleText('M000035-link'); return false;" id="M000035-link">Show source...</a></p><div class="source" id="M000035-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 379</span>
|
622
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">width</span>, <span class="ruby-identifier">height</span>, <span class="ruby-identifier">fullscreen</span>, <span class="ruby-identifier">update_interval</span> = <span class="ruby-value">16.666666</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
617
623
|
</div>
|
618
624
|
|
619
625
|
|
620
626
|
<h1>Public Instance Methods</h1>
|
621
627
|
|
622
628
|
|
623
|
-
<a class="small" name="
|
629
|
+
<a class="small" name="M000042"><br/></a>
|
624
630
|
<div class="method_block"><h3>
|
625
|
-
<a href='#
|
631
|
+
<a href='#M000042'>
|
626
632
|
|
627
633
|
|
628
634
|
button_down
|
@@ -632,15 +638,17 @@ button_down
|
|
632
638
|
</a>
|
633
639
|
</h3>
|
634
640
|
<p>
|
635
|
-
Called before <a href="Window.html#
|
641
|
+
Called before <a href="Window.html#M000038">update</a> when the user
|
636
642
|
pressed a button while the window had the focus.
|
637
643
|
</p>
|
638
644
|
|
645
|
+
<p class="source_link" id="M000042-show-link"><a href="#" onclick="toggle('M000042-source'); toggleText('M000042-link'); return false;" id="M000042-link">Show source...</a></p><div class="source" id="M000042-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 408</span>
|
646
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">button_down</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
639
647
|
</div>
|
640
648
|
|
641
|
-
<a class="small" name="
|
649
|
+
<a class="small" name="M000047"><br/></a>
|
642
650
|
<div class="method_block"><h3>
|
643
|
-
<a href='#
|
651
|
+
<a href='#M000047'>
|
644
652
|
|
645
653
|
|
646
654
|
button_down?
|
@@ -653,11 +661,13 @@ button_down?
|
|
653
661
|
Returns true if a button is currently pressed. Updated every tick.
|
654
662
|
</p>
|
655
663
|
|
664
|
+
<p class="source_link" id="M000047-show-link"><a href="#" onclick="toggle('M000047-source'); toggleText('M000047-link'); return false;" id="M000047-link">Show source...</a></p><div class="source" id="M000047-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 423</span>
|
665
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">button_down?</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
656
666
|
</div>
|
657
667
|
|
658
|
-
<a class="small" name="
|
668
|
+
<a class="small" name="M000043"><br/></a>
|
659
669
|
<div class="method_block"><h3>
|
660
|
-
<a href='#
|
670
|
+
<a href='#M000043'>
|
661
671
|
|
662
672
|
|
663
673
|
button_up
|
@@ -670,11 +680,13 @@ button_up
|
|
670
680
|
Same as buttonDown. Called then the user released a button.
|
671
681
|
</p>
|
672
682
|
|
683
|
+
<p class="source_link" id="M000043-show-link"><a href="#" onclick="toggle('M000043-source'); toggleText('M000043-link'); return false;" id="M000043-link">Show source...</a></p><div class="source" id="M000043-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 410</span>
|
684
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">button_up</span>(<span class="ruby-identifier">id</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
673
685
|
</div>
|
674
686
|
|
675
|
-
<a class="small" name="
|
687
|
+
<a class="small" name="M000051"><br/></a>
|
676
688
|
<div class="method_block"><h3>
|
677
|
-
<a href='#
|
689
|
+
<a href='#M000051'>
|
678
690
|
|
679
691
|
|
680
692
|
clip_to
|
@@ -688,11 +700,13 @@ Limits the drawing area to a given rectangle while evaluating the code
|
|
688
700
|
inside of the block.
|
689
701
|
</p>
|
690
702
|
|
703
|
+
<p class="source_link" id="M000051-show-link"><a href="#" onclick="toggle('M000051-source'); toggleText('M000051-link'); return false;" id="M000051-link">Show source...</a></p><div class="source" id="M000051-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 436</span>
|
704
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clip_to</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">w</span>, <span class="ruby-identifier">h</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">drawing_code</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
691
705
|
</div>
|
692
706
|
|
693
|
-
<a class="small" name="
|
707
|
+
<a class="small" name="M000037"><br/></a>
|
694
708
|
<div class="method_block"><h3>
|
695
|
-
<a href='#
|
709
|
+
<a href='#M000037'>
|
696
710
|
|
697
711
|
|
698
712
|
close
|
@@ -702,15 +716,17 @@ close
|
|
702
716
|
</a>
|
703
717
|
</h3>
|
704
718
|
<p>
|
705
|
-
Tells the window to end the current <a href="Window.html#
|
719
|
+
Tells the window to end the current <a href="Window.html#M000036">show</a>
|
706
720
|
loop as soon as possible.
|
707
721
|
</p>
|
708
722
|
|
723
|
+
<p class="source_link" id="M000037-show-link"><a href="#" onclick="toggle('M000037-source'); toggleText('M000037-link'); return false;" id="M000037-link">Show source...</a></p><div class="source" id="M000037-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 385</span>
|
724
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
709
725
|
</div>
|
710
726
|
|
711
|
-
<a class="small" name="
|
727
|
+
<a class="small" name="M000039"><br/></a>
|
712
728
|
<div class="method_block"><h3>
|
713
|
-
<a href='#
|
729
|
+
<a href='#M000039'>
|
714
730
|
|
715
731
|
|
716
732
|
draw
|
@@ -720,16 +736,18 @@ draw
|
|
720
736
|
</a>
|
721
737
|
</h3>
|
722
738
|
<p>
|
723
|
-
Called after every <a href="Window.html#
|
739
|
+
Called after every <a href="Window.html#M000038">update</a> and when the OS
|
724
740
|
wants the window to repaint itself. Your application‘s rendering code
|
725
741
|
goes here.
|
726
742
|
</p>
|
727
743
|
|
744
|
+
<p class="source_link" id="M000039-show-link"><a href="#" onclick="toggle('M000039-source'); toggleText('M000039-link'); return false;" id="M000039-link">Show source...</a></p><div class="source" id="M000039-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 393</span>
|
745
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
728
746
|
</div>
|
729
747
|
|
730
|
-
<a class="small" name="
|
748
|
+
<a class="small" name="M000044"><br/></a>
|
731
749
|
<div class="method_block"><h3>
|
732
|
-
<a href='#
|
750
|
+
<a href='#M000044'>
|
733
751
|
|
734
752
|
|
735
753
|
draw_line
|
@@ -742,11 +760,13 @@ draw_line
|
|
742
760
|
Draws a line from one point to another (last pixel exclusive).
|
743
761
|
</p>
|
744
762
|
|
763
|
+
<p class="source_link" id="M000044-show-link"><a href="#" onclick="toggle('M000044-source'); toggleText('M000044-link'); return false;" id="M000044-link">Show source...</a></p><div class="source" id="M000044-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 413</span>
|
764
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_line</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">c1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>, <span class="ruby-identifier">c2</span>, <span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
745
765
|
</div>
|
746
766
|
|
747
|
-
<a class="small" name="
|
767
|
+
<a class="small" name="M000046"><br/></a>
|
748
768
|
<div class="method_block"><h3>
|
749
|
-
<a href='#
|
769
|
+
<a href='#M000046'>
|
750
770
|
|
751
771
|
|
752
772
|
draw_quad
|
@@ -760,11 +780,13 @@ Draws a rectangle (two triangles) with given corners and corresponding
|
|
760
780
|
colors. The points can be in clockwise order, or in a Z shape.
|
761
781
|
</p>
|
762
782
|
|
783
|
+
<p class="source_link" id="M000046-show-link"><a href="#" onclick="toggle('M000046-source'); toggleText('M000046-link'); return false;" id="M000046-link">Show source...</a></p><div class="source" id="M000046-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 420</span>
|
784
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_quad</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">c1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>, <span class="ruby-identifier">c2</span>, <span class="ruby-identifier">x3</span>, <span class="ruby-identifier">y3</span>, <span class="ruby-identifier">c3</span>, <span class="ruby-identifier">x4</span>, <span class="ruby-identifier">y4</span>, <span class="ruby-identifier">c4</span>, <span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
763
785
|
</div>
|
764
786
|
|
765
|
-
<a class="small" name="
|
787
|
+
<a class="small" name="M000045"><br/></a>
|
766
788
|
<div class="method_block"><h3>
|
767
|
-
<a href='#
|
789
|
+
<a href='#M000045'>
|
768
790
|
|
769
791
|
|
770
792
|
draw_triangle
|
@@ -774,11 +796,13 @@ draw_triangle
|
|
774
796
|
</a>
|
775
797
|
</h3>
|
776
798
|
|
799
|
+
<p class="source_link" id="M000045-show-link"><a href="#" onclick="toggle('M000045-source'); toggleText('M000045-link'); return false;" id="M000045-link">Show source...</a></p><div class="source" id="M000045-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 415</span>
|
800
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_triangle</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">c1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>, <span class="ruby-identifier">c2</span>, <span class="ruby-identifier">x3</span>, <span class="ruby-identifier">y3</span>, <span class="ruby-identifier">c3</span>, <span class="ruby-identifier">z</span>=<span class="ruby-value">0</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
777
801
|
</div>
|
778
802
|
|
779
|
-
<a class="small" name="
|
803
|
+
<a class="small" name="M000050"><br/></a>
|
780
804
|
<div class="method_block"><h3>
|
781
|
-
<a href='#
|
805
|
+
<a href='#M000050'>
|
782
806
|
|
783
807
|
|
784
808
|
gl
|
@@ -791,11 +815,13 @@ gl
|
|
791
815
|
See examples/OpenGLIntegration.rb.
|
792
816
|
</p>
|
793
817
|
|
818
|
+
<p class="source_link" id="M000050-show-link"><a href="#" onclick="toggle('M000050-source'); toggleText('M000050-link'); return false;" id="M000050-link">Show source...</a></p><div class="source" id="M000050-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 433</span>
|
819
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gl</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">custom_gl_code</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
794
820
|
</div>
|
795
821
|
|
796
|
-
<a class="small" name="
|
822
|
+
<a class="small" name="M000040"><br/></a>
|
797
823
|
<div class="method_block"><h3>
|
798
|
-
<a href='#
|
824
|
+
<a href='#M000040'>
|
799
825
|
|
800
826
|
|
801
827
|
needs_redraw?
|
@@ -810,15 +836,17 @@ is not a definitive answer. The operating system can still cause redraws
|
|
810
836
|
for one reason or another.
|
811
837
|
</p>
|
812
838
|
<p>
|
813
|
-
By default, the window is redrawn all the time (i.e. Window#
|
839
|
+
By default, the window is redrawn all the time (i.e. Window#needs_redraw?
|
814
840
|
always returns true.)
|
815
841
|
</p>
|
816
842
|
|
843
|
+
<p class="source_link" id="M000040-show-link"><a href="#" onclick="toggle('M000040-source'); toggleText('M000040-link'); return false;" id="M000040-link">Show source...</a></p><div class="source" id="M000040-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 401</span>
|
844
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">needs_redraw?</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
817
845
|
</div>
|
818
846
|
|
819
|
-
<a class="small" name="
|
847
|
+
<a class="small" name="M000041"><br/></a>
|
820
848
|
<div class="method_block"><h3>
|
821
|
-
<a href='#
|
849
|
+
<a href='#M000041'>
|
822
850
|
|
823
851
|
|
824
852
|
set_mouse_position
|
@@ -828,15 +856,16 @@ set_mouse_position
|
|
828
856
|
</a>
|
829
857
|
</h3>
|
830
858
|
<p>
|
831
|
-
|
832
|
-
mouse_y=.
|
859
|
+
DEPRECATED.
|
833
860
|
</p>
|
834
861
|
|
862
|
+
<p class="source_link" id="M000041-show-link"><a href="#" onclick="toggle('M000041-source'); toggleText('M000041-link'); return false;" id="M000041-link">Show source...</a></p><div class="source" id="M000041-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 404</span>
|
863
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_mouse_position</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>); <span class="ruby-keyword kw">end</span></pre></div>
|
835
864
|
</div>
|
836
865
|
|
837
|
-
<a class="small" name="
|
866
|
+
<a class="small" name="M000036"><br/></a>
|
838
867
|
<div class="method_block"><h3>
|
839
|
-
<a href='#
|
868
|
+
<a href='#M000036'>
|
840
869
|
|
841
870
|
|
842
871
|
show
|
@@ -847,15 +876,17 @@ show
|
|
847
876
|
</h3>
|
848
877
|
<p>
|
849
878
|
Enters a modal loop where the <a href="Window.html">Window</a> is visible
|
850
|
-
on screen and receives calls to <a href="Window.html#
|
851
|
-
href="Window.html#
|
879
|
+
on screen and receives calls to <a href="Window.html#M000039">draw</a>, <a
|
880
|
+
href="Window.html#M000038">update</a> etc.
|
852
881
|
</p>
|
853
882
|
|
883
|
+
<p class="source_link" id="M000036-show-link"><a href="#" onclick="toggle('M000036-source'); toggleText('M000036-link'); return false;" id="M000036-link">Show source...</a></p><div class="source" id="M000036-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 382</span>
|
884
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
854
885
|
</div>
|
855
886
|
|
856
|
-
<a class="small" name="
|
887
|
+
<a class="small" name="M000038"><br/></a>
|
857
888
|
<div class="method_block"><h3>
|
858
|
-
<a href='#
|
889
|
+
<a href='#M000038'>
|
859
890
|
|
860
891
|
|
861
892
|
update
|
@@ -869,10 +900,12 @@ Called every update_interval milliseconds while the window is being shown.
|
|
869
900
|
Your application‘s main game logic goes here.
|
870
901
|
</p>
|
871
902
|
|
903
|
+
<p class="source_link" id="M000038-show-link"><a href="#" onclick="toggle('M000038-source'); toggleText('M000038-link'); return false;" id="M000038-link">Show source...</a></p><div class="source" id="M000038-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 389</span>
|
904
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update</span>; <span class="ruby-keyword kw">end</span></pre></div>
|
872
905
|
</div>
|
873
906
|
|
874
907
|
|
875
908
|
|
876
909
|
|
877
910
|
|
878
|
-
</div><div class="clear" id="footer">
|
911
|
+
</div><div class="clear" id="footer">Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a><br/>slightly adapted for the Gosu project by Julian Raschke</div></div></body></html>
|