gosu 0.7.13.3-universal-darwin → 0.7.14-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/README.txt +5 -5
  2. data/examples/media/Starfighter.bmp +0 -0
  3. data/lib/gosu.for_1_8.bundle +0 -0
  4. data/lib/gosu.for_1_9.bundle +0 -0
  5. data/lib/gosu.rb +8 -4
  6. data/reference/rdoc/classes/Gosu.html +1547 -0
  7. data/reference/rdoc/classes/Gosu/Color.html +563 -0
  8. data/reference/rdoc/classes/Gosu/Font.html +538 -0
  9. data/reference/rdoc/classes/Gosu/GLTexInfo.html +404 -0
  10. data/reference/rdoc/classes/Gosu/Image.html +702 -0
  11. data/reference/rdoc/classes/Gosu/Sample.html +469 -0
  12. data/reference/rdoc/classes/Gosu/SampleInstance.html +516 -0
  13. data/reference/rdoc/classes/Gosu/Song.html +561 -0
  14. data/reference/rdoc/classes/Gosu/TextInput.html +398 -0
  15. data/reference/rdoc/classes/Gosu/Window.html +913 -0
  16. data/reference/rdoc/classes/Numeric.html +416 -0
  17. data/reference/rdoc/created.rid +1 -0
  18. data/reference/rdoc/files/COPYING_txt.html +386 -0
  19. data/reference/rdoc/files/README_txt.html +381 -0
  20. data/reference/rdoc/files/reference/DeploymentOnOSX_rdoc.html +390 -0
  21. data/reference/rdoc/files/reference/DeploymentOnWindows_rdoc.html +392 -0
  22. data/reference/rdoc/files/reference/DrawingWithColors_rdoc.html +357 -0
  23. data/reference/rdoc/files/reference/OrderOfCorners_rdoc.html +352 -0
  24. data/reference/rdoc/files/reference/Tileability_rdoc.html +368 -0
  25. data/reference/rdoc/files/reference/ZOrdering_rdoc.html +355 -0
  26. data/reference/rdoc/files/reference/gosu_rb.html +342 -0
  27. data/reference/rdoc/fr_class_index.html +12 -0
  28. data/reference/rdoc/fr_file_index.html +10 -0
  29. data/reference/rdoc/fr_method_index.html +63 -0
  30. data/reference/rdoc/index.html +1 -0
  31. data/reference/rdoc/rdoc-style.css +318 -0
  32. metadata +28 -2
data/README.txt CHANGED
@@ -1,17 +1,17 @@
1
1
  Moin moin, dear Gosu user!
2
2
 
3
- * The latest documentation on how to install/set up Gosu can be found on:
4
- http://code.google.com/p/gosu/wiki/DocsOverview
5
-
6
3
  * All resources concerning Gosu are linked from http://libgosu.org/.
7
4
 
5
+ * The latest documentation on how to install/set up Gosu can be found at:
6
+
7
+ http://code.google.com/p/gosu/wiki/DocsOverview
8
+
8
9
  * Try doing the tutorial there if you don't know how to start out! Or look
9
10
  at one of the games in the Gosu Users board.
10
11
 
11
12
  * If you have any questions or feedback,
12
13
  - visit the boards at http://libgosu.org/,
13
- - leave a comment on one of Gosu's wiki page,
14
14
  - try your luck in irc://irc.freenode.org/gosu,
15
15
  - or mail me at julian@raschke.de!
16
16
 
17
- We hope you'll enjoy using Gosu!
17
+ Hope you'll enjoy using Gosu!
Binary file
Binary file
@@ -1,7 +1,11 @@
1
1
  require 'rbconfig'
2
2
 
3
- if RUBY_VERSION and RUBY_VERSION[0..2] == '1.9' then
4
- require "#{File.dirname(__FILE__)}/gosu.for_1_9.#{Config::CONFIG['DLEXT']}"
5
- else
6
- require "#{File.dirname(__FILE__)}/gosu.for_1_8.#{Config::CONFIG['DLEXT']}"
3
+ begin
4
+ if RUBY_VERSION and RUBY_VERSION[0..2] == '1.9' then
5
+ require "#{File.dirname(__FILE__)}/gosu.for_1_9.#{Config::CONFIG['DLEXT']}"
6
+ else
7
+ require "#{File.dirname(__FILE__)}/gosu.for_1_8.#{Config::CONFIG['DLEXT']}"
8
+ end
9
+ rescue LoadError => e
10
+ require "#{File.dirname(__FILE__)}/gosu.#{Config::CONFIG['DLEXT']}"
7
11
  end
