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,78 @@
|
|
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::TextInput Member List</h1>This is the complete list of members for <a class="el" href="class_gosu_1_1_text_input.html">Gosu::TextInput</a>, including all inherited members.<p><table>
|
68
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_text_input.html#8ad34a47b306222df9a28a57c1fa8622">caretPos</a>() const </td><td><a class="el" href="class_gosu_1_1_text_input.html">Gosu::TextInput</a></td><td></td></tr>
|
69
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_text_input.html#6ddbf85f2115575e2d05e144923630de">selectionStart</a>() const </td><td><a class="el" href="class_gosu_1_1_text_input.html">Gosu::TextInput</a></td><td></td></tr>
|
70
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_text_input.html#442bfe73c574c19fe7432fde7b937f5d">setText</a>(const std::wstring &text)</td><td><a class="el" href="class_gosu_1_1_text_input.html">Gosu::TextInput</a></td><td></td></tr>
|
71
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_text_input.html#1856bf4e58a2c41ca70dcfe562e8022d">text</a>() const </td><td><a class="el" href="class_gosu_1_1_text_input.html">Gosu::TextInput</a></td><td></td></tr>
|
72
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_text_input.html#b05962a92c85b8d9535d60a1fd5e0b00">TextInput</a>()</td><td><a class="el" href="class_gosu_1_1_text_input.html">Gosu::TextInput</a></td><td></td></tr>
|
73
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_text_input.html#dab277801322c37f056c4030d2dcb1e5">~TextInput</a>()</td><td><a class="el" href="class_gosu_1_1_text_input.html">Gosu::TextInput</a></td><td></td></tr>
|
74
|
+
</table></div>
|
75
|
+
<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>
|
76
|
+
</div>
|
77
|
+
</body>
|
78
|
+
</html>
|
@@ -0,0 +1,227 @@
|
|
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_text_input.html">TextInput</a>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="contents">
|
69
|
+
<h1>Gosu::TextInput Class Reference</h1><!-- doxytag: class="Gosu::TextInput" --><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> instances are invisible objects that build a text string from input, using the current operating system's keyboard layout.
|
70
|
+
<a href="#_details">More...</a>
|
71
|
+
<p>
|
72
|
+
|
73
|
+
<p>
|
74
|
+
<a href="class_gosu_1_1_text_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_text_input.html#b05962a92c85b8d9535d60a1fd5e0b00">TextInput</a> ()</td></tr>
|
78
|
+
|
79
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_text_input.html#dab277801322c37f056c4030d2dcb1e5">~TextInput</a> ()</td></tr>
|
80
|
+
|
81
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_text_input.html#1856bf4e58a2c41ca70dcfe562e8022d">text</a> () const </td></tr>
|
82
|
+
|
83
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_text_input.html#442bfe73c574c19fe7432fde7b937f5d">setText</a> (const std::wstring &text)</td></tr>
|
84
|
+
|
85
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Replaces the current text by the given string and positions the cursor at the end of the text, with an empty selection. <a href="#442bfe73c574c19fe7432fde7b937f5d"></a><br></td></tr>
|
86
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_text_input.html#8ad34a47b306222df9a28a57c1fa8622">caretPos</a> () const </td></tr>
|
87
|
+
|
88
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Position of the caret as the index of the character that it's left to. <a href="#8ad34a47b306222df9a28a57c1fa8622"></a><br></td></tr>
|
89
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_text_input.html#6ddbf85f2115575e2d05e144923630de">selectionStart</a> () const </td></tr>
|
90
|
+
|
91
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">If there is a selection, the <a class="el" href="class_gosu_1_1_text_input.html#6ddbf85f2115575e2d05e144923630de" title="If there is a selection, the selectionStart() member yields its beginning, using...">selectionStart()</a> member yields its beginning, using the same indexing scheme as caretPos. <a href="#6ddbf85f2115575e2d05e144923630de"></a><br></td></tr>
|
92
|
+
</table>
|
93
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
94
|
+
<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> instances are invisible objects that build a text string from input, using the current operating system's keyboard layout.
|
95
|
+
<p>
|
96
|
+
At its most basic form, you only need to create a new <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 and pass it to your window via setTextInput. Until you call this function again, passing 0, the <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> object will build a text that can be accessed via <a class="el" href="class_gosu_1_1_text_input.html#1856bf4e58a2c41ca70dcfe562e8022d">TextInput::text()</a>. A <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> object is purely abstract, though; drawing the input field is left to the user. As with most of Gosu, how this is handled is completely left open. <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> only aims to provide enough code for your own GUIs to build upon.
|
97
|
+
<p>Definition at line <a class="el" href="_text_input_8hpp-source.html#l00023">23</a> of file <a class="el" href="_text_input_8hpp-source.html">TextInput.hpp</a>.</p>
|
98
|
+
<hr><h2>Constructor & Destructor Documentation</h2>
|
99
|
+
<a class="anchor" name="b05962a92c85b8d9535d60a1fd5e0b00"></a><!-- doxytag: member="Gosu::TextInput::TextInput" ref="b05962a92c85b8d9535d60a1fd5e0b00" args="()" -->
|
100
|
+
<div class="memitem">
|
101
|
+
<div class="memproto">
|
102
|
+
<table class="memname">
|
103
|
+
<tr>
|
104
|
+
<td class="memname">Gosu::TextInput::TextInput </td>
|
105
|
+
<td>(</td>
|
106
|
+
<td class="paramname"> </td>
|
107
|
+
<td> ) </td>
|
108
|
+
<td></td>
|
109
|
+
</tr>
|
110
|
+
</table>
|
111
|
+
</div>
|
112
|
+
<div class="memdoc">
|
113
|
+
|
114
|
+
<p>
|
115
|
+
|
116
|
+
</div>
|
117
|
+
</div><p>
|
118
|
+
<a class="anchor" name="dab277801322c37f056c4030d2dcb1e5"></a><!-- doxytag: member="Gosu::TextInput::~TextInput" ref="dab277801322c37f056c4030d2dcb1e5" args="()" -->
|
119
|
+
<div class="memitem">
|
120
|
+
<div class="memproto">
|
121
|
+
<table class="memname">
|
122
|
+
<tr>
|
123
|
+
<td class="memname">Gosu::TextInput::~TextInput </td>
|
124
|
+
<td>(</td>
|
125
|
+
<td class="paramname"> </td>
|
126
|
+
<td> ) </td>
|
127
|
+
<td></td>
|
128
|
+
</tr>
|
129
|
+
</table>
|
130
|
+
</div>
|
131
|
+
<div class="memdoc">
|
132
|
+
|
133
|
+
<p>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
</div><p>
|
137
|
+
<hr><h2>Member Function Documentation</h2>
|
138
|
+
<a class="anchor" name="8ad34a47b306222df9a28a57c1fa8622"></a><!-- doxytag: member="Gosu::TextInput::caretPos" ref="8ad34a47b306222df9a28a57c1fa8622" args="() const " -->
|
139
|
+
<div class="memitem">
|
140
|
+
<div class="memproto">
|
141
|
+
<table class="memname">
|
142
|
+
<tr>
|
143
|
+
<td class="memname">unsigned Gosu::TextInput::caretPos </td>
|
144
|
+
<td>(</td>
|
145
|
+
<td class="paramname"> </td>
|
146
|
+
<td> ) </td>
|
147
|
+
<td> const</td>
|
148
|
+
</tr>
|
149
|
+
</table>
|
150
|
+
</div>
|
151
|
+
<div class="memdoc">
|
152
|
+
|
153
|
+
<p>
|
154
|
+
Position of the caret as the index of the character that it's left to.
|
155
|
+
<p>
|
156
|
+
|
157
|
+
</div>
|
158
|
+
</div><p>
|
159
|
+
<a class="anchor" name="6ddbf85f2115575e2d05e144923630de"></a><!-- doxytag: member="Gosu::TextInput::selectionStart" ref="6ddbf85f2115575e2d05e144923630de" args="() const " -->
|
160
|
+
<div class="memitem">
|
161
|
+
<div class="memproto">
|
162
|
+
<table class="memname">
|
163
|
+
<tr>
|
164
|
+
<td class="memname">unsigned Gosu::TextInput::selectionStart </td>
|
165
|
+
<td>(</td>
|
166
|
+
<td class="paramname"> </td>
|
167
|
+
<td> ) </td>
|
168
|
+
<td> const</td>
|
169
|
+
</tr>
|
170
|
+
</table>
|
171
|
+
</div>
|
172
|
+
<div class="memdoc">
|
173
|
+
|
174
|
+
<p>
|
175
|
+
If there is a selection, the <a class="el" href="class_gosu_1_1_text_input.html#6ddbf85f2115575e2d05e144923630de" title="If there is a selection, the selectionStart() member yields its beginning, using...">selectionStart()</a> member yields its beginning, using the same indexing scheme as caretPos.
|
176
|
+
<p>
|
177
|
+
If there is no selection, <a class="el" href="class_gosu_1_1_text_input.html#6ddbf85f2115575e2d05e144923630de" title="If there is a selection, the selectionStart() member yields its beginning, using...">selectionStart()</a> is equal to <a class="el" href="class_gosu_1_1_text_input.html#8ad34a47b306222df9a28a57c1fa8622" title="Position of the caret as the index of the character that it's left to.">caretPos()</a>.
|
178
|
+
</div>
|
179
|
+
</div><p>
|
180
|
+
<a class="anchor" name="442bfe73c574c19fe7432fde7b937f5d"></a><!-- doxytag: member="Gosu::TextInput::setText" ref="442bfe73c574c19fe7432fde7b937f5d" args="(const std::wstring &text)" -->
|
181
|
+
<div class="memitem">
|
182
|
+
<div class="memproto">
|
183
|
+
<table class="memname">
|
184
|
+
<tr>
|
185
|
+
<td class="memname">void Gosu::TextInput::setText </td>
|
186
|
+
<td>(</td>
|
187
|
+
<td class="paramtype">const std::wstring & </td>
|
188
|
+
<td class="paramname"> <em>text</em> </td>
|
189
|
+
<td> ) </td>
|
190
|
+
<td></td>
|
191
|
+
</tr>
|
192
|
+
</table>
|
193
|
+
</div>
|
194
|
+
<div class="memdoc">
|
195
|
+
|
196
|
+
<p>
|
197
|
+
Replaces the current text by the given string and positions the cursor at the end of the text, with an empty selection.
|
198
|
+
<p>
|
199
|
+
|
200
|
+
</div>
|
201
|
+
</div><p>
|
202
|
+
<a class="anchor" name="1856bf4e58a2c41ca70dcfe562e8022d"></a><!-- doxytag: member="Gosu::TextInput::text" ref="1856bf4e58a2c41ca70dcfe562e8022d" args="() const " -->
|
203
|
+
<div class="memitem">
|
204
|
+
<div class="memproto">
|
205
|
+
<table class="memname">
|
206
|
+
<tr>
|
207
|
+
<td class="memname">std::wstring Gosu::TextInput::text </td>
|
208
|
+
<td>(</td>
|
209
|
+
<td class="paramname"> </td>
|
210
|
+
<td> ) </td>
|
211
|
+
<td> const</td>
|
212
|
+
</tr>
|
213
|
+
</table>
|
214
|
+
</div>
|
215
|
+
<div class="memdoc">
|
216
|
+
|
217
|
+
<p>
|
218
|
+
|
219
|
+
</div>
|
220
|
+
</div><p>
|
221
|
+
<hr>The documentation for this class was generated from the following file:<ul>
|
222
|
+
<li><a class="el" href="_text_input_8hpp-source.html">TextInput.hpp</a></ul>
|
223
|
+
</div>
|
224
|
+
<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>
|
225
|
+
</div>
|
226
|
+
</body>
|
227
|
+
</html>
|
@@ -0,0 +1,90 @@
|
|
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::Window Member List</h1>This is the complete list of members for <a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a>, including all inherited members.<p><table>
|
68
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#50e644e03e69dba6f0914bd6a10daef2">audio</a>() const </td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
69
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#ba6ad526d3718ab2f53b62067aac74de">audio</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
70
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#d4e680daba62ac7fbc8002b2be50a2c5">buttonDown</a>(Gosu::Button)</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td><code> [virtual]</code></td></tr>
|
71
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#41ab0a9bfee1c88d96618308bde584fc">buttonUp</a>(Gosu::Button)</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td><code> [virtual]</code></td></tr>
|
72
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#62a0e43f8c0311252e53306699f1d0de">caption</a>() const </td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
73
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#ccbd57bf5ea05899e4270e2b20b300a6">close</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
74
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#b3c5da8e60f81c0528a5d8d9495daac8">draw</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td><code> [virtual]</code></td></tr>
|
75
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#92beaec534fff9513788b37236417991">graphics</a>() const </td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
76
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#6dea7f1d1f9f44664b000c6a2150650e">graphics</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
77
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#88078642d31df76f4fdff18fbce78f41">input</a>() const </td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
78
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#8ea4ba2ff316a565b8701c46aa1972ad">input</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
79
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#94fe0b34e44e22a5076edd26f8e76853">needsRedraw</a>() const </td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td><code> [virtual]</code></td></tr>
|
80
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#c4af331ee73acf27e75d453309a559d6">setCaption</a>(const std::wstring &caption)</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
81
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#d4b7c1e5e817d8aaca09f5d19a3a9d93">show</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
82
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#4c74a15418c916dabec98c2da3ca45ba">update</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td><code> [virtual]</code></td></tr>
|
83
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#cd0648d200a7faab41e31c192d77252b">updateInterval</a>() const </td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
84
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#369461754934c92b9bd0811dbdad8ffa">Window</a>(unsigned width, unsigned height, bool fullscreen, double updateInterval=16.666666)</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td></td></tr>
|
85
|
+
<tr class="memlist"><td><a class="el" href="class_gosu_1_1_window.html#82e0b1ba37b9a9b5d9f49080ec997dec">~Window</a>()</td><td><a class="el" href="class_gosu_1_1_window.html">Gosu::Window</a></td><td><code> [virtual]</code></td></tr>
|
86
|
+
</table></div>
|
87
|
+
<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>
|
88
|
+
</div>
|
89
|
+
</body>
|
90
|
+
</html>
|
@@ -0,0 +1,533 @@
|
|
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_window.html">Window</a>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<div class="contents">
|
69
|
+
<h1>Gosu::Window Class Reference</h1><!-- doxytag: class="Gosu::Window" -->Convenient all-in-one class that serves as the foundation of a standard Gosu application.
|
70
|
+
<a href="#_details">More...</a>
|
71
|
+
<p>
|
72
|
+
|
73
|
+
<p>
|
74
|
+
<a href="class_gosu_1_1_window-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_window.html#369461754934c92b9bd0811dbdad8ffa">Window</a> (unsigned width, unsigned height, bool fullscreen, double updateInterval=16.666666)</td></tr>
|
78
|
+
|
79
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructs a <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>. <a href="#369461754934c92b9bd0811dbdad8ffa"></a><br></td></tr>
|
80
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#82e0b1ba37b9a9b5d9f49080ec997dec">~Window</a> ()</td></tr>
|
81
|
+
|
82
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#62a0e43f8c0311252e53306699f1d0de">caption</a> () const </td></tr>
|
83
|
+
|
84
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#c4af331ee73acf27e75d453309a559d6">setCaption</a> (const std::wstring &caption)</td></tr>
|
85
|
+
|
86
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#cd0648d200a7faab41e31c192d77252b">updateInterval</a> () const </td></tr>
|
87
|
+
|
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_window.html#d4b7c1e5e817d8aaca09f5d19a3a9d93">show</a> ()</td></tr>
|
89
|
+
|
90
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enters a modal loop where 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> is visible on screen and receives calls to draw, update etc. <a href="#d4b7c1e5e817d8aaca09f5d19a3a9d93"></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_window.html#ccbd57bf5ea05899e4270e2b20b300a6">close</a> ()</td></tr>
|
92
|
+
|
93
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Closes the window if it is currently shown. <a href="#ccbd57bf5ea05899e4270e2b20b300a6"></a><br></td></tr>
|
94
|
+
<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_window.html#4c74a15418c916dabec98c2da3ca45ba">update</a> ()</td></tr>
|
95
|
+
|
96
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called every updateInterval milliseconds while the window is being shown. <a href="#4c74a15418c916dabec98c2da3ca45ba"></a><br></td></tr>
|
97
|
+
<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_window.html#b3c5da8e60f81c0528a5d8d9495daac8">draw</a> ()</td></tr>
|
98
|
+
|
99
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called after every update and when the OS wants the window to repaint itself. <a href="#b3c5da8e60f81c0528a5d8d9495daac8"></a><br></td></tr>
|
100
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#94fe0b34e44e22a5076edd26f8e76853">needsRedraw</a> () const </td></tr>
|
101
|
+
|
102
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Gives the game a chance to say no to being redrawn. <a href="#94fe0b34e44e22a5076edd26f8e76853"></a><br></td></tr>
|
103
|
+
<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_window.html#d4e680daba62ac7fbc8002b2be50a2c5">buttonDown</a> (<a class="el" href="class_gosu_1_1_button.html">Gosu::Button</a>)</td></tr>
|
104
|
+
|
105
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called before update when the user pressed a button while the window had the focus. <a href="#d4e680daba62ac7fbc8002b2be50a2c5"></a><br></td></tr>
|
106
|
+
<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_window.html#41ab0a9bfee1c88d96618308bde584fc">buttonUp</a> (<a class="el" href="class_gosu_1_1_button.html">Gosu::Button</a>)</td></tr>
|
107
|
+
|
108
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Same as buttonDown. Called then the user released a button. <a href="#41ab0a9bfee1c88d96618308bde584fc"></a><br></td></tr>
|
109
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_gosu_1_1_graphics.html">Graphics</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#92beaec534fff9513788b37236417991">graphics</a> () const </td></tr>
|
110
|
+
|
111
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_gosu_1_1_graphics.html">Graphics</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#6dea7f1d1f9f44664b000c6a2150650e">graphics</a> ()</td></tr>
|
112
|
+
|
113
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_gosu_1_1_audio.html">Audio</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#50e644e03e69dba6f0914bd6a10daef2">audio</a> () const </td></tr>
|
114
|
+
|
115
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_gosu_1_1_audio.html">Audio</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#ba6ad526d3718ab2f53b62067aac74de">audio</a> ()</td></tr>
|
116
|
+
|
117
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="class_gosu_1_1_input.html">Input</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#88078642d31df76f4fdff18fbce78f41">input</a> () const </td></tr>
|
118
|
+
|
119
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="class_gosu_1_1_input.html">Input</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_window.html#8ea4ba2ff316a565b8701c46aa1972ad">input</a> ()</td></tr>
|
120
|
+
|
121
|
+
</table>
|
122
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
123
|
+
Convenient all-in-one class that serves as the foundation of a standard Gosu application.
|
124
|
+
<p>
|
125
|
+
Manages initialization of all of Gosu's core components and provides timing functionality. Note that you should really only use on instance of this class at the same time. This may or may not change later.
|
126
|
+
<p>Definition at line <a class="el" href="_window_8hpp-source.html#l00026">26</a> of file <a class="el" href="_window_8hpp-source.html">Window.hpp</a>.</p>
|
127
|
+
<hr><h2>Constructor & Destructor Documentation</h2>
|
128
|
+
<a class="anchor" name="369461754934c92b9bd0811dbdad8ffa"></a><!-- doxytag: member="Gosu::Window::Window" ref="369461754934c92b9bd0811dbdad8ffa" args="(unsigned width, unsigned height, bool fullscreen, double updateInterval=16.666666)" -->
|
129
|
+
<div class="memitem">
|
130
|
+
<div class="memproto">
|
131
|
+
<table class="memname">
|
132
|
+
<tr>
|
133
|
+
<td class="memname">Gosu::Window::Window </td>
|
134
|
+
<td>(</td>
|
135
|
+
<td class="paramtype">unsigned </td>
|
136
|
+
<td class="paramname"> <em>width</em>, </td>
|
137
|
+
</tr>
|
138
|
+
<tr>
|
139
|
+
<td class="paramkey"></td>
|
140
|
+
<td></td>
|
141
|
+
<td class="paramtype">unsigned </td>
|
142
|
+
<td class="paramname"> <em>height</em>, </td>
|
143
|
+
</tr>
|
144
|
+
<tr>
|
145
|
+
<td class="paramkey"></td>
|
146
|
+
<td></td>
|
147
|
+
<td class="paramtype">bool </td>
|
148
|
+
<td class="paramname"> <em>fullscreen</em>, </td>
|
149
|
+
</tr>
|
150
|
+
<tr>
|
151
|
+
<td class="paramkey"></td>
|
152
|
+
<td></td>
|
153
|
+
<td class="paramtype">double </td>
|
154
|
+
<td class="paramname"> <em>updateInterval</em> = <code>16.666666</code></td><td> </td>
|
155
|
+
</tr>
|
156
|
+
<tr>
|
157
|
+
<td></td>
|
158
|
+
<td>)</td>
|
159
|
+
<td></td><td></td><td></td>
|
160
|
+
</tr>
|
161
|
+
</table>
|
162
|
+
</div>
|
163
|
+
<div class="memdoc">
|
164
|
+
|
165
|
+
<p>
|
166
|
+
Constructs a <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>.
|
167
|
+
<p>
|
168
|
+
<dl compact><dt><b>Parameters:</b></dt><dd>
|
169
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
170
|
+
<tr><td valign="top"></td><td valign="top"><em>updateInterval</em> </td><td>Interval in milliseconds between two calls to the update member function. </td></tr>
|
171
|
+
</table>
|
172
|
+
</dl>
|
173
|
+
|
174
|
+
</div>
|
175
|
+
</div><p>
|
176
|
+
<a class="anchor" name="82e0b1ba37b9a9b5d9f49080ec997dec"></a><!-- doxytag: member="Gosu::Window::~Window" ref="82e0b1ba37b9a9b5d9f49080ec997dec" args="()" -->
|
177
|
+
<div class="memitem">
|
178
|
+
<div class="memproto">
|
179
|
+
<table class="memname">
|
180
|
+
<tr>
|
181
|
+
<td class="memname">virtual Gosu::Window::~Window </td>
|
182
|
+
<td>(</td>
|
183
|
+
<td class="paramname"> </td>
|
184
|
+
<td> ) </td>
|
185
|
+
<td><code> [virtual]</code></td>
|
186
|
+
</tr>
|
187
|
+
</table>
|
188
|
+
</div>
|
189
|
+
<div class="memdoc">
|
190
|
+
|
191
|
+
<p>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
</div><p>
|
195
|
+
<hr><h2>Member Function Documentation</h2>
|
196
|
+
<a class="anchor" name="ba6ad526d3718ab2f53b62067aac74de"></a><!-- doxytag: member="Gosu::Window::audio" ref="ba6ad526d3718ab2f53b62067aac74de" args="()" -->
|
197
|
+
<div class="memitem">
|
198
|
+
<div class="memproto">
|
199
|
+
<table class="memname">
|
200
|
+
<tr>
|
201
|
+
<td class="memname"><a class="el" href="class_gosu_1_1_audio.html">Audio</a>& Gosu::Window::audio </td>
|
202
|
+
<td>(</td>
|
203
|
+
<td class="paramname"> </td>
|
204
|
+
<td> ) </td>
|
205
|
+
<td></td>
|
206
|
+
</tr>
|
207
|
+
</table>
|
208
|
+
</div>
|
209
|
+
<div class="memdoc">
|
210
|
+
|
211
|
+
<p>
|
212
|
+
|
213
|
+
</div>
|
214
|
+
</div><p>
|
215
|
+
<a class="anchor" name="50e644e03e69dba6f0914bd6a10daef2"></a><!-- doxytag: member="Gosu::Window::audio" ref="50e644e03e69dba6f0914bd6a10daef2" args="() const " -->
|
216
|
+
<div class="memitem">
|
217
|
+
<div class="memproto">
|
218
|
+
<table class="memname">
|
219
|
+
<tr>
|
220
|
+
<td class="memname">const <a class="el" href="class_gosu_1_1_audio.html">Audio</a>& Gosu::Window::audio </td>
|
221
|
+
<td>(</td>
|
222
|
+
<td class="paramname"> </td>
|
223
|
+
<td> ) </td>
|
224
|
+
<td> const</td>
|
225
|
+
</tr>
|
226
|
+
</table>
|
227
|
+
</div>
|
228
|
+
<div class="memdoc">
|
229
|
+
|
230
|
+
<p>
|
231
|
+
|
232
|
+
</div>
|
233
|
+
</div><p>
|
234
|
+
<a class="anchor" name="d4e680daba62ac7fbc8002b2be50a2c5"></a><!-- doxytag: member="Gosu::Window::buttonDown" ref="d4e680daba62ac7fbc8002b2be50a2c5" args="(Gosu::Button)" -->
|
235
|
+
<div class="memitem">
|
236
|
+
<div class="memproto">
|
237
|
+
<table class="memname">
|
238
|
+
<tr>
|
239
|
+
<td class="memname">virtual void Gosu::Window::buttonDown </td>
|
240
|
+
<td>(</td>
|
241
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_button.html">Gosu::Button</a> </td>
|
242
|
+
<td class="paramname"> </td>
|
243
|
+
<td> ) </td>
|
244
|
+
<td><code> [virtual]</code></td>
|
245
|
+
</tr>
|
246
|
+
</table>
|
247
|
+
</div>
|
248
|
+
<div class="memdoc">
|
249
|
+
|
250
|
+
<p>
|
251
|
+
Called before update when the user pressed a button while the window had the focus.
|
252
|
+
<p>
|
253
|
+
|
254
|
+
<p>Definition at line <a class="el" href="_window_8hpp-source.html#l00064">64</a> of file <a class="el" href="_window_8hpp-source.html">Window.hpp</a>.</p>
|
255
|
+
|
256
|
+
</div>
|
257
|
+
</div><p>
|
258
|
+
<a class="anchor" name="41ab0a9bfee1c88d96618308bde584fc"></a><!-- doxytag: member="Gosu::Window::buttonUp" ref="41ab0a9bfee1c88d96618308bde584fc" args="(Gosu::Button)" -->
|
259
|
+
<div class="memitem">
|
260
|
+
<div class="memproto">
|
261
|
+
<table class="memname">
|
262
|
+
<tr>
|
263
|
+
<td class="memname">virtual void Gosu::Window::buttonUp </td>
|
264
|
+
<td>(</td>
|
265
|
+
<td class="paramtype"><a class="el" href="class_gosu_1_1_button.html">Gosu::Button</a> </td>
|
266
|
+
<td class="paramname"> </td>
|
267
|
+
<td> ) </td>
|
268
|
+
<td><code> [virtual]</code></td>
|
269
|
+
</tr>
|
270
|
+
</table>
|
271
|
+
</div>
|
272
|
+
<div class="memdoc">
|
273
|
+
|
274
|
+
<p>
|
275
|
+
Same as buttonDown. Called then the user released a button.
|
276
|
+
<p>
|
277
|
+
|
278
|
+
<p>Definition at line <a class="el" href="_window_8hpp-source.html#l00066">66</a> of file <a class="el" href="_window_8hpp-source.html">Window.hpp</a>.</p>
|
279
|
+
|
280
|
+
</div>
|
281
|
+
</div><p>
|
282
|
+
<a class="anchor" name="62a0e43f8c0311252e53306699f1d0de"></a><!-- doxytag: member="Gosu::Window::caption" ref="62a0e43f8c0311252e53306699f1d0de" args="() const " -->
|
283
|
+
<div class="memitem">
|
284
|
+
<div class="memproto">
|
285
|
+
<table class="memname">
|
286
|
+
<tr>
|
287
|
+
<td class="memname">std::wstring Gosu::Window::caption </td>
|
288
|
+
<td>(</td>
|
289
|
+
<td class="paramname"> </td>
|
290
|
+
<td> ) </td>
|
291
|
+
<td> const</td>
|
292
|
+
</tr>
|
293
|
+
</table>
|
294
|
+
</div>
|
295
|
+
<div class="memdoc">
|
296
|
+
|
297
|
+
<p>
|
298
|
+
|
299
|
+
</div>
|
300
|
+
</div><p>
|
301
|
+
<a class="anchor" name="ccbd57bf5ea05899e4270e2b20b300a6"></a><!-- doxytag: member="Gosu::Window::close" ref="ccbd57bf5ea05899e4270e2b20b300a6" args="()" -->
|
302
|
+
<div class="memitem">
|
303
|
+
<div class="memproto">
|
304
|
+
<table class="memname">
|
305
|
+
<tr>
|
306
|
+
<td class="memname">void Gosu::Window::close </td>
|
307
|
+
<td>(</td>
|
308
|
+
<td class="paramname"> </td>
|
309
|
+
<td> ) </td>
|
310
|
+
<td></td>
|
311
|
+
</tr>
|
312
|
+
</table>
|
313
|
+
</div>
|
314
|
+
<div class="memdoc">
|
315
|
+
|
316
|
+
<p>
|
317
|
+
Closes the window if it is currently shown.
|
318
|
+
<p>
|
319
|
+
|
320
|
+
</div>
|
321
|
+
</div><p>
|
322
|
+
<a class="anchor" name="b3c5da8e60f81c0528a5d8d9495daac8"></a><!-- doxytag: member="Gosu::Window::draw" ref="b3c5da8e60f81c0528a5d8d9495daac8" args="()" -->
|
323
|
+
<div class="memitem">
|
324
|
+
<div class="memproto">
|
325
|
+
<table class="memname">
|
326
|
+
<tr>
|
327
|
+
<td class="memname">virtual void Gosu::Window::draw </td>
|
328
|
+
<td>(</td>
|
329
|
+
<td class="paramname"> </td>
|
330
|
+
<td> ) </td>
|
331
|
+
<td><code> [virtual]</code></td>
|
332
|
+
</tr>
|
333
|
+
</table>
|
334
|
+
</div>
|
335
|
+
<div class="memdoc">
|
336
|
+
|
337
|
+
<p>
|
338
|
+
Called after every update and when the OS wants the window to repaint itself.
|
339
|
+
<p>
|
340
|
+
Your application's rendering code goes here.
|
341
|
+
<p>Definition at line <a class="el" href="_window_8hpp-source.html#l00054">54</a> of file <a class="el" href="_window_8hpp-source.html">Window.hpp</a>.</p>
|
342
|
+
|
343
|
+
</div>
|
344
|
+
</div><p>
|
345
|
+
<a class="anchor" name="6dea7f1d1f9f44664b000c6a2150650e"></a><!-- doxytag: member="Gosu::Window::graphics" ref="6dea7f1d1f9f44664b000c6a2150650e" args="()" -->
|
346
|
+
<div class="memitem">
|
347
|
+
<div class="memproto">
|
348
|
+
<table class="memname">
|
349
|
+
<tr>
|
350
|
+
<td class="memname"><a class="el" href="class_gosu_1_1_graphics.html">Graphics</a>& Gosu::Window::graphics </td>
|
351
|
+
<td>(</td>
|
352
|
+
<td class="paramname"> </td>
|
353
|
+
<td> ) </td>
|
354
|
+
<td></td>
|
355
|
+
</tr>
|
356
|
+
</table>
|
357
|
+
</div>
|
358
|
+
<div class="memdoc">
|
359
|
+
|
360
|
+
<p>
|
361
|
+
|
362
|
+
</div>
|
363
|
+
</div><p>
|
364
|
+
<a class="anchor" name="92beaec534fff9513788b37236417991"></a><!-- doxytag: member="Gosu::Window::graphics" ref="92beaec534fff9513788b37236417991" args="() const " -->
|
365
|
+
<div class="memitem">
|
366
|
+
<div class="memproto">
|
367
|
+
<table class="memname">
|
368
|
+
<tr>
|
369
|
+
<td class="memname">const <a class="el" href="class_gosu_1_1_graphics.html">Graphics</a>& Gosu::Window::graphics </td>
|
370
|
+
<td>(</td>
|
371
|
+
<td class="paramname"> </td>
|
372
|
+
<td> ) </td>
|
373
|
+
<td> const</td>
|
374
|
+
</tr>
|
375
|
+
</table>
|
376
|
+
</div>
|
377
|
+
<div class="memdoc">
|
378
|
+
|
379
|
+
<p>
|
380
|
+
|
381
|
+
</div>
|
382
|
+
</div><p>
|
383
|
+
<a class="anchor" name="8ea4ba2ff316a565b8701c46aa1972ad"></a><!-- doxytag: member="Gosu::Window::input" ref="8ea4ba2ff316a565b8701c46aa1972ad" args="()" -->
|
384
|
+
<div class="memitem">
|
385
|
+
<div class="memproto">
|
386
|
+
<table class="memname">
|
387
|
+
<tr>
|
388
|
+
<td class="memname"><a class="el" href="class_gosu_1_1_input.html">Input</a>& Gosu::Window::input </td>
|
389
|
+
<td>(</td>
|
390
|
+
<td class="paramname"> </td>
|
391
|
+
<td> ) </td>
|
392
|
+
<td></td>
|
393
|
+
</tr>
|
394
|
+
</table>
|
395
|
+
</div>
|
396
|
+
<div class="memdoc">
|
397
|
+
|
398
|
+
<p>
|
399
|
+
|
400
|
+
</div>
|
401
|
+
</div><p>
|
402
|
+
<a class="anchor" name="88078642d31df76f4fdff18fbce78f41"></a><!-- doxytag: member="Gosu::Window::input" ref="88078642d31df76f4fdff18fbce78f41" args="() const " -->
|
403
|
+
<div class="memitem">
|
404
|
+
<div class="memproto">
|
405
|
+
<table class="memname">
|
406
|
+
<tr>
|
407
|
+
<td class="memname">const <a class="el" href="class_gosu_1_1_input.html">Input</a>& Gosu::Window::input </td>
|
408
|
+
<td>(</td>
|
409
|
+
<td class="paramname"> </td>
|
410
|
+
<td> ) </td>
|
411
|
+
<td> const</td>
|
412
|
+
</tr>
|
413
|
+
</table>
|
414
|
+
</div>
|
415
|
+
<div class="memdoc">
|
416
|
+
|
417
|
+
<p>
|
418
|
+
|
419
|
+
</div>
|
420
|
+
</div><p>
|
421
|
+
<a class="anchor" name="94fe0b34e44e22a5076edd26f8e76853"></a><!-- doxytag: member="Gosu::Window::needsRedraw" ref="94fe0b34e44e22a5076edd26f8e76853" args="() const " -->
|
422
|
+
<div class="memitem">
|
423
|
+
<div class="memproto">
|
424
|
+
<table class="memname">
|
425
|
+
<tr>
|
426
|
+
<td class="memname">virtual bool Gosu::Window::needsRedraw </td>
|
427
|
+
<td>(</td>
|
428
|
+
<td class="paramname"> </td>
|
429
|
+
<td> ) </td>
|
430
|
+
<td> const<code> [virtual]</code></td>
|
431
|
+
</tr>
|
432
|
+
</table>
|
433
|
+
</div>
|
434
|
+
<div class="memdoc">
|
435
|
+
|
436
|
+
<p>
|
437
|
+
Gives the game a chance to say no to being redrawn.
|
438
|
+
<p>
|
439
|
+
This is not a definitive answer. The operating system can still cause redraws for one reason or another. By default, the window is redrawn all the time.
|
440
|
+
<p>Definition at line <a class="el" href="_window_8hpp-source.html#l00060">60</a> of file <a class="el" href="_window_8hpp-source.html">Window.hpp</a>.</p>
|
441
|
+
|
442
|
+
</div>
|
443
|
+
</div><p>
|
444
|
+
<a class="anchor" name="c4af331ee73acf27e75d453309a559d6"></a><!-- doxytag: member="Gosu::Window::setCaption" ref="c4af331ee73acf27e75d453309a559d6" args="(const std::wstring &caption)" -->
|
445
|
+
<div class="memitem">
|
446
|
+
<div class="memproto">
|
447
|
+
<table class="memname">
|
448
|
+
<tr>
|
449
|
+
<td class="memname">void Gosu::Window::setCaption </td>
|
450
|
+
<td>(</td>
|
451
|
+
<td class="paramtype">const std::wstring & </td>
|
452
|
+
<td class="paramname"> <em>caption</em> </td>
|
453
|
+
<td> ) </td>
|
454
|
+
<td></td>
|
455
|
+
</tr>
|
456
|
+
</table>
|
457
|
+
</div>
|
458
|
+
<div class="memdoc">
|
459
|
+
|
460
|
+
<p>
|
461
|
+
|
462
|
+
</div>
|
463
|
+
</div><p>
|
464
|
+
<a class="anchor" name="d4b7c1e5e817d8aaca09f5d19a3a9d93"></a><!-- doxytag: member="Gosu::Window::show" ref="d4b7c1e5e817d8aaca09f5d19a3a9d93" args="()" -->
|
465
|
+
<div class="memitem">
|
466
|
+
<div class="memproto">
|
467
|
+
<table class="memname">
|
468
|
+
<tr>
|
469
|
+
<td class="memname">void Gosu::Window::show </td>
|
470
|
+
<td>(</td>
|
471
|
+
<td class="paramname"> </td>
|
472
|
+
<td> ) </td>
|
473
|
+
<td></td>
|
474
|
+
</tr>
|
475
|
+
</table>
|
476
|
+
</div>
|
477
|
+
<div class="memdoc">
|
478
|
+
|
479
|
+
<p>
|
480
|
+
Enters a modal loop where 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> is visible on screen and receives calls to draw, update etc.
|
481
|
+
<p>
|
482
|
+
|
483
|
+
</div>
|
484
|
+
</div><p>
|
485
|
+
<a class="anchor" name="4c74a15418c916dabec98c2da3ca45ba"></a><!-- doxytag: member="Gosu::Window::update" ref="4c74a15418c916dabec98c2da3ca45ba" args="()" -->
|
486
|
+
<div class="memitem">
|
487
|
+
<div class="memproto">
|
488
|
+
<table class="memname">
|
489
|
+
<tr>
|
490
|
+
<td class="memname">virtual void Gosu::Window::update </td>
|
491
|
+
<td>(</td>
|
492
|
+
<td class="paramname"> </td>
|
493
|
+
<td> ) </td>
|
494
|
+
<td><code> [virtual]</code></td>
|
495
|
+
</tr>
|
496
|
+
</table>
|
497
|
+
</div>
|
498
|
+
<div class="memdoc">
|
499
|
+
|
500
|
+
<p>
|
501
|
+
Called every updateInterval milliseconds while the window is being shown.
|
502
|
+
<p>
|
503
|
+
Your application's main game logic goes here.
|
504
|
+
<p>Definition at line <a class="el" href="_window_8hpp-source.html#l00051">51</a> of file <a class="el" href="_window_8hpp-source.html">Window.hpp</a>.</p>
|
505
|
+
|
506
|
+
</div>
|
507
|
+
</div><p>
|
508
|
+
<a class="anchor" name="cd0648d200a7faab41e31c192d77252b"></a><!-- doxytag: member="Gosu::Window::updateInterval" ref="cd0648d200a7faab41e31c192d77252b" args="() const " -->
|
509
|
+
<div class="memitem">
|
510
|
+
<div class="memproto">
|
511
|
+
<table class="memname">
|
512
|
+
<tr>
|
513
|
+
<td class="memname">double Gosu::Window::updateInterval </td>
|
514
|
+
<td>(</td>
|
515
|
+
<td class="paramname"> </td>
|
516
|
+
<td> ) </td>
|
517
|
+
<td> const</td>
|
518
|
+
</tr>
|
519
|
+
</table>
|
520
|
+
</div>
|
521
|
+
<div class="memdoc">
|
522
|
+
|
523
|
+
<p>
|
524
|
+
|
525
|
+
</div>
|
526
|
+
</div><p>
|
527
|
+
<hr>The documentation for this class was generated from the following file:<ul>
|
528
|
+
<li><a class="el" href="_window_8hpp-source.html">Window.hpp</a></ul>
|
529
|
+
</div>
|
530
|
+
<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>
|
531
|
+
</div>
|
532
|
+
</body>
|
533
|
+
</html>
|