gosu 0.7.19-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING.txt +30 -0
- data/README.txt +17 -0
- data/examples/ChipmunkIntegration.rb +275 -0
- data/examples/CptnRuby.rb +231 -0
- data/examples/MoreChipmunkAndRMagick.rb +155 -0
- data/examples/OpenGLIntegration.rb +232 -0
- data/examples/RMagickIntegration.rb +449 -0
- data/examples/TextInput.rb +145 -0
- data/examples/Tutorial.rb +137 -0
- data/examples/media/Beep.wav +0 -0
- data/examples/media/CptnRuby Gem.png +0 -0
- data/examples/media/CptnRuby Map.txt +25 -0
- data/examples/media/CptnRuby Tileset.png +0 -0
- data/examples/media/CptnRuby.png +0 -0
- data/examples/media/Cursor.png +0 -0
- data/examples/media/Earth.png +0 -0
- data/examples/media/Explosion.wav +0 -0
- data/examples/media/LargeStar.png +0 -0
- data/examples/media/Sky.jpg +0 -0
- data/examples/media/Smoke.png +0 -0
- data/examples/media/Soldier.png +0 -0
- data/examples/media/Space.png +0 -0
- data/examples/media/Star.png +0 -0
- data/examples/media/Starfighter.bmp +0 -0
- data/lib/fmod.dll +0 -0
- data/lib/gosu.for_1_8.so +0 -0
- data/lib/gosu.for_1_9.so +0 -0
- data/lib/gosu.rb +19 -0
- data/lib/gosu/patches.rb +64 -0
- data/lib/gosu/swig_patches.rb +21 -0
- data/reference/rdoc/classes/Gosu.html +1546 -0
- data/reference/rdoc/classes/Gosu/Color.html +660 -0
- data/reference/rdoc/classes/Gosu/Font.html +545 -0
- data/reference/rdoc/classes/Gosu/GLTexInfo.html +412 -0
- data/reference/rdoc/classes/Gosu/Image.html +706 -0
- data/reference/rdoc/classes/Gosu/Sample.html +476 -0
- data/reference/rdoc/classes/Gosu/SampleInstance.html +523 -0
- data/reference/rdoc/classes/Gosu/Song.html +568 -0
- data/reference/rdoc/classes/Gosu/TextInput.html +444 -0
- data/reference/rdoc/classes/Gosu/Window.html +911 -0
- data/reference/rdoc/classes/Numeric.html +479 -0
- data/reference/rdoc/created.rid +1 -0
- data/reference/rdoc/files/COPYING_txt.html +391 -0
- data/reference/rdoc/files/README_txt.html +387 -0
- data/reference/rdoc/files/reference/Deployment on OS X_rdoc.html +381 -0
- data/reference/rdoc/files/reference/Deployment on Windows_rdoc.html +385 -0
- data/reference/rdoc/files/reference/Drawing with Colors_rdoc.html +363 -0
- data/reference/rdoc/files/reference/Order of Corners_rdoc.html +358 -0
- data/reference/rdoc/files/reference/Tileability_rdoc.html +374 -0
- data/reference/rdoc/files/reference/Z Ordering_rdoc.html +361 -0
- data/reference/rdoc/files/reference/gosu_rb.html +348 -0
- data/reference/rdoc/fr_class_index.html +12 -0
- data/reference/rdoc/fr_file_index.html +10 -0
- data/reference/rdoc/fr_method_index.html +66 -0
- data/reference/rdoc/index.html +1 -0
- data/reference/rdoc/rdoc-style.css +320 -0
- metadata +111 -0
@@ -0,0 +1,348 @@
|
|
1
|
+
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>File: gosu.rb</title><link type="text/css" href="../.././rdoc-style.css" rel="stylesheet" media="screen"/><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
|
+
// Try to get rid of path and extension in any case. These are not
|
236
|
+
// even interesting if there is enough space.
|
237
|
+
|
238
|
+
s = s.replace(/\..*$/, '');
|
239
|
+
s = s.replace(/.*\//g, '');
|
240
|
+
|
241
|
+
// Now this is a blatant hack.
|
242
|
+
|
243
|
+
if (s == 'gosu')
|
244
|
+
return ''; // Noone will ever see the link, harhar!
|
245
|
+
|
246
|
+
while (s.length > size) {
|
247
|
+
var old_s = s;
|
248
|
+
s = s.replace(/\s|\n/mg, '');
|
249
|
+
s = s.replace(/([A-Z])[a-z]+/m, '$1');
|
250
|
+
if (!s || old_s == s) {
|
251
|
+
return "..." + s.substring(s.length - size, s.length);
|
252
|
+
}
|
253
|
+
}
|
254
|
+
return s;
|
255
|
+
}
|
256
|
+
|
257
|
+
function disableSubmit(event) {
|
258
|
+
var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
|
259
|
+
if (keyCode == 13) {
|
260
|
+
return false;
|
261
|
+
} else {
|
262
|
+
return true;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
function filterList(id, s, event) {
|
267
|
+
|
268
|
+
/* some weak escaping */
|
269
|
+
s = s.replace(/[^\w\d\.\_\-\/\:\=\[\]\?\!]/g, '');
|
270
|
+
s = RegExp.escape(s);
|
271
|
+
|
272
|
+
var show_all = false;
|
273
|
+
if (s.match(/^\s*$/)) {
|
274
|
+
show_all = true;
|
275
|
+
}
|
276
|
+
|
277
|
+
links = $(id).getElementsByTagName('a')
|
278
|
+
regex = new RegExp(s, 'i');
|
279
|
+
|
280
|
+
for (var x = 0; x < links.length; x++) {
|
281
|
+
var link = links[x];
|
282
|
+
if (show_all) {
|
283
|
+
link.style.display = 'inline';
|
284
|
+
} else {
|
285
|
+
if (link.innerHTML.match(regex)) {
|
286
|
+
link.style.display = 'inline';
|
287
|
+
} else {
|
288
|
+
link.style.display = 'none';
|
289
|
+
}
|
290
|
+
}
|
291
|
+
}
|
292
|
+
return true;
|
293
|
+
}
|
294
|
+
|
295
|
+
RegExp.escape = function(text) {
|
296
|
+
if (!arguments.callee.sRE) {
|
297
|
+
var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
|
298
|
+
arguments.callee.sRE = new RegExp(
|
299
|
+
'(\\' + specials.join('|\\') + ')', 'g'
|
300
|
+
);
|
301
|
+
}
|
302
|
+
return text.replace(arguments.callee.sRE, '\\$1');
|
303
|
+
}
|
304
|
+
|
305
|
+
function hacks() {
|
306
|
+
// show the spacer if necessary,
|
307
|
+
divs = document.getElementsByTagName('div');
|
308
|
+
for(var x = 0; x < divs.length; x++) {
|
309
|
+
if (divs[x].className && divs[x].className.match(/top/)) {
|
310
|
+
document.getElementById('spacer').style.display = 'block';
|
311
|
+
}
|
312
|
+
}
|
313
|
+
// remove extra colons from tables
|
314
|
+
tds = document.getElementsByTagName('td');
|
315
|
+
for(var x = 0; x < tds.length; x++) {
|
316
|
+
str = tds[x].innerHTML
|
317
|
+
if (str.charAt(str.length - 1) == ":") {
|
318
|
+
tds[x].innerHTML = str.slice(0, str.length - 1)
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
addEvent(window, 'load', insertIndices, false);
|
324
|
+
addEvent(window, 'load', abbreviateIndices, false);
|
325
|
+
addEvent(window, 'load', stripe, false);
|
326
|
+
addEvent(window, 'load', highlightSymbols, false);
|
327
|
+
addEvent(window, 'load', hacks, false);
|
328
|
+
</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"><span><h1 id="title">
|
329
|
+
File: gosu.rb
|
330
|
+
</h1></span></div><div class="clear"></div><div id="left">
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
<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" 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 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" 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 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" onKeyUp="return filterList('method', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_method"></input></form></div></div></div><div id="content">
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
<p></p>
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
</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>
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
<a href="classes/Gosu.html">Gosu<br/></a>
|
3
|
+
<a href="classes/Gosu/Color.html">Gosu::Color<br/></a>
|
4
|
+
<a href="classes/Gosu/Font.html">Gosu::Font<br/></a>
|
5
|
+
<a href="classes/Gosu/GLTexInfo.html">Gosu::GLTexInfo<br/></a>
|
6
|
+
<a href="classes/Gosu/Image.html">Gosu::Image<br/></a>
|
7
|
+
<a href="classes/Gosu/Sample.html">Gosu::Sample<br/></a>
|
8
|
+
<a href="classes/Gosu/SampleInstance.html">Gosu::SampleInstance<br/></a>
|
9
|
+
<a href="classes/Gosu/Song.html">Gosu::Song<br/></a>
|
10
|
+
<a href="classes/Gosu/TextInput.html">Gosu::TextInput<br/></a>
|
11
|
+
<a href="classes/Gosu/Window.html">Gosu::Window<br/></a>
|
12
|
+
<a href="classes/Numeric.html">Numeric<br/></a>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
|
2
|
+
<a href="files/COPYING_txt.html">COPYING.txt<br/></a>
|
3
|
+
<a href="files/README_txt.html">README.txt<br/></a>
|
4
|
+
<a href="files/reference/Deployment on OS X_rdoc.html">reference/Deployment on OS X.rdoc<br/></a>
|
5
|
+
<a href="files/reference/Deployment on Windows_rdoc.html">reference/Deployment on Windows.rdoc<br/></a>
|
6
|
+
<a href="files/reference/Drawing with Colors_rdoc.html">reference/Drawing with Colors.rdoc<br/></a>
|
7
|
+
<a href="files/reference/Order of Corners_rdoc.html">reference/Order of Corners.rdoc<br/></a>
|
8
|
+
<a href="files/reference/Tileability_rdoc.html">reference/Tileability.rdoc<br/></a>
|
9
|
+
<a href="files/reference/Z Ordering_rdoc.html">reference/Z Ordering.rdoc<br/></a>
|
10
|
+
<a href="files/reference/gosu_rb.html">reference/gosu.rb<br/></a>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
|
2
|
+
<a href="classes/Gosu.html#M000008">angle (Gosu)<br/></a>
|
3
|
+
<a href="classes/Gosu.html#M000009">angle_diff (Gosu)<br/></a>
|
4
|
+
<a href="classes/Gosu/Window.html#M000041">button_down (Gosu::Window)<br/></a>
|
5
|
+
<a href="classes/Gosu/Window.html#M000046">button_down? (Gosu::Window)<br/></a>
|
6
|
+
<a href="classes/Gosu/Window.html#M000047">button_id_to_char (Gosu::Window)<br/></a>
|
7
|
+
<a href="classes/Gosu/Window.html#M000042">button_up (Gosu::Window)<br/></a>
|
8
|
+
<a href="classes/Gosu/Window.html#M000048">char_to_button_id (Gosu::Window)<br/></a>
|
9
|
+
<a href="classes/Gosu/Window.html#M000050">clip_to (Gosu::Window)<br/></a>
|
10
|
+
<a href="classes/Gosu/Window.html#M000036">close (Gosu::Window)<br/></a>
|
11
|
+
<a href="classes/Gosu/Song.html#M000020">current_song (Gosu::Song)<br/></a>
|
12
|
+
<a href="classes/Gosu.html#M000012">default_font_name (Gosu)<br/></a>
|
13
|
+
<a href="classes/Numeric.html#M000003">degrees_to_radians (Numeric)<br/></a>
|
14
|
+
<a href="classes/Gosu.html#M000010">distance (Gosu)<br/></a>
|
15
|
+
<a href="classes/Gosu/Image.html#M000053">draw (Gosu::Image)<br/></a>
|
16
|
+
<a href="classes/Gosu/Window.html#M000038">draw (Gosu::Window)<br/></a>
|
17
|
+
<a href="classes/Gosu/Font.html#M000062">draw (Gosu::Font)<br/></a>
|
18
|
+
<a href="classes/Gosu/Image.html#M000055">draw_as_quad (Gosu::Image)<br/></a>
|
19
|
+
<a href="classes/Gosu/Window.html#M000043">draw_line (Gosu::Window)<br/></a>
|
20
|
+
<a href="classes/Gosu/Window.html#M000045">draw_quad (Gosu::Window)<br/></a>
|
21
|
+
<a href="classes/Gosu/Font.html#M000063">draw_rel (Gosu::Font)<br/></a>
|
22
|
+
<a href="classes/Gosu/Font.html#M000064">draw_rot (Gosu::Font)<br/></a>
|
23
|
+
<a href="classes/Gosu/Image.html#M000054">draw_rot (Gosu::Image)<br/></a>
|
24
|
+
<a href="classes/Gosu/Window.html#M000044">draw_triangle (Gosu::Window)<br/></a>
|
25
|
+
<a href="classes/Gosu/TextInput.html#M000065">filter (Gosu::TextInput)<br/></a>
|
26
|
+
<a href="classes/Gosu/Color.html#M000033">from_ahsv (Gosu::Color)<br/></a>
|
27
|
+
<a href="classes/Gosu/Color.html#M000032">from_hsv (Gosu::Color)<br/></a>
|
28
|
+
<a href="classes/Gosu/Image.html#M000056">from_text (Gosu::Image)<br/></a>
|
29
|
+
<a href="classes/Gosu/Image.html#M000057">from_text (Gosu::Image)<br/></a>
|
30
|
+
<a href="classes/Gosu/Window.html#M000049">gl (Gosu::Window)<br/></a>
|
31
|
+
<a href="classes/Gosu/Image.html#M000059">gl_tex_info (Gosu::Image)<br/></a>
|
32
|
+
<a href="classes/Numeric.html#M000002">gosu_to_radians (Numeric)<br/></a>
|
33
|
+
<a href="classes/Gosu/Image.html#M000058">load_tiles (Gosu::Image)<br/></a>
|
34
|
+
<a href="classes/Gosu.html#M000011">milliseconds (Gosu)<br/></a>
|
35
|
+
<a href="classes/Gosu/Window.html#M000039">needs_redraw? (Gosu::Window)<br/></a>
|
36
|
+
<a href="classes/Gosu/Color.html#M000030">new (Gosu::Color)<br/></a>
|
37
|
+
<a href="classes/Gosu/Sample.html#M000027">new (Gosu::Sample)<br/></a>
|
38
|
+
<a href="classes/Gosu/Font.html#M000060">new (Gosu::Font)<br/></a>
|
39
|
+
<a href="classes/Gosu/Song.html#M000021">new (Gosu::Song)<br/></a>
|
40
|
+
<a href="classes/Gosu/Window.html#M000034">new (Gosu::Window)<br/></a>
|
41
|
+
<a href="classes/Gosu/Image.html#M000052">new (Gosu::Image)<br/></a>
|
42
|
+
<a href="classes/Gosu/Image.html#M000051">new (Gosu::Image)<br/></a>
|
43
|
+
<a href="classes/Gosu/Color.html#M000031">new (Gosu::Color)<br/></a>
|
44
|
+
<a href="classes/Gosu.html#M000006">offset_x (Gosu)<br/></a>
|
45
|
+
<a href="classes/Gosu.html#M000007">offset_y (Gosu)<br/></a>
|
46
|
+
<a href="classes/Gosu/Song.html#M000023">pause (Gosu::Song)<br/></a>
|
47
|
+
<a href="classes/Gosu/SampleInstance.html#M000016">pause (Gosu::SampleInstance)<br/></a>
|
48
|
+
<a href="classes/Gosu/Song.html#M000024">paused? (Gosu::Song)<br/></a>
|
49
|
+
<a href="classes/Gosu/SampleInstance.html#M000017">paused? (Gosu::SampleInstance)<br/></a>
|
50
|
+
<a href="classes/Gosu/Sample.html#M000028">play (Gosu::Sample)<br/></a>
|
51
|
+
<a href="classes/Gosu/Song.html#M000022">play (Gosu::Song)<br/></a>
|
52
|
+
<a href="classes/Gosu/Sample.html#M000029">play_pan (Gosu::Sample)<br/></a>
|
53
|
+
<a href="classes/Gosu/SampleInstance.html#M000019">playing? (Gosu::SampleInstance)<br/></a>
|
54
|
+
<a href="classes/Gosu/Song.html#M000026">playing? (Gosu::Song)<br/></a>
|
55
|
+
<a href="classes/Numeric.html#M000004">radians_to_degrees (Numeric)<br/></a>
|
56
|
+
<a href="classes/Numeric.html#M000001">radians_to_gosu (Numeric)<br/></a>
|
57
|
+
<a href="classes/Gosu.html#M000005">random (Gosu)<br/></a>
|
58
|
+
<a href="classes/Gosu/SampleInstance.html#M000018">resume (Gosu::SampleInstance)<br/></a>
|
59
|
+
<a href="classes/Gosu.html#M000014">screen_height (Gosu)<br/></a>
|
60
|
+
<a href="classes/Gosu.html#M000013">screen_width (Gosu)<br/></a>
|
61
|
+
<a href="classes/Gosu/Window.html#M000040">set_mouse_position (Gosu::Window)<br/></a>
|
62
|
+
<a href="classes/Gosu/Window.html#M000035">show (Gosu::Window)<br/></a>
|
63
|
+
<a href="classes/Gosu/SampleInstance.html#M000015">stop (Gosu::SampleInstance)<br/></a>
|
64
|
+
<a href="classes/Gosu/Song.html#M000025">stop (Gosu::Song)<br/></a>
|
65
|
+
<a href="classes/Gosu/Font.html#M000061">text_width (Gosu::Font)<br/></a>
|
66
|
+
<a href="classes/Gosu/Window.html#M000037">update (Gosu::Window)<br/></a>
|
@@ -0,0 +1 @@
|
|
1
|
+
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>RubyGosu rdoc Reference</title><link type="text/css" href="rdoc-style.css" rel="stylesheet" media="screen"/><meta content="0;url=files/README_txt.html" http-equiv="refresh"/></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"><span id="title"><p> </p><h1>Ruby Documentation</h1></span></div><div class="clear"></div><div id="redirect"><a href="files/README_txt.html"><h1>Redirect</h1></a></div></div></body></html>
|
@@ -0,0 +1,320 @@
|
|
1
|
+
|
2
|
+
/*;
|
3
|
+
Allison 2 template;
|
4
|
+
Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.;
|
5
|
+
*/;
|
6
|
+
|
7
|
+
/* default styles */
|
8
|
+
|
9
|
+
* {
|
10
|
+
margin: 0;
|
11
|
+
padding: 0;
|
12
|
+
border: none;
|
13
|
+
}
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
.clear {
|
25
|
+
clear: both;
|
26
|
+
}
|
27
|
+
|
28
|
+
a {
|
29
|
+
color: #304878;
|
30
|
+
font-weight: bold;
|
31
|
+
text-decoration: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
a:hover {
|
35
|
+
text-decoration: underline;
|
36
|
+
}
|
37
|
+
|
38
|
+
html, body {
|
39
|
+
color: #000;
|
40
|
+
font-size: 13px;
|
41
|
+
font-family: helvetica, verdana, sans;
|
42
|
+
background-color: #fff;
|
43
|
+
text-align: center;
|
44
|
+
margin: 0;
|
45
|
+
padding: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
p, ul, ol {
|
49
|
+
line-height: 16px;
|
50
|
+
} li {
|
51
|
+
margin: 3px;
|
52
|
+
_margin-left: 40px;
|
53
|
+
} p, pre, table, ol, ul {
|
54
|
+
margin: 16px;
|
55
|
+
} #item_name {
|
56
|
+
margin-top: -8px;
|
57
|
+
}
|
58
|
+
|
59
|
+
h1 {
|
60
|
+
font-size: 22px;
|
61
|
+
margin-top: 16px;
|
62
|
+
} h2, h3 {
|
63
|
+
font-size: 18px;
|
64
|
+
margin: 6px;
|
65
|
+
margin-right: 0;
|
66
|
+
padding-top: 12px;
|
67
|
+
}
|
68
|
+
|
69
|
+
/* center everything */
|
70
|
+
|
71
|
+
#container {
|
72
|
+
margin: 20px auto 0 auto;
|
73
|
+
width: 900px;
|
74
|
+
text-align: left;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* header stuff */
|
78
|
+
|
79
|
+
#header {
|
80
|
+
padding: 6px;
|
81
|
+
padding-top: 3px;
|
82
|
+
width: 888px;
|
83
|
+
height: 52px;
|
84
|
+
_height: 58px;
|
85
|
+
margin-bottom: 12px;
|
86
|
+
vertical-align: baseline;
|
87
|
+
background-color: #181848;
|
88
|
+
overflow: hidden;
|
89
|
+
} .curve {
|
90
|
+
background-color: #181848;
|
91
|
+
margin: 0;
|
92
|
+
padding: 0;
|
93
|
+
height: 1px;
|
94
|
+
overflow: hidden /* again, ie problem */;
|
95
|
+
}
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
#preheader_curve_5{border-left: 1px solid #fff; border-right: 1px solid #fff; width: 898px; _width: 888px; }
|
102
|
+
#preheader_curve_4{border-left: 1px solid #fff; border-right: 1px solid #fff; width: 898px; _width: 888px; }
|
103
|
+
#preheader_curve_3{border-left: 2px solid #fff; border-right: 2px solid #fff; width: 896px; _width: 888px; }
|
104
|
+
#preheader_curve_2{border-left: 3px solid #fff; border-right: 3px solid #fff; width: 894px; _width: 888px; }
|
105
|
+
#preheader_curve_1{border-left: 4px solid #fff; border-right: 4px solid #fff; width: 892px; _width: 888px; }
|
106
|
+
#preheader_curve_0{border-left: 6px solid #fff; border-right: 6px solid #fff; width: 888px; _width: 888px; }
|
107
|
+
|
108
|
+
#header h1 {
|
109
|
+
color: #fff;
|
110
|
+
font-size: 30px;
|
111
|
+
margin: 4px 0 0 0;
|
112
|
+
} #header p {
|
113
|
+
margin: 0;
|
114
|
+
padding: 0;
|
115
|
+
padding-left: 3px;
|
116
|
+
font-size: 16px;
|
117
|
+
color: #fff;
|
118
|
+
} #header a {
|
119
|
+
color: #fff;
|
120
|
+
text-decoration: none;
|
121
|
+
font-weight: bold;
|
122
|
+
}
|
123
|
+
|
124
|
+
/* basic layout and navigation bars */
|
125
|
+
|
126
|
+
#left {
|
127
|
+
background-color: #181848;
|
128
|
+
width: 220px;
|
129
|
+
float: left;
|
130
|
+
_width: 208px;
|
131
|
+
margin-bottom: 24px;
|
132
|
+
} #left a {
|
133
|
+
line-height: 14px;
|
134
|
+
}
|
135
|
+
|
136
|
+
/* navigation bar colors and text styles */
|
137
|
+
|
138
|
+
.navigation {
|
139
|
+
width: 196px;
|
140
|
+
margin: 6px;
|
141
|
+
padding: 6px;
|
142
|
+
text-align: left;
|
143
|
+
background-color: #fff;
|
144
|
+
overflow: hidden;
|
145
|
+
} .navigation h3 {
|
146
|
+
font-weight: bold;
|
147
|
+
margin-bottom: 5px;
|
148
|
+
} .navigation span, .navigation a {
|
149
|
+
margin-left: 6px;
|
150
|
+
} #includes .navigation span, #includes .navigation a {
|
151
|
+
margin-left: 0;
|
152
|
+
} .darker {
|
153
|
+
background-color: #e4ebed;
|
154
|
+
} #spacer {
|
155
|
+
background-color: #fff;
|
156
|
+
height: 18px;
|
157
|
+
display: none;
|
158
|
+
}
|
159
|
+
|
160
|
+
/* content area */
|
161
|
+
|
162
|
+
#content {
|
163
|
+
padding: 20px;
|
164
|
+
width: 640px;
|
165
|
+
float: left;
|
166
|
+
min-height: 450px;
|
167
|
+
margin: 0;
|
168
|
+
margin-bottom: -4px;
|
169
|
+
} #content img {
|
170
|
+
padding-top: 6px;
|
171
|
+
padding-bottom: 12px;
|
172
|
+
}
|
173
|
+
|
174
|
+
#content h1, h2 {
|
175
|
+
border-top: 1px solid #e4ebed;
|
176
|
+
} #content h1 {
|
177
|
+
padding-top: 18px;
|
178
|
+
} #content #item_name { /* why does this need to be fully qualified? */
|
179
|
+
padding-top: 0;
|
180
|
+
border: none;
|
181
|
+
}
|
182
|
+
|
183
|
+
/* footer */
|
184
|
+
|
185
|
+
#footer {
|
186
|
+
text-align: center;
|
187
|
+
background-color: #fff;
|
188
|
+
padding: 18px;
|
189
|
+
border-top: 1px solid #e4ebed;
|
190
|
+
color: #ccd5dc;
|
191
|
+
} #footer a {
|
192
|
+
font-weight: normal;
|
193
|
+
color: #ccd5dc;
|
194
|
+
}
|
195
|
+
|
196
|
+
/* for that dumb redirect index page I can't avoid */
|
197
|
+
|
198
|
+
#redirect {
|
199
|
+
text-align: center;
|
200
|
+
} #redirect a {
|
201
|
+
color: #181848;
|
202
|
+
}
|
203
|
+
|
204
|
+
/* tables */
|
205
|
+
|
206
|
+
table {
|
207
|
+
width: 585px;
|
208
|
+
margin-right: 0;
|
209
|
+
border-collapse: collapse;
|
210
|
+
border: 1px solid #e4ebed;
|
211
|
+
} td, th {
|
212
|
+
background-color: #fff;
|
213
|
+
text-align: left;
|
214
|
+
padding: 6px;
|
215
|
+
line-height: 14px;
|
216
|
+
font-size: 13px;
|
217
|
+
} td.normal {
|
218
|
+
font-family: Courier, Courier New, monospace;
|
219
|
+
font-size: 12px;
|
220
|
+
} td.highlight {
|
221
|
+
color: #304878;
|
222
|
+
}
|
223
|
+
|
224
|
+
/* method_block details */
|
225
|
+
|
226
|
+
div.method_block {
|
227
|
+
border-bottom: 1px solid #e4ebed;
|
228
|
+
margin-left: 20px;
|
229
|
+
margin-bottom: -17px;
|
230
|
+
margin-top: 17px;
|
231
|
+
} div.method_block h3 {
|
232
|
+
color: #181848;
|
233
|
+
margin-left: 0;
|
234
|
+
padding: 0;
|
235
|
+
} #content div.method_block h1, #content #description h1 {
|
236
|
+
margin-left: 6px;
|
237
|
+
color: #ccd5dc;
|
238
|
+
} div.method_block a.small { /* where is this used? */
|
239
|
+
font-size: 3px;
|
240
|
+
line-height: 3px;
|
241
|
+
}
|
242
|
+
|
243
|
+
/* index includes on the navigation bar */
|
244
|
+
|
245
|
+
div.index a {
|
246
|
+
font-size: 13px;
|
247
|
+
} #method {
|
248
|
+
display: none;
|
249
|
+
} #file, #class {
|
250
|
+
display: block;
|
251
|
+
} div.list_header {
|
252
|
+
float: left;
|
253
|
+
} div.list_header_link {
|
254
|
+
float: right;
|
255
|
+
padding-top: 3px;
|
256
|
+
} div.list_header_link a {
|
257
|
+
font-weight: normal;
|
258
|
+
} div.navigation h3, .list_header_link {
|
259
|
+
margin: 0;
|
260
|
+
margin-top: 6px;
|
261
|
+
margin-bottom: 6px;
|
262
|
+
padding: 0;
|
263
|
+
}
|
264
|
+
|
265
|
+
.index label {
|
266
|
+
font-size: 13px;
|
267
|
+
} .index form input {
|
268
|
+
width: 136px;
|
269
|
+
} .index form {
|
270
|
+
margin-bottom: 6px;
|
271
|
+
}
|
272
|
+
|
273
|
+
ol, ul {
|
274
|
+
margin-left: 6px;
|
275
|
+
}
|
276
|
+
|
277
|
+
p.source_link a {
|
278
|
+
text-align: right;
|
279
|
+
font-weight: normal;
|
280
|
+
} div.source {
|
281
|
+
display: none;
|
282
|
+
} pre, tt {
|
283
|
+
color: #181848;
|
284
|
+
font-weight: normal;
|
285
|
+
font-family: Courier, Courier New, monospace;
|
286
|
+
font-size: 12px;
|
287
|
+
} pre {
|
288
|
+
line-height: 14px;
|
289
|
+
margin-left: 12px;
|
290
|
+
overflow: auto;
|
291
|
+
/* next 4 lines because IE sucks */
|
292
|
+
_position: relative;
|
293
|
+
_width: 587px;
|
294
|
+
_overflow-x:scroll;
|
295
|
+
_overflow-y:visible;
|
296
|
+
} b tt, tt b {
|
297
|
+
font-weight: bold;
|
298
|
+
} div.source g {
|
299
|
+
margin-left: 0;
|
300
|
+
} p.source_link {
|
301
|
+
text-align: center;
|
302
|
+
}
|
303
|
+
|
304
|
+
/* source code highlighting */
|
305
|
+
|
306
|
+
.source pre {
|
307
|
+
color: black;
|
308
|
+
}
|
309
|
+
pre .ruby-value, pre .ruby-symbol {
|
310
|
+
color: #1104bb;
|
311
|
+
} pre .ruby-value.str, pre .ruby-node {
|
312
|
+
color: #181848;
|
313
|
+
} pre .ruby-ivar, pre .ruby-cvar {
|
314
|
+
} pre .ruby-comment {
|
315
|
+
color: #009500;
|
316
|
+
} pre .ruby-constant {
|
317
|
+
color: #cd8802;
|
318
|
+
} pre .ruby-keyword {
|
319
|
+
color: #8d04aa;
|
320
|
+
}
|