@@ -0,0 +1,1547 @@
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>Module: Gosu</title><link type="text/css" href=".././rdoc-style.css" media="screen" rel="stylesheet"/><script type="text/javascript">
2
+ // Allison template
3
+ // Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
4
+
5
+ var href_base = '.././rdoc-style.css'.replace(/(.*\/).*/, '$1'); // inline js is good for something
6
+
7
+ function $(id) {
8
+ if (document.getElementById)
9
+ elem = document.getElementById(id);
10
+ else if ( document.all )
11
+ elem = eval("document.all." + id);
12
+ else
13
+ return false;
14
+ return elem;
15
+ }
16
+
17
+ function toggle(id) {
18
+ elem = $(id);
19
+ elemStyle = elem.style;
20
+ if (elemStyle.display == "block") {
21
+ elemStyle.display = "none"
22
+ } else {
23
+ elemStyle.display = "block"
24
+ }
25
+ return true;
26
+ }
27
+
28
+ function toggleText(id) {
29
+ elem = $(id)
30
+ if (m = elem.innerHTML.match(/(Hide)(.*)/)) {
31
+ elem.innerHTML = "Show" + m[2];
32
+ } else if (m = elem.innerHTML.match(/(Show)(.*)/)) {
33
+ elem.innerHTML = "Hide" + m[2];
34
+ }
35
+ return true;
36
+ }
37
+
38
+ function span(s, klass) {
39
+ return '<span class="' + klass + '">' + s + '</span>';
40
+ }
41
+
42
+ function highlightSymbols() {
43
+ pres = document.getElementsByTagName('pre');
44
+ for(var i = 0; i < pres.length; i++) {
45
+ pre = pres[i];
46
+ spans = pre.getElementsByTagName('span');
47
+ for(var k = 0; k < spans.length; k++) {
48
+ span = spans[k];
49
+ if (span.className.match(/ruby-identifier/)) {
50
+ if (span.innerHTML.match(/^:/)) {
51
+ span.className += " ruby-symbol";
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ function hasClass(obj) {
59
+ var result = false;
60
+ if (obj.getAttributeNode("class") != null) {
61
+ result = obj.getAttributeNode("class").value;
62
+ }
63
+ return result;
64
+ }
65
+
66
+ function stripe() {
67
+ var even = true;
68
+ var color = "#e4ebed";
69
+ var tables = document.getElementsByTagName('table');
70
+ if (tables.length == 0) { return; }
71
+ for (var h = 0; h < tables.length; h++) {
72
+ var trs = tables[h].getElementsByTagName("tr");
73
+ for (var i = 0; i < trs.length; i++) {
74
+ var tds = trs[i].getElementsByTagName("td");
75
+ for (var j = 0; j < tds.length; j++) {
76
+ if (hasClass(tds[j]) != "first") {
77
+ var mytd = tds[j];
78
+ if (even) {
79
+ mytd.style.backgroundColor = color;
80
+ }
81
+ }
82
+ }
83
+ even = ! even;
84
+ }
85
+ }
86
+ }
87
+
88
+ function ajaxGet(url) {
89
+ url = (href_base + url).replace('/./', '/')
90
+ var req = false;
91
+
92
+ if (window.ActiveXObject) {
93
+ try {
94
+ // stupid hack because IE7 disables local Ajax with the native xmlhttprequest object
95
+ // for security purposes. Yet ActiveX still works. Thanks, Microsoft. I hate you. Die.
96
+ req = new ActiveXObject("MSXML2.XMLHTTP.3.0");
97
+ } catch (e) {
98
+ try {
99
+ /* IE 6 and maybe 5, don't know, don't care */
100
+ req = new ActiveXObject("Msxml2.XMLHTTP");
101
+ } catch (e) {
102
+ try {
103
+ req = new ActiveXObject("Microsoft.XMLHTTP");
104
+ } catch (e) {
105
+ req = false;
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ /* real browsers */
112
+ if (!req && window.XMLHttpRequest) {
113
+ try {
114
+ req = new XMLHttpRequest();
115
+ } catch (e) {
116
+ req = false;
117
+ }
118
+ }
119
+
120
+ if (req) {
121
+ req.open('GET', url, false);
122
+ req.send(null);
123
+ return req.responseText;
124
+ } else {
125
+ return "Ajax error";
126
+ }
127
+ }
128
+
129
+
130
+ function addEvent(elm, evType, fn, useCapture) {
131
+ if (elm.addEventListener) {
132
+ elm.addEventListener(evType, fn, useCapture);
133
+ return true;
134
+ } else if (elm.attachEvent) {
135
+ var r = elm.attachEvent('on' + evType, fn);
136
+ return r;
137
+ } else {
138
+ elm['on' + evType] = fn;
139
+ }
140
+ }
141
+
142
+ function insertIndices() {
143
+ pages = ["class", "file", "method"]
144
+ for (x in pages) {
145
+ $(pages[x]).innerHTML += ajaxGet('fr_' + pages[x] + '_index.html').replace(/(href=")/g, '$1' + href_base);
146
+ }
147
+ /* mouseoverify method links */
148
+ links = $('method').getElementsByTagName('a');
149
+ for (var x = 0; x < links.length; x++) {
150
+ if (m = links[x].innerHTML.match(/(.*)\s\((.*)\)/)) {
151
+ links[x].innerHTML = m[1] + '<br>';
152
+ links[x].title = m[2];
153
+ }
154
+ }
155
+ /* this is stupid */
156
+ $('class').style.display = "block";
157
+ $('file').style.display = "block";
158
+
159
+ /* has to be here because IE7 does not guarantee the onLoad callback order */
160
+ abbreviateIndicesInner(["class", "file"], 25, "a");
161
+ /* same, linkTitle() depends on the class link list */
162
+ linkTitle();
163
+ }
164
+
165
+ function abbreviateIndices() {
166
+ var ids = ["defined_in", "child_of", "includes", "requires", "method", "methods"];
167
+ abbreviateIndicesInner(ids, 25, 'a');
168
+ abbreviateIndicesInner(ids, 25, 'span');
169
+ }
170
+
171
+ function abbreviateIndicesInner(indices, amount, tag) {
172
+ for (var x = 0; x < indices.length; x++) {
173
+ var the_index = $(indices[x]);
174
+ if (the_index) {
175
+ links = the_index.getElementsByTagName(tag);
176
+ for (var y = 0; y < links.length; y++) {
177
+ var link = links[y];
178
+ if (link.getElementsByTagName('span').length == 0 && link.getElementsByTagName('a').length == 0) {
179
+ // avoid nesting
180
+ link.innerHTML = link.innerHTML.replace(/<br>|\n/gi, '');
181
+ link.title = link.innerHTML;
182
+ link.innerHTML = abbreviate(link.innerHTML, amount) + '<br>';
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ function linkTitle() {
190
+
191
+ /* grab the correct title element from the index */
192
+ var index_page = ajaxGet('index.html');
193
+ title_text = index_page.match(/<title>(.*)<\/title>/m)[1];
194
+ document.title = title_text + " - " + document.title;
195
+ var p = $('header').getElementsByTagName('p')[0]
196
+ if (p.innerHTML.match(/^\s*$/)) {
197
+ p.innerHTML = title_text;
198
+ } else {
199
+ p.innerHTML = title_text + ": " + p.innerHTML;
200
+ }
201
+
202
+ /* set the link properly */
203
+ title_link = index_page.match(/<a\s+href="(.*?)"/)[1];
204
+ var element = $('title');
205
+ var item_type = "";
206
+ var item_name = "";
207
+ if (m = element.innerHTML.match(/(Class:|Module:|File:)\s*(.*)/)) {
208
+ item_type = m[1];
209
+ item_name = m[2];
210
+ } else {
211
+ item_name = element.innerHTML;
212
+ }
213
+ element.innerHTML = '<a href="' + href_base + title_link + '">' + item_type + " " + abbreviate(item_name, 45) + '</a>';
214
+ element.getElementsByTagName('a')[0].title = item_name
215
+
216
+ /* breadcrumb navigation */
217
+ items = item_name.split("::");
218
+ items_new = item_name.split("::");
219
+ file_links = $('class').getElementsByTagName('a');
220
+ for (var x = 0; x < items.length - 1; x++ ){
221
+ var item = items[x];
222
+ link = ("/classes/" + items.slice(0,x).join("/") + "/" + item + ".html").replace('//', '/');
223
+ regex = new RegExp(RegExp.escape(link) + '$');
224
+ for (var y = 0; y < file_links.length; y++) {
225
+ if (file_links[y].href.match(regex)) {
226
+ items_new[x] = '<a href="' + href_base + link + '">' + item + '</a>';
227
+ break;
228
+ }
229
+ }
230
+ }
231
+ $('item_name').innerHTML = item_type + ' ' + items_new.join(" :: ");
232
+ }
233
+
234
+ function abbreviate(s, size) {
235
+ while (s.length > size) {
236
+ var old_s = s;
237
+ s = s.replace(/\s|\n/mg, '');
238
+ s = s.replace(/([A-Z])[a-z]+/m, '$1');
239
+ if (!s || old_s == s) {
240
+ return "..." + s.substring(s.length - size, s.length);
241
+ }
242
+ }
243
+ return s;
244
+ }
245
+
246
+ function disableSubmit(event) {
247
+ var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
248
+ if (keyCode == 13) {
249
+ return false;
250
+ } else {
251
+ return true;
252
+ }
253
+ }
254
+
255
+ function filterList(id, s, event) {
256
+
257
+ /* some weak escaping */
258
+ s = s.replace(/[^\w\d\.\_\-\/\:\=\[\]\?\!]/g, '');
259
+ s = RegExp.escape(s);
260
+
261
+ var show_all = false;
262
+ if (s.match(/^\s*$/)) {
263
+ show_all = true;
264
+ }
265
+
266
+ links = $(id).getElementsByTagName('a')
267
+ regex = new RegExp(s, 'i');
268
+
269
+ for (var x = 0; x < links.length; x++) {
270
+ var link = links[x];
271
+ if (show_all) {
272
+ link.style.display = 'inline';
273
+ } else {
274
+ if (link.innerHTML.match(regex)) {
275
+ link.style.display = 'inline';
276
+ } else {
277
+ link.style.display = 'none';
278
+ }
279
+ }
280
+ }
281
+ return true;
282
+ }
283
+
284
+ RegExp.escape = function(text) {
285
+ if (!arguments.callee.sRE) {
286
+ var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
287
+ arguments.callee.sRE = new RegExp(
288
+ '(\\' + specials.join('|\\') + ')', 'g'
289
+ );
290
+ }
291
+ return text.replace(arguments.callee.sRE, '\\$1');
292
+ }
293
+
294
+ function hacks() {
295
+ // show the spacer if necessary,
296
+ divs = document.getElementsByTagName('div');
297
+ for(var x = 0; x < divs.length; x++) {
298
+ if (divs[x].className && divs[x].className.match(/top/)) {
299
+ document.getElementById('spacer').style.display = 'block';
300
+ }
301
+ }
302
+ // remove extra colons from tables
303
+ tds = document.getElementsByTagName('td');
304
+ for(var x = 0; x < tds.length; x++) {
305
+ str = tds[x].innerHTML
306
+ if (str.charAt(str.length - 1) == ":") {
307
+ tds[x].innerHTML = str.slice(0, str.length - 1)
308
+ }
309
+ }
310
+ }
311
+
312
+ addEvent(window, 'load', insertIndices, false);
313
+ addEvent(window, 'load', abbreviateIndices, false);
314
+ addEvent(window, 'load', stripe, false);
315
+ addEvent(window, 'load', highlightSymbols, false);
316
+ addEvent(window, 'load', hacks, false);
317
+ </script></head><body><div id="container"><div class="curve" id="preheader_curve_0"></div><div class="curve" id="preheader_curve_1"></div><div class="curve" id="preheader_curve_2"></div><div class="curve" id="preheader_curve_3"></div><div class="curve" id="preheader_curve_4"></div><div class="curve" id="preheader_curve_5"></div><div id="header"><p>
318
+ </p><span><h1 id="title">
319
+ Module: Gosu
320
+ </h1></span>
321
+ </div><div class="clear"></div><div id="left">
322
+
323
+ <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
324
+
325
+ <a href="../files/reference/gosu_rb.html">reference/gosu.rb</a>
326
+
327
+ </div>
328
+
329
+
330
+
331
+ <div class="navigation top" id="methods"><h3>Methods</h3>
332
+
333
+
334
+ <a href='#M000006'>
335
+ angle<br/>
336
+ </a>
337
+
338
+
339
+
340
+
341
+ <a href='#M000007'>
342
+ angle_diff<br/>
343
+ </a>
344
+
345
+
346
+
347
+
348
+ <a href='#M000010'>
349
+ default_font_name<br/>
350
+ </a>
351
+
352
+
353
+
354
+
355
+ <a href='#M000008'>
356
+ distance<br/>
357
+ </a>
358
+
359
+
360
+
361
+
362
+ <a href='#M000009'>
363
+ milliseconds<br/>
364
+ </a>
365
+
366
+
367
+
368
+
369
+ <a href='#M000004'>
370
+ offset_x<br/>
371
+ </a>
372
+
373
+
374
+
375
+
376
+ <a href='#M000005'>
377
+ offset_y<br/>
378
+ </a>
379
+
380
+
381
+
382
+
383
+ <a href='#M000003'>
384
+ random<br/>
385
+ </a>
386
+
387
+
388
+
389
+
390
+ <a href='#M000012'>
391
+ screen_height<br/>
392
+ </a>
393
+
394
+
395
+
396
+
397
+ <a href='#M000011'>
398
+ screen_width<br/>
399
+ </a>
400
+
401
+
402
+ </div>
403
+ <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;" href="#" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('class', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_class"></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 onclick="toggle('file'); toggleText('file_link'); return false;" href="#" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('file', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_file"></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 onclick="toggle('method'); toggleText('method_link'); return false;" href="#" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('method', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_method"></input></form></div></div></div><div id="content">
404
+ <h1 id="item_name">Module: Gosu</h1>
405
+
406
+
407
+
408
+
409
+
410
+ <p></p>
411
+
412
+ <h1>Child modules and classes</h1><p>Class <a href="Gosu/Color.html" class="link">Gosu::Color</a><br />
413
+ Class <a href="Gosu/Font.html" class="link">Gosu::Font</a><br />
414
+ Class <a href="Gosu/GLTexInfo.html" class="link">Gosu::GLTexInfo</a><br />
415
+ Class <a href="Gosu/Image.html" class="link">Gosu::Image</a><br />
416
+ Class <a href="Gosu/Sample.html" class="link">Gosu::Sample</a><br />
417
+ Class <a href="Gosu/SampleInstance.html" class="link">Gosu::SampleInstance</a><br />
418
+ Class <a href="Gosu/Song.html" class="link">Gosu::Song</a><br />
419
+ Class <a href="Gosu/TextInput.html" class="link">Gosu::TextInput</a><br />
420
+ Class <a href="Gosu/Window.html" class="link">Gosu::Window</a><br />
421
+ </p>
422
+
423
+ <h1>Constants</h1><p><table><tr><th>Name</th><th>Value</th></tr>
424
+ <tr>
425
+ <td class="highlight">VERSION</td>
426
+
427
+ <td class="normal">:a_string</td>
428
+
429
+
430
+
431
+ </tr>
432
+ <tr>
433
+ <td class="highlight">MAJOR_VERSION</td>
434
+
435
+ <td class="normal">:a_fixnum</td>
436
+
437
+
438
+
439
+ </tr>
440
+ <tr>
441
+ <td class="highlight">MINOR_VERSION</td>
442
+
443
+ <td class="normal">:a_fixnum</td>
444
+
445
+
446
+
447
+ </tr>
448
+ <tr>
449
+ <td class="highlight">POINT_VERSION</td>
450
+
451
+ <td class="normal">:a_fixnum</td>
452
+
453
+
454
+
455
+ </tr>
456
+ <tr>
457
+ <td class="highlight">Kb0</td>
458
+
459
+ <td class="normal">:implementation_defined</td>
460
+
461
+
462
+
463
+ </tr>
464
+ <tr>
465
+ <td class="highlight">Kb1</td>
466
+
467
+ <td class="normal">:implementation_defined</td>
468
+
469
+
470
+
471
+ </tr>
472
+ <tr>
473
+ <td class="highlight">Kb2</td>
474
+
475
+ <td class="normal">:implementation_defined</td>
476
+
477
+
478
+
479
+ </tr>
480
+ <tr>
481
+ <td class="highlight">Kb3</td>
482
+
483
+ <td class="normal">:implementation_defined</td>
484
+
485
+
486
+
487
+ </tr>
488
+ <tr>
489
+ <td class="highlight">Kb4</td>
490
+
491
+ <td class="normal">:implementation_defined</td>
492
+
493
+
494
+
495
+ </tr>
496
+ <tr>
497
+ <td class="highlight">Kb5</td>
498
+
499
+ <td class="normal">:implementation_defined</td>
500
+
501
+
502
+
503
+ </tr>
504
+ <tr>
505
+ <td class="highlight">Kb6</td>
506
+
507
+ <td class="normal">:implementation_defined</td>
508
+
509
+
510
+
511
+ </tr>
512
+ <tr>
513
+ <td class="highlight">Kb7</td>
514
+
515
+ <td class="normal">:implementation_defined</td>
516
+
517
+
518
+
519
+ </tr>
520
+ <tr>
521
+ <td class="highlight">Kb8</td>
522
+
523
+ <td class="normal">:implementation_defined</td>
524
+
525
+
526
+
527
+ </tr>
528
+ <tr>
529
+ <td class="highlight">Kb9</td>
530
+
531
+ <td class="normal">:implementation_defined</td>
532
+
533
+
534
+
535
+ </tr>
536
+ <tr>
537
+ <td class="highlight">KbA</td>
538
+
539
+ <td class="normal">:implementation_defined</td>
540
+
541
+
542
+
543
+ </tr>
544
+ <tr>
545
+ <td class="highlight">KbB</td>
546
+
547
+ <td class="normal">:implementation_defined</td>
548
+
549
+
550
+
551
+ </tr>
552
+ <tr>
553
+ <td class="highlight">KbC</td>
554
+
555
+ <td class="normal">:implementation_defined</td>
556
+
557
+
558
+
559
+ </tr>
560
+ <tr>
561
+ <td class="highlight">KbD</td>
562
+
563
+ <td class="normal">:implementation_defined</td>
564
+
565
+
566
+
567
+ </tr>
568
+ <tr>
569
+ <td class="highlight">KbE</td>
570
+
571
+ <td class="normal">:implementation_defined</td>
572
+
573
+
574
+
575
+ </tr>
576
+ <tr>
577
+ <td class="highlight">KbF</td>
578
+
579
+ <td class="normal">:implementation_defined</td>
580
+
581
+
582
+
583
+ </tr>
584
+ <tr>
585
+ <td class="highlight">KbG</td>
586
+
587
+ <td class="normal">:implementation_defined</td>
588
+
589
+
590
+
591
+ </tr>
592
+ <tr>
593
+ <td class="highlight">KbH</td>
594
+
595
+ <td class="normal">:implementation_defined</td>
596
+
597
+
598
+
599
+ </tr>
600
+ <tr>
601
+ <td class="highlight">KbI</td>
602
+
603
+ <td class="normal">:implementation_defined</td>
604
+
605
+
606
+
607
+ </tr>
608
+ <tr>
609
+ <td class="highlight">KbJ</td>
610
+
611
+ <td class="normal">:implementation_defined</td>
612
+
613
+
614
+
615
+ </tr>
616
+ <tr>
617
+ <td class="highlight">KbK</td>
618
+
619
+ <td class="normal">:implementation_defined</td>
620
+
621
+
622
+
623
+ </tr>
624
+ <tr>
625
+ <td class="highlight">KbL</td>
626
+
627
+ <td class="normal">:implementation_defined</td>
628
+
629
+
630
+
631
+ </tr>
632
+ <tr>
633
+ <td class="highlight">KbM</td>
634
+
635
+ <td class="normal">:implementation_defined</td>
636
+
637
+
638
+
639
+ </tr>
640
+ <tr>
641
+ <td class="highlight">KbN</td>
642
+
643
+ <td class="normal">:implementation_defined</td>
644
+
645
+
646
+
647
+ </tr>
648
+ <tr>
649
+ <td class="highlight">KbO</td>
650
+
651
+ <td class="normal">:implementation_defined</td>
652
+
653
+
654
+
655
+ </tr>
656
+ <tr>
657
+ <td class="highlight">KbP</td>
658
+
659
+ <td class="normal">:implementation_defined</td>
660
+
661
+
662
+
663
+ </tr>
664
+ <tr>
665
+ <td class="highlight">KbQ</td>
666
+
667
+ <td class="normal">:implementation_defined</td>
668
+
669
+
670
+
671
+ </tr>
672
+ <tr>
673
+ <td class="highlight">KbR</td>
674
+
675
+ <td class="normal">:implementation_defined</td>
676
+
677
+
678
+
679
+ </tr>
680
+ <tr>
681
+ <td class="highlight">KbS</td>
682
+
683
+ <td class="normal">:implementation_defined</td>
684
+
685
+
686
+
687
+ </tr>
688
+ <tr>
689
+ <td class="highlight">KbT</td>
690
+
691
+ <td class="normal">:implementation_defined</td>
692
+
693
+
694
+
695
+ </tr>
696
+ <tr>
697
+ <td class="highlight">KbU</td>
698
+
699
+ <td class="normal">:implementation_defined</td>
700
+
701
+
702
+
703
+ </tr>
704
+ <tr>
705
+ <td class="highlight">KbV</td>
706
+
707
+ <td class="normal">:implementation_defined</td>
708
+
709
+
710
+
711
+ </tr>
712
+ <tr>
713
+ <td class="highlight">KbW</td>
714
+
715
+ <td class="normal">:implementation_defined</td>
716
+
717
+
718
+
719
+ </tr>
720
+ <tr>
721
+ <td class="highlight">KbX</td>
722
+
723
+ <td class="normal">:implementation_defined</td>
724
+
725
+
726
+
727
+ </tr>
728
+ <tr>
729
+ <td class="highlight">KbY</td>
730
+
731
+ <td class="normal">:implementation_defined</td>
732
+
733
+
734
+
735
+ </tr>
736
+ <tr>
737
+ <td class="highlight">KbZ</td>
738
+
739
+ <td class="normal">:implementation_defined</td>
740
+
741
+
742
+
743
+ </tr>
744
+ <tr>
745
+ <td class="highlight">KbBackspace</td>
746
+
747
+ <td class="normal">:implementation_defined</td>
748
+
749
+
750
+
751
+ </tr>
752
+ <tr>
753
+ <td class="highlight">KbDelete</td>
754
+
755
+ <td class="normal">:implementation_defined</td>
756
+
757
+
758
+
759
+ </tr>
760
+ <tr>
761
+ <td class="highlight">KbDown</td>
762
+
763
+ <td class="normal">:implementation_defined</td>
764
+
765
+
766
+
767
+ </tr>
768
+ <tr>
769
+ <td class="highlight">KbEnd</td>
770
+
771
+ <td class="normal">:implementation_defined</td>
772
+
773
+
774
+
775
+ </tr>
776
+ <tr>
777
+ <td class="highlight">KbEnter</td>
778
+
779
+ <td class="normal">:implementation_defined</td>
780
+
781
+
782
+
783
+ </tr>
784
+ <tr>
785
+ <td class="highlight">KbEscape</td>
786
+
787
+ <td class="normal">:implementation_defined</td>
788
+
789
+
790
+
791
+ </tr>
792
+ <tr>
793
+ <td class="highlight">KbF1</td>
794
+
795
+ <td class="normal">:implementation_defined</td>
796
+
797
+
798
+
799
+ </tr>
800
+ <tr>
801
+ <td class="highlight">KbF10</td>
802
+
803
+ <td class="normal">:implementation_defined</td>
804
+
805
+
806
+
807
+ </tr>
808
+ <tr>
809
+ <td class="highlight">KbF11</td>
810
+
811
+ <td class="normal">:implementation_defined</td>
812
+
813
+
814
+
815
+ </tr>
816
+ <tr>
817
+ <td class="highlight">KbF12</td>
818
+
819
+ <td class="normal">:implementation_defined</td>
820
+
821
+
822
+
823
+ </tr>
824
+ <tr>
825
+ <td class="highlight">KbF2</td>
826
+
827
+ <td class="normal">:implementation_defined</td>
828
+
829
+
830
+
831
+ </tr>
832
+ <tr>
833
+ <td class="highlight">KbF3</td>
834
+
835
+ <td class="normal">:implementation_defined</td>
836
+
837
+
838
+
839
+ </tr>
840
+ <tr>
841
+ <td class="highlight">KbF4</td>
842
+
843
+ <td class="normal">:implementation_defined</td>
844
+
845
+
846
+
847
+ </tr>
848
+ <tr>
849
+ <td class="highlight">KbF5</td>
850
+
851
+ <td class="normal">:implementation_defined</td>
852
+
853
+
854
+
855
+ </tr>
856
+ <tr>
857
+ <td class="highlight">KbF6</td>
858
+
859
+ <td class="normal">:implementation_defined</td>
860
+
861
+
862
+
863
+ </tr>
864
+ <tr>
865
+ <td class="highlight">KbF7</td>
866
+
867
+ <td class="normal">:implementation_defined</td>
868
+
869
+
870
+
871
+ </tr>
872
+ <tr>
873
+ <td class="highlight">KbF8</td>
874
+
875
+ <td class="normal">:implementation_defined</td>
876
+
877
+
878
+
879
+ </tr>
880
+ <tr>
881
+ <td class="highlight">KbF9</td>
882
+
883
+ <td class="normal">:implementation_defined</td>
884
+
885
+
886
+
887
+ </tr>
888
+ <tr>
889
+ <td class="highlight">KbHome</td>
890
+
891
+ <td class="normal">:implementation_defined</td>
892
+
893
+
894
+
895
+ </tr>
896
+ <tr>
897
+ <td class="highlight">KbInsert</td>
898
+
899
+ <td class="normal">:implementation_defined</td>
900
+
901
+
902
+
903
+ </tr>
904
+ <tr>
905
+ <td class="highlight">KbLeft</td>
906
+
907
+ <td class="normal">:implementation_defined</td>
908
+
909
+
910
+
911
+ </tr>
912
+ <tr>
913
+ <td class="highlight">KbLeftAlt</td>
914
+
915
+ <td class="normal">:implementation_defined</td>
916
+
917
+
918
+
919
+ </tr>
920
+ <tr>
921
+ <td class="highlight">KbLeftControl</td>
922
+
923
+ <td class="normal">:implementation_defined</td>
924
+
925
+
926
+
927
+ </tr>
928
+ <tr>
929
+ <td class="highlight">KbLeftShift</td>
930
+
931
+ <td class="normal">:implementation_defined</td>
932
+
933
+
934
+
935
+ </tr>
936
+ <tr>
937
+ <td class="highlight">KbNumpad0</td>
938
+
939
+ <td class="normal">:implementation_defined</td>
940
+
941
+
942
+
943
+ </tr>
944
+ <tr>
945
+ <td class="highlight">KbNumpad1</td>
946
+
947
+ <td class="normal">:implementation_defined</td>
948
+
949
+
950
+
951
+ </tr>
952
+ <tr>
953
+ <td class="highlight">KbNumpad2</td>
954
+
955
+ <td class="normal">:implementation_defined</td>
956
+
957
+
958
+
959
+ </tr>
960
+ <tr>
961
+ <td class="highlight">KbNumpad3</td>
962
+
963
+ <td class="normal">:implementation_defined</td>
964
+
965
+
966
+
967
+ </tr>
968
+ <tr>
969
+ <td class="highlight">KbNumpad4</td>
970
+
971
+ <td class="normal">:implementation_defined</td>
972
+
973
+
974
+
975
+ </tr>
976
+ <tr>
977
+ <td class="highlight">KbNumpad5</td>
978
+
979
+ <td class="normal">:implementation_defined</td>
980
+
981
+
982
+
983
+ </tr>
984
+ <tr>
985
+ <td class="highlight">KbNumpad6</td>
986
+
987
+ <td class="normal">:implementation_defined</td>
988
+
989
+
990
+
991
+ </tr>
992
+ <tr>
993
+ <td class="highlight">KbNumpad7</td>
994
+
995
+ <td class="normal">:implementation_defined</td>
996
+
997
+
998
+
999
+ </tr>
1000
+ <tr>
1001
+ <td class="highlight">KbNumpad8</td>
1002
+
1003
+ <td class="normal">:implementation_defined</td>
1004
+
1005
+
1006
+
1007
+ </tr>
1008
+ <tr>
1009
+ <td class="highlight">KbNumpad9</td>
1010
+
1011
+ <td class="normal">:implementation_defined</td>
1012
+
1013
+
1014
+
1015
+ </tr>
1016
+ <tr>
1017
+ <td class="highlight">KbNumpadAdd</td>
1018
+
1019
+ <td class="normal">:implementation_defined</td>
1020
+
1021
+
1022
+
1023
+ </tr>
1024
+ <tr>
1025
+ <td class="highlight">KbNumpadDivide</td>
1026
+
1027
+ <td class="normal">:implementation_defined</td>
1028
+
1029
+
1030
+
1031
+ </tr>
1032
+ <tr>
1033
+ <td class="highlight">KbNumpadMultiply</td>
1034
+
1035
+ <td class="normal">:implementation_defined</td>
1036
+
1037
+
1038
+
1039
+ </tr>
1040
+ <tr>
1041
+ <td class="highlight">KbNumpadSubtract</td>
1042
+
1043
+ <td class="normal">:implementation_defined</td>
1044
+
1045
+
1046
+
1047
+ </tr>
1048
+ <tr>
1049
+ <td class="highlight">KbPageDown</td>
1050
+
1051
+ <td class="normal">:implementation_defined</td>
1052
+
1053
+
1054
+
1055
+ </tr>
1056
+ <tr>
1057
+ <td class="highlight">KbPageUp</td>
1058
+
1059
+ <td class="normal">:implementation_defined</td>
1060
+
1061
+
1062
+
1063
+ </tr>
1064
+ <tr>
1065
+ <td class="highlight">KbPause</td>
1066
+
1067
+ <td class="normal">:implementation_defined</td>
1068
+
1069
+
1070
+
1071
+ </tr>
1072
+ <tr>
1073
+ <td class="highlight">KbReturn</td>
1074
+
1075
+ <td class="normal">:implementation_defined</td>
1076
+
1077
+
1078
+
1079
+ </tr>
1080
+ <tr>
1081
+ <td class="highlight">KbRight</td>
1082
+
1083
+ <td class="normal">:implementation_defined</td>
1084
+
1085
+
1086
+
1087
+ </tr>
1088
+ <tr>
1089
+ <td class="highlight">KbRightAlt</td>
1090
+
1091
+ <td class="normal">:implementation_defined</td>
1092
+
1093
+
1094
+
1095
+ </tr>
1096
+ <tr>
1097
+ <td class="highlight">KbRightControl</td>
1098
+
1099
+ <td class="normal">:implementation_defined</td>
1100
+
1101
+
1102
+
1103
+ </tr>
1104
+ <tr>
1105
+ <td class="highlight">KbRightShift</td>
1106
+
1107
+ <td class="normal">:implementation_defined</td>
1108
+
1109
+
1110
+
1111
+ </tr>
1112
+ <tr>
1113
+ <td class="highlight">KbSpace</td>
1114
+
1115
+ <td class="normal">:implementation_defined</td>
1116
+
1117
+
1118
+
1119
+ </tr>
1120
+ <tr>
1121
+ <td class="highlight">KbTab</td>
1122
+
1123
+ <td class="normal">:implementation_defined</td>
1124
+
1125
+
1126
+
1127
+ </tr>
1128
+ <tr>
1129
+ <td class="highlight">KbUp</td>
1130
+
1131
+ <td class="normal">:implementation_defined</td>
1132
+
1133
+
1134
+
1135
+ </tr>
1136
+ <tr>
1137
+ <td class="highlight">MsLeft</td>
1138
+
1139
+ <td class="normal">:implementation_defined</td>
1140
+
1141
+
1142
+
1143
+ </tr>
1144
+ <tr>
1145
+ <td class="highlight">MsMiddle</td>
1146
+
1147
+ <td class="normal">:implementation_defined</td>
1148
+
1149
+
1150
+
1151
+ </tr>
1152
+ <tr>
1153
+ <td class="highlight">MsRight</td>
1154
+
1155
+ <td class="normal">:implementation_defined</td>
1156
+
1157
+
1158
+
1159
+ </tr>
1160
+ <tr>
1161
+ <td class="highlight">MsWheelDown</td>
1162
+
1163
+ <td class="normal">:implementation_defined</td>
1164
+
1165
+
1166
+
1167
+ </tr>
1168
+ <tr>
1169
+ <td class="highlight">MsWheelUp</td>
1170
+
1171
+ <td class="normal">:implementation_defined</td>
1172
+
1173
+
1174
+
1175
+ </tr>
1176
+ <tr>
1177
+ <td class="highlight">GpButton0</td>
1178
+
1179
+ <td class="normal">:implementation_defined</td>
1180
+
1181
+
1182
+
1183
+ </tr>
1184
+ <tr>
1185
+ <td class="highlight">GpButton1</td>
1186
+
1187
+ <td class="normal">:implementation_defined</td>
1188
+
1189
+
1190
+
1191
+ </tr>
1192
+ <tr>
1193
+ <td class="highlight">GpButton10</td>
1194
+
1195
+ <td class="normal">:implementation_defined</td>
1196
+
1197
+
1198
+
1199
+ </tr>
1200
+ <tr>
1201
+ <td class="highlight">GpButton11</td>
1202
+
1203
+ <td class="normal">:implementation_defined</td>
1204
+
1205
+
1206
+
1207
+ </tr>
1208
+ <tr>
1209
+ <td class="highlight">GpButton12</td>
1210
+
1211
+ <td class="normal">:implementation_defined</td>
1212
+
1213
+
1214
+
1215
+ </tr>
1216
+ <tr>
1217
+ <td class="highlight">GpButton13</td>
1218
+
1219
+ <td class="normal">:implementation_defined</td>
1220
+
1221
+
1222
+
1223
+ </tr>
1224
+ <tr>
1225
+ <td class="highlight">GpButton14</td>
1226
+
1227
+ <td class="normal">:implementation_defined</td>
1228
+
1229
+
1230
+
1231
+ </tr>
1232
+ <tr>
1233
+ <td class="highlight">GpButton15</td>
1234
+
1235
+ <td class="normal">:implementation_defined</td>
1236
+
1237
+
1238
+
1239
+ </tr>
1240
+ <tr>
1241
+ <td class="highlight">GpButton2</td>
1242
+
1243
+ <td class="normal">:implementation_defined</td>
1244
+
1245
+
1246
+
1247
+ </tr>
1248
+ <tr>
1249
+ <td class="highlight">GpButton3</td>
1250
+
1251
+ <td class="normal">:implementation_defined</td>
1252
+
1253
+
1254
+
1255
+ </tr>
1256
+ <tr>
1257
+ <td class="highlight">GpButton4</td>
1258
+
1259
+ <td class="normal">:implementation_defined</td>
1260
+
1261
+
1262
+
1263
+ </tr>
1264
+ <tr>
1265
+ <td class="highlight">GpButton5</td>
1266
+
1267
+ <td class="normal">:implementation_defined</td>
1268
+
1269
+
1270
+
1271
+ </tr>
1272
+ <tr>
1273
+ <td class="highlight">GpButton6</td>
1274
+
1275
+ <td class="normal">:implementation_defined</td>
1276
+
1277
+
1278
+
1279
+ </tr>
1280
+ <tr>
1281
+ <td class="highlight">GpButton7</td>
1282
+
1283
+ <td class="normal">:implementation_defined</td>
1284
+
1285
+
1286
+
1287
+ </tr>
1288
+ <tr>
1289
+ <td class="highlight">GpButton8</td>
1290
+
1291
+ <td class="normal">:implementation_defined</td>
1292
+
1293
+
1294
+
1295
+ </tr>
1296
+ <tr>
1297
+ <td class="highlight">GpButton9</td>
1298
+
1299
+ <td class="normal">:implementation_defined</td>
1300
+
1301
+
1302
+
1303
+ </tr>
1304
+ <tr>
1305
+ <td class="highlight">GpDown</td>
1306
+
1307
+ <td class="normal">:implementation_defined</td>
1308
+
1309
+
1310
+
1311
+ </tr>
1312
+ <tr>
1313
+ <td class="highlight">GpLeft</td>
1314
+
1315
+ <td class="normal">:implementation_defined</td>
1316
+
1317
+
1318
+
1319
+ </tr>
1320
+ <tr>
1321
+ <td class="highlight">GpRight</td>
1322
+
1323
+ <td class="normal">:implementation_defined</td>
1324
+
1325
+
1326
+
1327
+ </tr>
1328
+ <tr>
1329
+ <td class="highlight">GpUp</td>
1330
+
1331
+ <td class="normal">:implementation_defined</td>
1332
+
1333
+
1334
+
1335
+ </tr>
1336
+ </table></p>
1337
+
1338
+
1339
+
1340
+
1341
+ <h1>Public Instance Methods</h1>
1342
+
1343
+
1344
+ <a class="small" name="M000006"><br/></a>
1345
+ <div class="method_block"><h3>
1346
+ <a href='#M000006'>
1347
+
1348
+
1349
+ angle
1350
+
1351
+ (x1, y1, x2, y2)
1352
+
1353
+ </a>
1354
+ </h3>
1355
+ <p>
1356
+ Returns the <a href="Gosu.html#M000006">angle</a> from point 1 to point 2
1357
+ in degrees, where 0.0 means upwards. Returns 0 if both points are equal.
1358
+ </p>
1359
+
1360
+ <p class="source_link" id="M000006-show-link"><a onclick="toggle('M000006-source'); toggleText('M000006-link'); return false;" href="#" id="M000006-link">Show source...</a></p><div class="source" id="M000006-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 440</span>
1361
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">angle</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>); <span class="ruby-keyword kw">end</span></pre></div>
1362
+ </div>
1363
+
1364
+ <a class="small" name="M000007"><br/></a>
1365
+ <div class="method_block"><h3>
1366
+ <a href='#M000007'>
1367
+
1368
+
1369
+ angle_diff
1370
+
1371
+ (angle1, angle2)
1372
+
1373
+ </a>
1374
+ </h3>
1375
+ <p>
1376
+ Returns the smallest <a href="Gosu.html#M000006">angle</a> that can be
1377
+ added to angle1 to get to angle2 (can be negative if counter-clockwise
1378
+ movement is shorter).
1379
+ </p>
1380
+
1381
+ <p class="source_link" id="M000007-show-link"><a onclick="toggle('M000007-source'); toggleText('M000007-link'); return false;" href="#" id="M000007-link">Show source...</a></p><div class="source" id="M000007-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 443</span>
1382
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">angle_diff</span>(<span class="ruby-identifier">angle1</span>, <span class="ruby-identifier">angle2</span>); <span class="ruby-keyword kw">end</span></pre></div>
1383
+ </div>
1384
+
1385
+ <a class="small" name="M000010"><br/></a>
1386
+ <div class="method_block"><h3>
1387
+ <a href='#M000010'>
1388
+
1389
+
1390
+ default_font_name
1391
+
1392
+ ()
1393
+
1394
+ </a>
1395
+ </h3>
1396
+ <p>
1397
+ Returns the name of a neutral font that is available on the current
1398
+ platform.
1399
+ </p>
1400
+
1401
+ <p class="source_link" id="M000010-show-link"><a onclick="toggle('M000010-source'); toggleText('M000010-link'); return false;" href="#" id="M000010-link">Show source...</a></p><div class="source" id="M000010-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 453</span>
1402
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">default_font_name</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1403
+ </div>
1404
+
1405
+ <a class="small" name="M000008"><br/></a>
1406
+ <div class="method_block"><h3>
1407
+ <a href='#M000008'>
1408
+
1409
+
1410
+ distance
1411
+
1412
+ (x1, y1, x2, y2)
1413
+
1414
+ </a>
1415
+ </h3>
1416
+ <p>
1417
+ Returns the <a href="Gosu.html#M000008">distance</a> between two points.
1418
+ </p>
1419
+
1420
+ <p class="source_link" id="M000008-show-link"><a onclick="toggle('M000008-source'); toggleText('M000008-link'); return false;" href="#" id="M000008-link">Show source...</a></p><div class="source" id="M000008-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 446</span>
1421
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>); <span class="ruby-keyword kw">end</span></pre></div>
1422
+ </div>
1423
+
1424
+ <a class="small" name="M000009"><br/></a>
1425
+ <div class="method_block"><h3>
1426
+ <a href='#M000009'>
1427
+
1428
+
1429
+ milliseconds
1430
+
1431
+ ()
1432
+
1433
+ </a>
1434
+ </h3>
1435
+ <p>
1436
+ Incrementing, possibly wrapping millisecond timer.
1437
+ </p>
1438
+
1439
+ <p class="source_link" id="M000009-show-link"><a onclick="toggle('M000009-source'); toggleText('M000009-link'); return false;" href="#" id="M000009-link">Show source...</a></p><div class="source" id="M000009-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 449</span>
1440
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">milliseconds</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1441
+ </div>
1442
+
1443
+ <a class="small" name="M000004"><br/></a>
1444
+ <div class="method_block"><h3>
1445
+ <a href='#M000004'>
1446
+
1447
+
1448
+ offset_x
1449
+
1450
+ (angle, dist)
1451
+
1452
+ </a>
1453
+ </h3>
1454
+ <p>
1455
+ Returns the horizontal <a href="Gosu.html#M000008">distance</a> between the
1456
+ origin and the point to which you would get if you moved radius pixels in
1457
+ the direction specified by <a href="Gosu.html#M000006">angle</a>.
1458
+ </p>
1459
+
1460
+ <p class="source_link" id="M000004-show-link"><a onclick="toggle('M000004-source'); toggleText('M000004-link'); return false;" href="#" id="M000004-link">Show source...</a></p><div class="source" id="M000004-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 434</span>
1461
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">offset_x</span>(<span class="ruby-identifier">angle</span>, <span class="ruby-identifier">dist</span>); <span class="ruby-keyword kw">end</span></pre></div>
1462
+ </div>
1463
+
1464
+ <a class="small" name="M000005"><br/></a>
1465
+ <div class="method_block"><h3>
1466
+ <a href='#M000005'>
1467
+
1468
+
1469
+ offset_y
1470
+
1471
+ (angle, dist)
1472
+
1473
+ </a>
1474
+ </h3>
1475
+ <p>
1476
+ Returns the vertical <a href="Gosu.html#M000008">distance</a> between the
1477
+ origin and the point to which you would get if you moved radius pixels in
1478
+ the direction specified by <a href="Gosu.html#M000006">angle</a>.
1479
+ </p>
1480
+
1481
+ <p class="source_link" id="M000005-show-link"><a onclick="toggle('M000005-source'); toggleText('M000005-link'); return false;" href="#" id="M000005-link">Show source...</a></p><div class="source" id="M000005-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 437</span>
1482
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">offset_y</span>(<span class="ruby-identifier">angle</span>, <span class="ruby-identifier">dist</span>); <span class="ruby-keyword kw">end</span></pre></div>
1483
+ </div>
1484
+
1485
+ <a class="small" name="M000003"><br/></a>
1486
+ <div class="method_block"><h3>
1487
+ <a href='#M000003'>
1488
+
1489
+
1490
+ random
1491
+
1492
+ (min, max)
1493
+
1494
+ </a>
1495
+ </h3>
1496
+ <p>
1497
+ Returns a <a href="Gosu.html#M000003">random</a> double between min
1498
+ (inclusive) and max (exclusive).
1499
+ </p>
1500
+
1501
+ <p class="source_link" id="M000003-show-link"><a onclick="toggle('M000003-source'); toggleText('M000003-link'); return false;" href="#" id="M000003-link">Show source...</a></p><div class="source" id="M000003-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 431</span>
1502
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">random</span>(<span class="ruby-identifier">min</span>, <span class="ruby-identifier">max</span>); <span class="ruby-keyword kw">end</span></pre></div>
1503
+ </div>
1504
+
1505
+ <a class="small" name="M000012"><br/></a>
1506
+ <div class="method_block"><h3>
1507
+ <a href='#M000012'>
1508
+
1509
+
1510
+ screen_height
1511
+
1512
+ ()
1513
+
1514
+ </a>
1515
+ </h3>
1516
+ <p>
1517
+ Returns the height, in pixels, of the user&#8216;s primary screen.
1518
+ </p>
1519
+
1520
+ <p class="source_link" id="M000012-show-link"><a onclick="toggle('M000012-source'); toggleText('M000012-link'); return false;" href="#" id="M000012-link">Show source...</a></p><div class="source" id="M000012-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 459</span>
1521
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">screen_height</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1522
+ </div>
1523
+
1524
+ <a class="small" name="M000011"><br/></a>
1525
+ <div class="method_block"><h3>
1526
+ <a href='#M000011'>
1527
+
1528
+
1529
+ screen_width
1530
+
1531
+ ()
1532
+
1533
+ </a>
1534
+ </h3>
1535
+ <p>
1536
+ Returns the width, in pixels, of the user&#8216;s primary screen.
1537
+ </p>
1538
+
1539
+ <p class="source_link" id="M000011-show-link"><a onclick="toggle('M000011-source'); toggleText('M000011-link'); return false;" href="#" id="M000011-link">Show source...</a></p><div class="source" id="M000011-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 456</span>
1540
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">screen_width</span>(); <span class="ruby-keyword kw">end</span></pre></div>
1541
+ </div>
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+ </div><div class="clear" id="footer">Generated on Jan 21, 2008 / Allison 2 &copy; 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>