gosu 0.7.13 → 0.7.13.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING.txt +4 -2
- data/Gosu/Audio.hpp +8 -5
- data/Gosu/Font.hpp +5 -3
- data/Gosu/Gosu.hpp +6 -0
- data/Gosu/Graphics.hpp +6 -13
- data/Gosu/GraphicsBase.hpp +14 -3
- data/Gosu/IO.hpp +259 -255
- data/Gosu/Image.hpp +12 -12
- data/Gosu/ImageData.hpp +3 -0
- data/Gosu/Input.hpp +14 -2
- data/Gosu/Math.hpp +3 -2
- data/Gosu/RotFlip.hpp +125 -116
- data/Gosu/Sockets.hpp +139 -129
- data/Gosu/Text.hpp +4 -4
- data/Gosu/WinUtility.hpp +1 -1
- data/Gosu/Window.hpp +9 -5
- data/GosuImpl/Graphics/BitmapUtils.cpp +8 -8
- data/GosuImpl/Graphics/DrawOp.hpp +13 -14
- data/GosuImpl/Graphics/Graphics.cpp +3 -2
- data/GosuImpl/Graphics/Image.cpp +8 -8
- data/GosuImpl/Graphics/LargeImageData.cpp +8 -8
- data/GosuImpl/Graphics/Text.cpp +15 -3
- data/GosuImpl/{TextTTFWin.cpp → Graphics/TextTTFWin.cpp} +0 -0
- data/GosuImpl/Graphics/TextWin.cpp +36 -25
- data/GosuImpl/Graphics/Texture.cpp +2 -0
- data/GosuImpl/Iconv.hpp +1 -3
- data/GosuImpl/RubyGosu.swg +19 -10
- data/GosuImpl/RubyGosuStub.mm +40 -8
- data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +126 -0
- data/GosuImpl/RubyGosu_wrap.cxx +1601 -247
- data/GosuImpl/RubyGosu_wrap.h +1 -1
- data/GosuImpl/WindowWin.cpp +18 -6
- data/README.txt +5 -5
- data/Rakefile +27 -7
- data/linux/Makefile.in +1 -1
- data/mac/Gosu.xcodeproj/jlnr.pbxuser +939 -350
- data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +66 -61
- data/mac/Gosu.xcodeproj/project.pbxproj +474 -92
- data/mac/RubyGosu Template-Info.plist b/data/mac/RubyGosu → App-Info.plist +0 -0
- data/reference/cpp/_audio_8hpp-source.html +171 -0
- data/reference/cpp/_audio_8hpp.html +96 -0
- data/reference/cpp/_auto_link_8hpp-source.html +84 -0
- data/reference/cpp/_auto_link_8hpp.html +83 -0
- data/reference/cpp/_bitmap_8hpp-source.html +130 -0
- data/reference/cpp/_bitmap_8hpp.html +107 -0
- data/reference/{ButtonsMac_8hpp-source.html → cpp/_buttons_mac_8hpp-source.html} +60 -14
- data/reference/cpp/_buttons_mac_8hpp.html +233 -0
- data/reference/cpp/_color_8hpp-source.html +215 -0
- data/reference/cpp/_color_8hpp.html +119 -0
- data/reference/cpp/_directories_8hpp-source.html +88 -0
- data/reference/cpp/_directories_8hpp.html +96 -0
- data/reference/cpp/_font_8hpp-source.html +111 -0
- data/reference/cpp/_font_8hpp.html +87 -0
- data/reference/{Fwd_8hpp-source.html → cpp/_fwd_8hpp-source.html} +59 -13
- data/reference/cpp/_fwd_8hpp.html +83 -0
- data/reference/cpp/_gosu_8hpp-source.html +96 -0
- data/reference/cpp/_gosu_8hpp.html +83 -0
- data/reference/cpp/_graphics_8hpp-source.html +134 -0
- data/reference/cpp/_graphics_8hpp.html +94 -0
- data/reference/cpp/_graphics_base_8hpp-source.html +115 -0
- data/reference/cpp/_graphics_base_8hpp.html +120 -0
- data/reference/cpp/_i_o_8hpp-source.html +301 -0
- data/reference/cpp/_i_o_8hpp.html +122 -0
- data/reference/cpp/_image_8hpp-source.html +172 -0
- data/reference/cpp/_image_8hpp.html +96 -0
- data/reference/cpp/_image_data_8hpp-source.html +108 -0
- data/reference/cpp/_image_data_8hpp.html +90 -0
- data/reference/cpp/_input_8hpp-source.html +182 -0
- data/reference/cpp/_input_8hpp.html +102 -0
- data/reference/cpp/_math_8hpp-source.html +147 -0
- data/reference/cpp/_math_8hpp.html +139 -0
- data/reference/{Platform_8hpp-source.html → cpp/_platform_8hpp-source.html} +61 -15
- data/reference/cpp/_platform_8hpp.html +136 -0
- data/reference/cpp/_rot_flip_8hpp-source.html +184 -0
- data/reference/cpp/_rot_flip_8hpp.html +123 -0
- data/reference/cpp/_sockets_8hpp-source.html +174 -0
- data/reference/cpp/_sockets_8hpp.html +117 -0
- data/reference/cpp/_text_8hpp-source.html +102 -0
- data/reference/cpp/_text_8hpp.html +99 -0
- data/reference/cpp/_text_input_8hpp-source.html +110 -0
- data/reference/cpp/_text_input_8hpp.html +87 -0
- data/reference/cpp/_timing_8hpp-source.html +82 -0
- data/reference/cpp/_timing_8hpp.html +90 -0
- data/reference/cpp/_utility_8hpp-source.html +89 -0
- data/reference/cpp/_utility_8hpp.html +96 -0
- data/reference/cpp/_win_utility_8hpp-source.html +125 -0
- data/reference/cpp/_win_utility_8hpp.html +116 -0
- data/reference/cpp/_window_8hpp-source.html +157 -0
- data/reference/cpp/_window_8hpp.html +87 -0
- data/reference/cpp/annotated.html +98 -0
- data/reference/cpp/class_gosu_1_1_audio-members.html +74 -0
- data/reference/cpp/class_gosu_1_1_audio.html +132 -0
- data/reference/cpp/class_gosu_1_1_bitmap-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_bitmap.html +501 -0
- data/reference/cpp/class_gosu_1_1_buffer-members.html +84 -0
- data/reference/cpp/class_gosu_1_1_buffer.html +346 -0
- data/reference/{classGosu_1_1Buffer.png → cpp/class_gosu_1_1_buffer.png} +0 -0
- data/reference/cpp/class_gosu_1_1_button-members.html +76 -0
- data/reference/cpp/class_gosu_1_1_button.html +195 -0
- data/reference/cpp/class_gosu_1_1_color-members.html +96 -0
- data/reference/cpp/class_gosu_1_1_color.html +758 -0
- data/reference/cpp/class_gosu_1_1_comm_socket-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_comm_socket.html +505 -0
- data/reference/cpp/class_gosu_1_1_file-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_file.html +275 -0
- data/reference/{classGosu_1_1File.png → cpp/class_gosu_1_1_file.png} +0 -0
- data/reference/cpp/class_gosu_1_1_font-members.html +79 -0
- data/reference/{classGosu_1_1Font.html → cpp/class_gosu_1_1_font.html} +207 -66
- data/reference/cpp/class_gosu_1_1_graphics-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_graphics.html +768 -0
- data/reference/cpp/class_gosu_1_1_image-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_image.html +771 -0
- data/reference/cpp/class_gosu_1_1_image_data-members.html +77 -0
- data/reference/cpp/class_gosu_1_1_image_data.html +281 -0
- data/reference/cpp/class_gosu_1_1_input-members.html +85 -0
- data/reference/cpp/class_gosu_1_1_input.html +417 -0
- data/reference/cpp/class_gosu_1_1_listener_socket-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_listener_socket.html +221 -0
- data/reference/cpp/class_gosu_1_1_message_socket-members.html +80 -0
- data/reference/{classGosu_1_1MessageSocket.html → cpp/class_gosu_1_1_message_socket.html} +115 -43
- data/reference/cpp/class_gosu_1_1_reader-members.html +80 -0
- data/reference/cpp/class_gosu_1_1_reader.html +322 -0
- data/reference/cpp/class_gosu_1_1_resource-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_resource.html +305 -0
- data/reference/{classGosu_1_1Resource.png → cpp/class_gosu_1_1_resource.png} +0 -0
- data/reference/cpp/class_gosu_1_1_rot_flip-members.html +83 -0
- data/reference/cpp/class_gosu_1_1_rot_flip.html +347 -0
- data/reference/cpp/class_gosu_1_1_sample-members.html +77 -0
- data/reference/{classGosu_1_1Sample.html → cpp/class_gosu_1_1_sample.html} +99 -32
- data/reference/cpp/class_gosu_1_1_sample_instance-members.html +81 -0
- data/reference/cpp/class_gosu_1_1_sample_instance.html +317 -0
- data/reference/cpp/class_gosu_1_1_song-members.html +86 -0
- data/reference/{classGosu_1_1Song.html → cpp/class_gosu_1_1_song.html} +152 -68
- data/reference/cpp/class_gosu_1_1_text_input-members.html +78 -0
- data/reference/cpp/class_gosu_1_1_text_input.html +227 -0
- data/reference/cpp/class_gosu_1_1_window-members.html +90 -0
- data/reference/cpp/class_gosu_1_1_window.html +533 -0
- data/reference/cpp/class_gosu_1_1_writer-members.html +79 -0
- data/reference/cpp/class_gosu_1_1_writer.html +292 -0
- data/reference/cpp/classes.html +86 -0
- data/reference/cpp/closed.gif +0 -0
- data/reference/cpp/cpp.css +155 -0
- data/reference/{doxygen.png → cpp/doxygen.png} +0 -0
- data/reference/cpp/files.html +97 -0
- data/reference/cpp/functions.html +127 -0
- data/reference/cpp/functions_0x62.html +137 -0
- data/reference/cpp/functions_0x63.html +140 -0
- data/reference/cpp/functions_0x64.html +142 -0
- data/reference/cpp/functions_0x65.html +119 -0
- data/reference/cpp/functions_0x66.html +137 -0
- data/reference/cpp/functions_0x67.html +131 -0
- data/reference/cpp/functions_0x68.html +121 -0
- data/reference/cpp/functions_0x69.html +123 -0
- data/reference/cpp/functions_0x6b.html +115 -0
- data/reference/cpp/functions_0x6c.html +117 -0
- data/reference/cpp/functions_0x6d.html +125 -0
- data/reference/cpp/functions_0x6e.html +117 -0
- data/reference/cpp/functions_0x6f.html +126 -0
- data/reference/cpp/functions_0x70.html +136 -0
- data/reference/cpp/functions_0x72.html +154 -0
- data/reference/cpp/functions_0x73.html +179 -0
- data/reference/cpp/functions_0x74.html +127 -0
- data/reference/cpp/functions_0x75.html +121 -0
- data/reference/cpp/functions_0x76.html +117 -0
- data/reference/cpp/functions_0x77.html +129 -0
- data/reference/cpp/functions_0x78.html +115 -0
- data/reference/cpp/functions_0x79.html +115 -0
- data/reference/cpp/functions_0x7e.html +143 -0
- data/reference/cpp/functions_enum.html +87 -0
- data/reference/cpp/functions_eval.html +89 -0
- data/reference/cpp/functions_func.html +125 -0
- data/reference/cpp/functions_func_0x62.html +133 -0
- data/reference/cpp/functions_func_0x63.html +136 -0
- data/reference/cpp/functions_func_0x64.html +140 -0
- data/reference/cpp/functions_func_0x65.html +117 -0
- data/reference/cpp/functions_func_0x66.html +135 -0
- data/reference/cpp/functions_func_0x67.html +129 -0
- data/reference/cpp/functions_func_0x68.html +119 -0
- data/reference/cpp/functions_func_0x69.html +119 -0
- data/reference/cpp/functions_func_0x6b.html +113 -0
- data/reference/cpp/functions_func_0x6c.html +113 -0
- data/reference/cpp/functions_func_0x6d.html +123 -0
- data/reference/cpp/functions_func_0x6e.html +115 -0
- data/reference/cpp/functions_func_0x6f.html +113 -0
- data/reference/cpp/functions_func_0x70.html +134 -0
- data/reference/cpp/functions_func_0x72.html +150 -0
- data/reference/cpp/functions_func_0x73.html +173 -0
- data/reference/cpp/functions_func_0x74.html +119 -0
- data/reference/cpp/functions_func_0x75.html +119 -0
- data/reference/cpp/functions_func_0x76.html +115 -0
- data/reference/cpp/functions_func_0x77.html +127 -0
- data/reference/cpp/functions_func_0x7e.html +141 -0
- data/reference/cpp/functions_type.html +87 -0
- data/reference/cpp/functions_vars.html +112 -0
- data/reference/cpp/globals.html +84 -0
- data/reference/cpp/globals_defs.html +84 -0
- data/reference/cpp/hierarchy.html +100 -0
- data/reference/cpp/index.html +66 -0
- data/reference/cpp/open.gif +0 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +77 -0
- data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +185 -0
- data/reference/cpp/struct_gosu_1_1_touch-members.html +75 -0
- data/reference/cpp/struct_gosu_1_1_touch.html +153 -0
- data/reference/{tab_b.gif → cpp/tab_b.gif} +0 -0
- data/reference/{tab_l.gif → cpp/tab_l.gif} +0 -0
- data/reference/{tab_r.gif → cpp/tab_r.gif} +0 -0
- data/reference/{tabs.css → cpp/tabs.css} +5 -2
- data/windows/Gosu.sln +5 -0
- data/windows/Gosu.vcproj +3 -3
- data/windows/RubyGosu.vcproj +103 -1
- metadata +178 -176
- data/reference/Async_8hpp-source.html +0 -70
- data/reference/Audio_8hpp-source.html +0 -125
- data/reference/Audio_8hpp.html +0 -50
- data/reference/AutoLink_8hpp-source.html +0 -38
- data/reference/AutoLink_8hpp.html +0 -34
- data/reference/Bitmap_8hpp-source.html +0 -84
- data/reference/Bitmap_8hpp.html +0 -58
- data/reference/ButtonsWin_8hpp-source.html +0 -159
- data/reference/ButtonsX_8hpp-source.html +0 -160
- data/reference/Color_8hpp-source.html +0 -169
- data/reference/Color_8hpp.html +0 -85
- data/reference/Directories_8hpp-source.html +0 -42
- data/reference/Directories_8hpp.html +0 -46
- data/reference/Font_8hpp-source.html +0 -65
- data/reference/Font_8hpp.html +0 -41
- data/reference/Fwd_8hpp.html +0 -37
- data/reference/Gosu_8hpp-source.html +0 -49
- data/reference/Gosu_8hpp.html +0 -34
- data/reference/GraphicsBase_8hpp-source.html +0 -59
- data/reference/GraphicsBase_8hpp.html +0 -59
- data/reference/Graphics_8hpp-source.html +0 -99
- data/reference/Graphics_8hpp.html +0 -60
- data/reference/IO_8hpp-source.html +0 -255
- data/reference/IO_8hpp.html +0 -74
- data/reference/ImageData_8hpp-source.html +0 -62
- data/reference/ImageData_8hpp.html +0 -43
- data/reference/Image_8hpp-source.html +0 -126
- data/reference/Image_8hpp.html +0 -48
- data/reference/Input_8hpp-source.html +0 -131
- data/reference/Input_8hpp.html +0 -56
- data/reference/Math_8hpp-source.html +0 -101
- data/reference/Math_8hpp.html +0 -78
- data/reference/Platform_8hpp.html +0 -73
- data/reference/RotFlip_8hpp-source.html +0 -138
- data/reference/RotFlip_8hpp.html +0 -77
- data/reference/Sockets_8hpp-source.html +0 -130
- data/reference/Sockets_8hpp.html +0 -66
- data/reference/TextInput_8hpp-source.html +0 -64
- data/reference/TextInput_8hpp.html +0 -41
- data/reference/Text_8hpp-source.html +0 -56
- data/reference/Text_8hpp.html +0 -48
- data/reference/Timing_8hpp-source.html +0 -36
- data/reference/Timing_8hpp.html +0 -42
- data/reference/Utility_8hpp-source.html +0 -43
- data/reference/Utility_8hpp.html +0 -46
- data/reference/WinUtility_8hpp-source.html +0 -79
- data/reference/WinUtility_8hpp.html +0 -64
- data/reference/Window_8hpp-source.html +0 -110
- data/reference/Window_8hpp.html +0 -41
- data/reference/annotated.html +0 -51
- data/reference/classGosu_1_1Audio-members.html +0 -34
- data/reference/classGosu_1_1Audio.html +0 -46
- data/reference/classGosu_1_1Bitmap-members.html +0 -45
- data/reference/classGosu_1_1Bitmap.html +0 -266
- data/reference/classGosu_1_1Buffer-members.html +0 -44
- data/reference/classGosu_1_1Buffer.html +0 -78
- data/reference/classGosu_1_1Button-members.html +0 -36
- data/reference/classGosu_1_1Button.html +0 -143
- data/reference/classGosu_1_1Color-members.html +0 -56
- data/reference/classGosu_1_1Color.html +0 -387
- data/reference/classGosu_1_1File-members.html +0 -41
- data/reference/classGosu_1_1File.html +0 -69
- data/reference/classGosu_1_1Font-members.html +0 -39
- data/reference/classGosu_1_1Graphics-members.html +0 -50
- data/reference/classGosu_1_1Graphics.html +0 -234
- data/reference/classGosu_1_1Image-members.html +0 -45
- data/reference/classGosu_1_1Image.html +0 -518
- data/reference/classGosu_1_1ImageData-members.html +0 -37
- data/reference/classGosu_1_1ImageData.html +0 -60
- data/reference/classGosu_1_1Input-members.html +0 -45
- data/reference/classGosu_1_1Input.html +0 -256
- data/reference/classGosu_1_1MessageSocket-members.html +0 -40
- data/reference/classGosu_1_1Resource-members.html +0 -39
- data/reference/classGosu_1_1Resource.html +0 -116
- data/reference/classGosu_1_1Sample-members.html +0 -37
- data/reference/classGosu_1_1SampleInstance-members.html +0 -41
- data/reference/classGosu_1_1SampleInstance.html +0 -178
- data/reference/classGosu_1_1Song-members.html +0 -46
- data/reference/classGosu_1_1TextInput-members.html +0 -38
- data/reference/classGosu_1_1TextInput.html +0 -121
- data/reference/classGosu_1_1Window-members.html +0 -50
- data/reference/classGosu_1_1Window.html +0 -289
- data/reference/doxyfile +0 -233
- data/reference/doxygen.css +0 -433
- data/reference/files.html +0 -54
- data/reference/functions.html +0 -249
- data/reference/functions_enum.html +0 -45
- data/reference/functions_func.html +0 -240
- data/reference/functions_vars.html +0 -47
- data/reference/hierarchy.html +0 -53
- data/reference/index.html +0 -26
- data/reference/namespaceGosu.html +0 -3363
- data/reference/namespaceGosu_1_1Colors.html +0 -70
- data/reference/namespaceGosu_1_1Win.html +0 -275
- data/reference/namespacemembers.html +0 -229
- data/reference/namespacemembers_enum.html +0 -52
- data/reference/namespacemembers_eval.html +0 -54
- data/reference/namespacemembers_func.html +0 -196
- data/reference/namespacemembers_type.html +0 -46
- data/reference/namespacemembers_vars.html +0 -48
- data/reference/namespaces.html +0 -35
@@ -0,0 +1,77 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
61
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
62
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class="contents">
|
67
|
+
<h1>Gosu::ImageData Member List</h1>This is the complete list of members for <a class="el" href="class_gosu_1_1_image_data.html">Gosu::ImageData</a>, including all inherited members.<p><table>
|
68
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_image_data.html#23f7dce3f5474b07a0a7b76e7dcb6d89">draw</a>(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode) const =0</td><td><a class="el" href="class_gosu_1_1_image_data.html">Gosu::ImageData</a></td><td><code> [pure virtual]</code></td></tr>
|
69
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_image_data.html#7c267460374172a2edf46480100d497d">glTexInfo</a>() const =0</td><td><a class="el" href="class_gosu_1_1_image_data.html">Gosu::ImageData</a></td><td><code> [pure virtual]</code></td></tr>
|
70
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_image_data.html#792312627eab901702e7236b91a1f2a8">height</a>() const =0</td><td><a class="el" href="class_gosu_1_1_image_data.html">Gosu::ImageData</a></td><td><code> [pure virtual]</code></td></tr>
|
71
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_image_data.html#e841d572afc6b096fcda052296acd297">width</a>() const =0</td><td><a class="el" href="class_gosu_1_1_image_data.html">Gosu::ImageData</a></td><td><code> [pure virtual]</code></td></tr>
|
72
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_image_data.html#8bc105f4bf822770692df6717d0f15ea">~ImageData</a>()</td><td><a class="el" href="class_gosu_1_1_image_data.html">Gosu::ImageData</a></td><td><code> [virtual]</code></td></tr>
|
73
|
+
</table></div>
|
74
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
75
|
+
</div>
|
76
|
+
</body>
|
77
|
+
</html>
|
@@ -0,0 +1,281 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
61
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
62
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
<div class="navpath"><b>Gosu</b>::<a class="el" href="class_gosu_1_1_image_data.html">ImageData</a>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="contents">
|
69
|
+
<h1>Gosu::ImageData Class Reference</h1><!-- doxytag: class="Gosu::ImageData" -->The <a class="el" href="class_gosu_1_1_image_data.html" title="The ImageData class is an abstract base class for drawable images.">ImageData</a> class is an abstract base class for drawable images.
|
70
|
+
<a href="#_details">More...</a>
|
71
|
+
<p>
|
72
|
+
|
73
|
+
<p>
|
74
|
+
<a href="class_gosu_1_1_image_data-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
75
|
+
<tr><td></td></tr>
|
76
|
+
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
77
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_image_data.html#8bc105f4bf822770692df6717d0f15ea">~ImageData</a> ()</td></tr>
|
78
|
+
|
79
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_image_data.html#e841d572afc6b096fcda052296acd297">width</a> () const =0</td></tr>
|
80
|
+
|
81
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_image_data.html#792312627eab901702e7236b91a1f2a8">height</a> () const =0</td></tr>
|
82
|
+
|
83
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_image_data.html#23f7dce3f5474b07a0a7b76e7dcb6d89">draw</a> (double x1, double y1, <a class="el" href="class_gosu_1_1_color.html">Color</a> c1, double x2, double y2, <a class="el" href="class_gosu_1_1_color.html">Color</a> c2, double x3, double y3, <a class="el" href="class_gosu_1_1_color.html">Color</a> c3, double x4, double y4, <a class="el" href="class_gosu_1_1_color.html">Color</a> c4, ZPos z, AlphaMode mode) const =0</td></tr>
|
84
|
+
|
85
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual boost::optional<br class="typebreak">
|
86
|
+
< <a class="el" href="struct_gosu_1_1_g_l_tex_info.html">GLTexInfo</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_image_data.html#7c267460374172a2edf46480100d497d">glTexInfo</a> () const =0</td></tr>
|
87
|
+
|
88
|
+
</table>
|
89
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
90
|
+
The <a class="el" href="class_gosu_1_1_image_data.html" title="The ImageData class is an abstract base class for drawable images.">ImageData</a> class is an abstract base class for drawable images.
|
91
|
+
<p>
|
92
|
+
Instances of classes derived by <a class="el" href="class_gosu_1_1_image_data.html" title="The ImageData class is an abstract base class for drawable images.">ImageData</a> are usually returned by <a class="el" href="class_gosu_1_1_graphics.html#6b10629453eec979500179e4ceb11434" title="Turns a portion of a bitmap into something that can be drawn on this graphics object...">Graphics::createImage</a> and usually only used to implement drawing primitives like <a class="el" href="class_gosu_1_1_image.html" title="Provides functionality for drawing rectangular images.">Image</a>, which then provide a more specialized and intuitive drawing interface.
|
93
|
+
<p>Definition at line <a class="el" href="_image_data_8hpp-source.html#l00028">28</a> of file <a class="el" href="_image_data_8hpp-source.html">ImageData.hpp</a>.</p>
|
94
|
+
<hr><h2>Constructor & Destructor Documentation</h2>
|
95
|
+
<a class="anchor" name="8bc105f4bf822770692df6717d0f15ea"></a><!-- doxytag: member="Gosu::ImageData::~ImageData" ref="8bc105f4bf822770692df6717d0f15ea" args="()" -->
|
96
|
+
<div class="memitem">
|
97
|
+
<div class="memproto">
|
98
|
+
<table class="memname">
|
99
|
+
<tr>
|
100
|
+
<td class="memname">virtual Gosu::ImageData::~ImageData </td>
|
101
|
+
<td>(</td>
|
102
|
+
<td class="paramname"> </td>
|
103
|
+
<td> ) </td>
|
104
|
+
<td><code> [virtual]</code></td>
|
105
|
+
</tr>
|
106
|
+
</table>
|
107
|
+
</div>
|
108
|
+
<div class="memdoc">
|
109
|
+
|
110
|
+
<p>
|
111
|
+
|
112
|
+
<p>Definition at line <a class="el" href="_image_data_8hpp-source.html#l00031">31</a> of file <a class="el" href="_image_data_8hpp-source.html">ImageData.hpp</a>.</p>
|
113
|
+
|
114
|
+
</div>
|
115
|
+
</div><p>
|
116
|
+
<hr><h2>Member Function Documentation</h2>
|
117
|
+
<a class="anchor" name="23f7dce3f5474b07a0a7b76e7dcb6d89"></a><!-- doxytag: member="Gosu::ImageData::draw" ref="23f7dce3f5474b07a0a7b76e7dcb6d89" args="(double x1, double y1, Color c1, double x2, double y2, Color c2, double x3, double y3, Color c3, double x4, double y4, Color c4, ZPos z, AlphaMode mode) const =0" -->
|
118
|
+
<div class="memitem">
|
119
|
+
<div class="memproto">
|
120
|
+
<table class="memname">
|
121
|
+
<tr>
|
122
|
+
<td class="memname">virtual void Gosu::ImageData::draw </td>
|
123
|
+
<td>(</td>
|
124
|
+
<td class="paramtype">double </td>
|
125
|
+
<td class="paramname"> <em>x1</em>, </td>
|
126
|
+
</tr>
|
127
|
+
<tr>
|
128
|
+
<td class="paramkey"></td>
|
129
|
+
<td></td>
|
130
|
+
<td class="paramtype">double </td>
|
131
|
+
<td class="paramname"> <em>y1</em>, </td>
|
132
|
+
</tr>
|
133
|
+
<tr>
|
134
|
+
<td class="paramkey"></td>
|
135
|
+
<td></td>
|
136
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a> </td>
|
137
|
+
<td class="paramname"> <em>c1</em>, </td>
|
138
|
+
</tr>
|
139
|
+
<tr>
|
140
|
+
<td class="paramkey"></td>
|
141
|
+
<td></td>
|
142
|
+
<td class="paramtype">double </td>
|
143
|
+
<td class="paramname"> <em>x2</em>, </td>
|
144
|
+
</tr>
|
145
|
+
<tr>
|
146
|
+
<td class="paramkey"></td>
|
147
|
+
<td></td>
|
148
|
+
<td class="paramtype">double </td>
|
149
|
+
<td class="paramname"> <em>y2</em>, </td>
|
150
|
+
</tr>
|
151
|
+
<tr>
|
152
|
+
<td class="paramkey"></td>
|
153
|
+
<td></td>
|
154
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a> </td>
|
155
|
+
<td class="paramname"> <em>c2</em>, </td>
|
156
|
+
</tr>
|
157
|
+
<tr>
|
158
|
+
<td class="paramkey"></td>
|
159
|
+
<td></td>
|
160
|
+
<td class="paramtype">double </td>
|
161
|
+
<td class="paramname"> <em>x3</em>, </td>
|
162
|
+
</tr>
|
163
|
+
<tr>
|
164
|
+
<td class="paramkey"></td>
|
165
|
+
<td></td>
|
166
|
+
<td class="paramtype">double </td>
|
167
|
+
<td class="paramname"> <em>y3</em>, </td>
|
168
|
+
</tr>
|
169
|
+
<tr>
|
170
|
+
<td class="paramkey"></td>
|
171
|
+
<td></td>
|
172
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a> </td>
|
173
|
+
<td class="paramname"> <em>c3</em>, </td>
|
174
|
+
</tr>
|
175
|
+
<tr>
|
176
|
+
<td class="paramkey"></td>
|
177
|
+
<td></td>
|
178
|
+
<td class="paramtype">double </td>
|
179
|
+
<td class="paramname"> <em>x4</em>, </td>
|
180
|
+
</tr>
|
181
|
+
<tr>
|
182
|
+
<td class="paramkey"></td>
|
183
|
+
<td></td>
|
184
|
+
<td class="paramtype">double </td>
|
185
|
+
<td class="paramname"> <em>y4</em>, </td>
|
186
|
+
</tr>
|
187
|
+
<tr>
|
188
|
+
<td class="paramkey"></td>
|
189
|
+
<td></td>
|
190
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_color.html">Color</a> </td>
|
191
|
+
<td class="paramname"> <em>c4</em>, </td>
|
192
|
+
</tr>
|
193
|
+
<tr>
|
194
|
+
<td class="paramkey"></td>
|
195
|
+
<td></td>
|
196
|
+
<td class="paramtype">ZPos </td>
|
197
|
+
<td class="paramname"> <em>z</em>, </td>
|
198
|
+
</tr>
|
199
|
+
<tr>
|
200
|
+
<td class="paramkey"></td>
|
201
|
+
<td></td>
|
202
|
+
<td class="paramtype">AlphaMode </td>
|
203
|
+
<td class="paramname"> <em>mode</em></td><td> </td>
|
204
|
+
</tr>
|
205
|
+
<tr>
|
206
|
+
<td></td>
|
207
|
+
<td>)</td>
|
208
|
+
<td></td><td></td><td> const<code> [pure virtual]</code></td>
|
209
|
+
</tr>
|
210
|
+
</table>
|
211
|
+
</div>
|
212
|
+
<div class="memdoc">
|
213
|
+
|
214
|
+
<p>
|
215
|
+
|
216
|
+
</div>
|
217
|
+
</div><p>
|
218
|
+
<a class="anchor" name="7c267460374172a2edf46480100d497d"></a><!-- doxytag: member="Gosu::ImageData::glTexInfo" ref="7c267460374172a2edf46480100d497d" args="() const =0" -->
|
219
|
+
<div class="memitem">
|
220
|
+
<div class="memproto">
|
221
|
+
<table class="memname">
|
222
|
+
<tr>
|
223
|
+
<td class="memname">virtual boost::optional<<a class="el" href="struct_gosu_1_1_g_l_tex_info.html">GLTexInfo</a>> Gosu::ImageData::glTexInfo </td>
|
224
|
+
<td>(</td>
|
225
|
+
<td class="paramname"> </td>
|
226
|
+
<td> ) </td>
|
227
|
+
<td> const<code> [pure virtual]</code></td>
|
228
|
+
</tr>
|
229
|
+
</table>
|
230
|
+
</div>
|
231
|
+
<div class="memdoc">
|
232
|
+
|
233
|
+
<p>
|
234
|
+
|
235
|
+
</div>
|
236
|
+
</div><p>
|
237
|
+
<a class="anchor" name="792312627eab901702e7236b91a1f2a8"></a><!-- doxytag: member="Gosu::ImageData::height" ref="792312627eab901702e7236b91a1f2a8" args="() const =0" -->
|
238
|
+
<div class="memitem">
|
239
|
+
<div class="memproto">
|
240
|
+
<table class="memname">
|
241
|
+
<tr>
|
242
|
+
<td class="memname">virtual unsigned Gosu::ImageData::height </td>
|
243
|
+
<td>(</td>
|
244
|
+
<td class="paramname"> </td>
|
245
|
+
<td> ) </td>
|
246
|
+
<td> const<code> [pure virtual]</code></td>
|
247
|
+
</tr>
|
248
|
+
</table>
|
249
|
+
</div>
|
250
|
+
<div class="memdoc">
|
251
|
+
|
252
|
+
<p>
|
253
|
+
|
254
|
+
</div>
|
255
|
+
</div><p>
|
256
|
+
<a class="anchor" name="e841d572afc6b096fcda052296acd297"></a><!-- doxytag: member="Gosu::ImageData::width" ref="e841d572afc6b096fcda052296acd297" args="() const =0" -->
|
257
|
+
<div class="memitem">
|
258
|
+
<div class="memproto">
|
259
|
+
<table class="memname">
|
260
|
+
<tr>
|
261
|
+
<td class="memname">virtual unsigned Gosu::ImageData::width </td>
|
262
|
+
<td>(</td>
|
263
|
+
<td class="paramname"> </td>
|
264
|
+
<td> ) </td>
|
265
|
+
<td> const<code> [pure virtual]</code></td>
|
266
|
+
</tr>
|
267
|
+
</table>
|
268
|
+
</div>
|
269
|
+
<div class="memdoc">
|
270
|
+
|
271
|
+
<p>
|
272
|
+
|
273
|
+
</div>
|
274
|
+
</div><p>
|
275
|
+
<hr>The documentation for this class was generated from the following file:<ul>
|
276
|
+
<li><a class="el" href="_image_data_8hpp-source.html">ImageData.hpp</a></ul>
|
277
|
+
</div>
|
278
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
279
|
+
</div>
|
280
|
+
</body>
|
281
|
+
</html>
|
@@ -0,0 +1,85 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
61
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
62
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
<div class="contents">
|
67
|
+
<h1>Gosu::Input Member List</h1>This is the complete list of members for <a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a>, including all inherited members.<p><table>
|
68
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#1cb42fd48c134fac5c2c8496b1e9f05a">charToId</a>(wchar_t ch)</td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td><code> [static]</code></td></tr>
|
69
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#b4645c1bf26bceea7f8cfc43680667f1">down</a>(Button btn) const </td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
70
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#fc9e732c19055c9f80afb147eac8414b">idToChar</a>(Button btn)</td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td><code> [static]</code></td></tr>
|
71
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#6849d640adfe2d576431ab2551c105c1">mouseX</a>() const </td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
72
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#5bedd5d599dfe530043b3b0f6e3bf2a4">mouseY</a>() const </td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
73
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#b8ea5dbbd08d812cb8d5efa399750e77">onButtonDown</a></td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
74
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#a9d9f7a57ebf1bae30be4ff568e223ba">onButtonUp</a></td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
75
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#26a8d3c2c0d46628bfd17183ac266ea3">setMouseFactors</a>(double factorX, double factorY)</td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
76
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#df5d807bd1cbac95bd4bd86dc5588dea">setMousePosition</a>(double x, double y)</td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
77
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#2bc699256125f13779e9bebc8e4a4b57">setTextInput</a>(TextInput *input)</td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
78
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#1f622a0e9e1c2ab1d304e24a69b28884">textInput</a>() const </td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
79
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#904cd360ad96838a61b408d5aa6729aa">update</a>()</td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
80
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_input.html#377648a97961ab71084c29d72c3d9b87">~Input</a>()</td><td><a class="el" href="class_gosu_1_1_input.html">Gosu::Input</a></td><td></td></tr>
|
81
|
+
</table></div>
|
82
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
83
|
+
</div>
|
84
|
+
</body>
|
85
|
+
</html>
|
@@ -0,0 +1,417 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Gosu C++ Reference</title>
|
4
|
+
<link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
|
5
|
+
</head>
|
6
|
+
<body>
|
7
|
+
<div class="everything">
|
8
|
+
<!-- Generated by Doxygen 1.5.8 -->
|
9
|
+
<script type="text/javascript">
|
10
|
+
<!--
|
11
|
+
function changeDisplayState (e){
|
12
|
+
var num=this.id.replace(/[^[0-9]/g,'');
|
13
|
+
var button=this.firstChild;
|
14
|
+
var sectionDiv=document.getElementById('dynsection'+num);
|
15
|
+
if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
|
16
|
+
sectionDiv.style.display='block';
|
17
|
+
button.src='open.gif';
|
18
|
+
}else{
|
19
|
+
sectionDiv.style.display='none';
|
20
|
+
button.src='closed.gif';
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function initDynSections(){
|
24
|
+
var divs=document.getElementsByTagName('div');
|
25
|
+
var sectionCounter=1;
|
26
|
+
for(var i=0;i<divs.length-1;i++){
|
27
|
+
if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
|
28
|
+
var header=divs[i];
|
29
|
+
var section=divs[i+1];
|
30
|
+
var button=header.firstChild;
|
31
|
+
if (button!='IMG'){
|
32
|
+
divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
|
33
|
+
button=document.createElement('img');
|
34
|
+
divs[i].insertBefore(button,divs[i].firstChild);
|
35
|
+
}
|
36
|
+
header.style.cursor='pointer';
|
37
|
+
header.onclick=changeDisplayState;
|
38
|
+
header.id='dynheader'+sectionCounter;
|
39
|
+
button.src='closed.gif';
|
40
|
+
section.id='dynsection'+sectionCounter;
|
41
|
+
section.style.display='none';
|
42
|
+
section.style.marginLeft='14px';
|
43
|
+
sectionCounter++;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
window.onload = initDynSections;
|
48
|
+
-->
|
49
|
+
</script>
|
50
|
+
<div class="navigation" id="top">
|
51
|
+
<div class="tabs">
|
52
|
+
<ul>
|
53
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
54
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
55
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
56
|
+
</ul>
|
57
|
+
</div>
|
58
|
+
<div class="tabs">
|
59
|
+
<ul>
|
60
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
61
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
62
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
63
|
+
</ul>
|
64
|
+
</div>
|
65
|
+
<div class="navpath"><b>Gosu</b>::<a class="el" href="class_gosu_1_1_input.html">Input</a>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="contents">
|
69
|
+
<h1>Gosu::Input Class Reference</h1><!-- doxytag: class="Gosu::Input" -->Manages initialization and shutdown of the input system.
|
70
|
+
<a href="#_details">More...</a>
|
71
|
+
<p>
|
72
|
+
|
73
|
+
<p>
|
74
|
+
<a href="class_gosu_1_1_input-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
|
75
|
+
<tr><td></td></tr>
|
76
|
+
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
|
77
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#377648a97961ab71084c29d72c3d9b87">~Input</a> ()</td></tr>
|
78
|
+
|
79
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#b4645c1bf26bceea7f8cfc43680667f1">down</a> (<a class="el" href="class_gosu_1_1_button.html">Button</a> btn) const </td></tr>
|
80
|
+
|
81
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns true if a button is currently pressed. <a href="#b4645c1bf26bceea7f8cfc43680667f1"></a><br></td></tr>
|
82
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#6849d640adfe2d576431ab2551c105c1">mouseX</a> () const </td></tr>
|
83
|
+
|
84
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the horizontal position of the mouse relative to the top left corner of the window given to Input's constructor. <a href="#6849d640adfe2d576431ab2551c105c1"></a><br></td></tr>
|
85
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#5bedd5d599dfe530043b3b0f6e3bf2a4">mouseY</a> () const </td></tr>
|
86
|
+
|
87
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">See mouseX. <a href="#5bedd5d599dfe530043b3b0f6e3bf2a4"></a><br></td></tr>
|
88
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#df5d807bd1cbac95bd4bd86dc5588dea">setMousePosition</a> (double x, double y)</td></tr>
|
89
|
+
|
90
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Immediately moves the mouse as far towards the desired position as possible. <a href="#df5d807bd1cbac95bd4bd86dc5588dea"></a><br></td></tr>
|
91
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#26a8d3c2c0d46628bfd17183ac266ea3">setMouseFactors</a> (double factorX, double factorY)</td></tr>
|
92
|
+
|
93
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#904cd360ad96838a61b408d5aa6729aa">update</a> ()</td></tr>
|
94
|
+
|
95
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Collects new information about which buttons are pressed, where the mouse is and calls onButtonUp/onButtonDown, if assigned. <a href="#904cd360ad96838a61b408d5aa6729aa"></a><br></td></tr>
|
96
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_gosu_1_1_text_input.html">TextInput</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#1f622a0e9e1c2ab1d304e24a69b28884">textInput</a> () const </td></tr>
|
97
|
+
|
98
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the currently active <a class="el" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a> instance, or 0. <a href="#1f622a0e9e1c2ab1d304e24a69b28884"></a><br></td></tr>
|
99
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#2bc699256125f13779e9bebc8e4a4b57">setTextInput</a> (<a class="el" href="class_gosu_1_1_text_input.html">TextInput</a> *input)</td></tr>
|
100
|
+
|
101
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the currently active <a class="el" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>, or clears it (input = 0). <a href="#2bc699256125f13779e9bebc8e4a4b57"></a><br></td></tr>
|
102
|
+
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
|
103
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">static wchar_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#fc9e732c19055c9f80afb147eac8414b">idToChar</a> (<a class="el" href="class_gosu_1_1_button.html">Button</a> btn)</td></tr>
|
104
|
+
|
105
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the character a button usually produces, or 0. <a href="#fc9e732c19055c9f80afb147eac8414b"></a><br></td></tr>
|
106
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_gosu_1_1_button.html">Button</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#1cb42fd48c134fac5c2c8496b1e9f05a">charToId</a> (wchar_t ch)</td></tr>
|
107
|
+
|
108
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the button that has to be pressed to produce the given character, or noButton. <a href="#1cb42fd48c134fac5c2c8496b1e9f05a"></a><br></td></tr>
|
109
|
+
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
|
110
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">boost::function< void(<a class="el" href="class_gosu_1_1_button.html">Button</a>)> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#b8ea5dbbd08d812cb8d5efa399750e77">onButtonDown</a></td></tr>
|
111
|
+
|
112
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Assignable events that are called by update. <a href="#b8ea5dbbd08d812cb8d5efa399750e77"></a><br></td></tr>
|
113
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">boost::function< void(<a class="el" href="class_gosu_1_1_button.html">Button</a>)> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_input.html#a9d9f7a57ebf1bae30be4ff568e223ba">onButtonUp</a></td></tr>
|
114
|
+
|
115
|
+
</table>
|
116
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
117
|
+
Manages initialization and shutdown of the input system.
|
118
|
+
<p>
|
119
|
+
Only one <a class="el" href="class_gosu_1_1_input.html" title="Manages initialization and shutdown of the input system.">Input</a> instance can exist per application.
|
120
|
+
<p>Definition at line <a class="el" href="_input_8hpp-source.html#l00078">78</a> of file <a class="el" href="_input_8hpp-source.html">Input.hpp</a>.</p>
|
121
|
+
<hr><h2>Constructor & Destructor Documentation</h2>
|
122
|
+
<a class="anchor" name="377648a97961ab71084c29d72c3d9b87"></a><!-- doxytag: member="Gosu::Input::~Input" ref="377648a97961ab71084c29d72c3d9b87" args="()" -->
|
123
|
+
<div class="memitem">
|
124
|
+
<div class="memproto">
|
125
|
+
<table class="memname">
|
126
|
+
<tr>
|
127
|
+
<td class="memname">Gosu::Input::~Input </td>
|
128
|
+
<td>(</td>
|
129
|
+
<td class="paramname"> </td>
|
130
|
+
<td> ) </td>
|
131
|
+
<td></td>
|
132
|
+
</tr>
|
133
|
+
</table>
|
134
|
+
</div>
|
135
|
+
<div class="memdoc">
|
136
|
+
|
137
|
+
<p>
|
138
|
+
|
139
|
+
</div>
|
140
|
+
</div><p>
|
141
|
+
<hr><h2>Member Function Documentation</h2>
|
142
|
+
<a class="anchor" name="1cb42fd48c134fac5c2c8496b1e9f05a"></a><!-- doxytag: member="Gosu::Input::charToId" ref="1cb42fd48c134fac5c2c8496b1e9f05a" args="(wchar_t ch)" -->
|
143
|
+
<div class="memitem">
|
144
|
+
<div class="memproto">
|
145
|
+
<table class="memname">
|
146
|
+
<tr>
|
147
|
+
<td class="memname">static <a class="el" href="class_gosu_1_1_button.html">Button</a> Gosu::Input::charToId </td>
|
148
|
+
<td>(</td>
|
149
|
+
<td class="paramtype">wchar_t </td>
|
150
|
+
<td class="paramname"> <em>ch</em> </td>
|
151
|
+
<td> ) </td>
|
152
|
+
<td><code> [static]</code></td>
|
153
|
+
</tr>
|
154
|
+
</table>
|
155
|
+
</div>
|
156
|
+
<div class="memdoc">
|
157
|
+
|
158
|
+
<p>
|
159
|
+
Returns the button that has to be pressed to produce the given character, or noButton.
|
160
|
+
<p>
|
161
|
+
|
162
|
+
</div>
|
163
|
+
</div><p>
|
164
|
+
<a class="anchor" name="b4645c1bf26bceea7f8cfc43680667f1"></a><!-- doxytag: member="Gosu::Input::down" ref="b4645c1bf26bceea7f8cfc43680667f1" args="(Button btn) const " -->
|
165
|
+
<div class="memitem">
|
166
|
+
<div class="memproto">
|
167
|
+
<table class="memname">
|
168
|
+
<tr>
|
169
|
+
<td class="memname">bool Gosu::Input::down </td>
|
170
|
+
<td>(</td>
|
171
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_button.html">Button</a> </td>
|
172
|
+
<td class="paramname"> <em>btn</em> </td>
|
173
|
+
<td> ) </td>
|
174
|
+
<td> const</td>
|
175
|
+
</tr>
|
176
|
+
</table>
|
177
|
+
</div>
|
178
|
+
<div class="memdoc">
|
179
|
+
|
180
|
+
<p>
|
181
|
+
Returns true if a button is currently pressed.
|
182
|
+
<p>
|
183
|
+
Updated every tick.
|
184
|
+
</div>
|
185
|
+
</div><p>
|
186
|
+
<a class="anchor" name="fc9e732c19055c9f80afb147eac8414b"></a><!-- doxytag: member="Gosu::Input::idToChar" ref="fc9e732c19055c9f80afb147eac8414b" args="(Button btn)" -->
|
187
|
+
<div class="memitem">
|
188
|
+
<div class="memproto">
|
189
|
+
<table class="memname">
|
190
|
+
<tr>
|
191
|
+
<td class="memname">static wchar_t Gosu::Input::idToChar </td>
|
192
|
+
<td>(</td>
|
193
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_button.html">Button</a> </td>
|
194
|
+
<td class="paramname"> <em>btn</em> </td>
|
195
|
+
<td> ) </td>
|
196
|
+
<td><code> [static]</code></td>
|
197
|
+
</tr>
|
198
|
+
</table>
|
199
|
+
</div>
|
200
|
+
<div class="memdoc">
|
201
|
+
|
202
|
+
<p>
|
203
|
+
Returns the character a button usually produces, or 0.
|
204
|
+
<p>
|
205
|
+
|
206
|
+
</div>
|
207
|
+
</div><p>
|
208
|
+
<a class="anchor" name="6849d640adfe2d576431ab2551c105c1"></a><!-- doxytag: member="Gosu::Input::mouseX" ref="6849d640adfe2d576431ab2551c105c1" args="() const " -->
|
209
|
+
<div class="memitem">
|
210
|
+
<div class="memproto">
|
211
|
+
<table class="memname">
|
212
|
+
<tr>
|
213
|
+
<td class="memname">double Gosu::Input::mouseX </td>
|
214
|
+
<td>(</td>
|
215
|
+
<td class="paramname"> </td>
|
216
|
+
<td> ) </td>
|
217
|
+
<td> const</td>
|
218
|
+
</tr>
|
219
|
+
</table>
|
220
|
+
</div>
|
221
|
+
<div class="memdoc">
|
222
|
+
|
223
|
+
<p>
|
224
|
+
Returns the horizontal position of the mouse relative to the top left corner of the window given to Input's constructor.
|
225
|
+
<p>
|
226
|
+
|
227
|
+
</div>
|
228
|
+
</div><p>
|
229
|
+
<a class="anchor" name="5bedd5d599dfe530043b3b0f6e3bf2a4"></a><!-- doxytag: member="Gosu::Input::mouseY" ref="5bedd5d599dfe530043b3b0f6e3bf2a4" args="() const " -->
|
230
|
+
<div class="memitem">
|
231
|
+
<div class="memproto">
|
232
|
+
<table class="memname">
|
233
|
+
<tr>
|
234
|
+
<td class="memname">double Gosu::Input::mouseY </td>
|
235
|
+
<td>(</td>
|
236
|
+
<td class="paramname"> </td>
|
237
|
+
<td> ) </td>
|
238
|
+
<td> const</td>
|
239
|
+
</tr>
|
240
|
+
</table>
|
241
|
+
</div>
|
242
|
+
<div class="memdoc">
|
243
|
+
|
244
|
+
<p>
|
245
|
+
See mouseX.
|
246
|
+
<p>
|
247
|
+
|
248
|
+
</div>
|
249
|
+
</div><p>
|
250
|
+
<a class="anchor" name="26a8d3c2c0d46628bfd17183ac266ea3"></a><!-- doxytag: member="Gosu::Input::setMouseFactors" ref="26a8d3c2c0d46628bfd17183ac266ea3" args="(double factorX, double factorY)" -->
|
251
|
+
<div class="memitem">
|
252
|
+
<div class="memproto">
|
253
|
+
<table class="memname">
|
254
|
+
<tr>
|
255
|
+
<td class="memname">void Gosu::Input::setMouseFactors </td>
|
256
|
+
<td>(</td>
|
257
|
+
<td class="paramtype">double </td>
|
258
|
+
<td class="paramname"> <em>factorX</em>, </td>
|
259
|
+
</tr>
|
260
|
+
<tr>
|
261
|
+
<td class="paramkey"></td>
|
262
|
+
<td></td>
|
263
|
+
<td class="paramtype">double </td>
|
264
|
+
<td class="paramname"> <em>factorY</em></td><td> </td>
|
265
|
+
</tr>
|
266
|
+
<tr>
|
267
|
+
<td></td>
|
268
|
+
<td>)</td>
|
269
|
+
<td></td><td></td><td></td>
|
270
|
+
</tr>
|
271
|
+
</table>
|
272
|
+
</div>
|
273
|
+
<div class="memdoc">
|
274
|
+
|
275
|
+
<p>
|
276
|
+
|
277
|
+
</div>
|
278
|
+
</div><p>
|
279
|
+
<a class="anchor" name="df5d807bd1cbac95bd4bd86dc5588dea"></a><!-- doxytag: member="Gosu::Input::setMousePosition" ref="df5d807bd1cbac95bd4bd86dc5588dea" args="(double x, double y)" -->
|
280
|
+
<div class="memitem">
|
281
|
+
<div class="memproto">
|
282
|
+
<table class="memname">
|
283
|
+
<tr>
|
284
|
+
<td class="memname">void Gosu::Input::setMousePosition </td>
|
285
|
+
<td>(</td>
|
286
|
+
<td class="paramtype">double </td>
|
287
|
+
<td class="paramname"> <em>x</em>, </td>
|
288
|
+
</tr>
|
289
|
+
<tr>
|
290
|
+
<td class="paramkey"></td>
|
291
|
+
<td></td>
|
292
|
+
<td class="paramtype">double </td>
|
293
|
+
<td class="paramname"> <em>y</em></td><td> </td>
|
294
|
+
</tr>
|
295
|
+
<tr>
|
296
|
+
<td></td>
|
297
|
+
<td>)</td>
|
298
|
+
<td></td><td></td><td></td>
|
299
|
+
</tr>
|
300
|
+
</table>
|
301
|
+
</div>
|
302
|
+
<div class="memdoc">
|
303
|
+
|
304
|
+
<p>
|
305
|
+
Immediately moves the mouse as far towards the desired position as possible.
|
306
|
+
<p>
|
307
|
+
x and y are relativ to the window just as in the mouse position accessors.
|
308
|
+
</div>
|
309
|
+
</div><p>
|
310
|
+
<a class="anchor" name="2bc699256125f13779e9bebc8e4a4b57"></a><!-- doxytag: member="Gosu::Input::setTextInput" ref="2bc699256125f13779e9bebc8e4a4b57" args="(TextInput *input)" -->
|
311
|
+
<div class="memitem">
|
312
|
+
<div class="memproto">
|
313
|
+
<table class="memname">
|
314
|
+
<tr>
|
315
|
+
<td class="memname">void Gosu::Input::setTextInput </td>
|
316
|
+
<td>(</td>
|
317
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_text_input.html">TextInput</a> * </td>
|
318
|
+
<td class="paramname"> <em>input</em> </td>
|
319
|
+
<td> ) </td>
|
320
|
+
<td></td>
|
321
|
+
</tr>
|
322
|
+
</table>
|
323
|
+
</div>
|
324
|
+
<div class="memdoc">
|
325
|
+
|
326
|
+
<p>
|
327
|
+
Sets the currently active <a class="el" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>, or clears it (input = 0).
|
328
|
+
<p>
|
329
|
+
|
330
|
+
</div>
|
331
|
+
</div><p>
|
332
|
+
<a class="anchor" name="1f622a0e9e1c2ab1d304e24a69b28884"></a><!-- doxytag: member="Gosu::Input::textInput" ref="1f622a0e9e1c2ab1d304e24a69b28884" args="() const " -->
|
333
|
+
<div class="memitem">
|
334
|
+
<div class="memproto">
|
335
|
+
<table class="memname">
|
336
|
+
<tr>
|
337
|
+
<td class="memname"><a class="el" href="class_gosu_1_1_text_input.html">TextInput</a>* Gosu::Input::textInput </td>
|
338
|
+
<td>(</td>
|
339
|
+
<td class="paramname"> </td>
|
340
|
+
<td> ) </td>
|
341
|
+
<td> const</td>
|
342
|
+
</tr>
|
343
|
+
</table>
|
344
|
+
</div>
|
345
|
+
<div class="memdoc">
|
346
|
+
|
347
|
+
<p>
|
348
|
+
Returns the currently active <a class="el" href="class_gosu_1_1_text_input.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a> instance, or 0.
|
349
|
+
<p>
|
350
|
+
|
351
|
+
</div>
|
352
|
+
</div><p>
|
353
|
+
<a class="anchor" name="904cd360ad96838a61b408d5aa6729aa"></a><!-- doxytag: member="Gosu::Input::update" ref="904cd360ad96838a61b408d5aa6729aa" args="()" -->
|
354
|
+
<div class="memitem">
|
355
|
+
<div class="memproto">
|
356
|
+
<table class="memname">
|
357
|
+
<tr>
|
358
|
+
<td class="memname">void Gosu::Input::update </td>
|
359
|
+
<td>(</td>
|
360
|
+
<td class="paramname"> </td>
|
361
|
+
<td> ) </td>
|
362
|
+
<td></td>
|
363
|
+
</tr>
|
364
|
+
</table>
|
365
|
+
</div>
|
366
|
+
<div class="memdoc">
|
367
|
+
|
368
|
+
<p>
|
369
|
+
Collects new information about which buttons are pressed, where the mouse is and calls onButtonUp/onButtonDown, if assigned.
|
370
|
+
<p>
|
371
|
+
|
372
|
+
</div>
|
373
|
+
</div><p>
|
374
|
+
<hr><h2>Member Data Documentation</h2>
|
375
|
+
<a class="anchor" name="b8ea5dbbd08d812cb8d5efa399750e77"></a><!-- doxytag: member="Gosu::Input::onButtonDown" ref="b8ea5dbbd08d812cb8d5efa399750e77" args="" -->
|
376
|
+
<div class="memitem">
|
377
|
+
<div class="memproto">
|
378
|
+
<table class="memname">
|
379
|
+
<tr>
|
380
|
+
<td class="memname">boost::function<void (<a class="el" href="class_gosu_1_1_button.html">Button</a>)> <a class="el" href="class_gosu_1_1_input.html#b8ea5dbbd08d812cb8d5efa399750e77">Gosu::Input::onButtonDown</a> </td>
|
381
|
+
</tr>
|
382
|
+
</table>
|
383
|
+
</div>
|
384
|
+
<div class="memdoc">
|
385
|
+
|
386
|
+
<p>
|
387
|
+
Assignable events that are called by update.
|
388
|
+
<p>
|
389
|
+
You can bind these to your own functions. If you use the <a class="el" href="class_gosu_1_1_window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a> class, it will assign forward these to its own methods.
|
390
|
+
<p>Definition at line <a class="el" href="_input_8hpp-source.html#l00134">134</a> of file <a class="el" href="_input_8hpp-source.html">Input.hpp</a>.</p>
|
391
|
+
|
392
|
+
</div>
|
393
|
+
</div><p>
|
394
|
+
<a class="anchor" name="a9d9f7a57ebf1bae30be4ff568e223ba"></a><!-- doxytag: member="Gosu::Input::onButtonUp" ref="a9d9f7a57ebf1bae30be4ff568e223ba" args="" -->
|
395
|
+
<div class="memitem">
|
396
|
+
<div class="memproto">
|
397
|
+
<table class="memname">
|
398
|
+
<tr>
|
399
|
+
<td class="memname">boost::function<void (<a class="el" href="class_gosu_1_1_button.html">Button</a>)> <a class="el" href="class_gosu_1_1_input.html#a9d9f7a57ebf1bae30be4ff568e223ba">Gosu::Input::onButtonUp</a> </td>
|
400
|
+
</tr>
|
401
|
+
</table>
|
402
|
+
</div>
|
403
|
+
<div class="memdoc">
|
404
|
+
|
405
|
+
<p>
|
406
|
+
|
407
|
+
<p>Definition at line <a class="el" href="_input_8hpp-source.html#l00134">134</a> of file <a class="el" href="_input_8hpp-source.html">Input.hpp</a>.</p>
|
408
|
+
|
409
|
+
</div>
|
410
|
+
</div><p>
|
411
|
+
<hr>The documentation for this class was generated from the following file:<ul>
|
412
|
+
<li><a class="el" href="_input_8hpp-source.html">Input.hpp</a></ul>
|
413
|
+
</div>
|
414
|
+
<p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
|
415
|
+
</div>
|
416
|
+
</body>
|
417
|
+
</html>
|