gosu 0.7.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/COPYING.txt +29 -0
- data/Gosu/Async.hpp +48 -0
- data/Gosu/Audio.hpp +145 -0
- data/Gosu/AutoLink.hpp +16 -0
- data/Gosu/Bitmap.hpp +85 -0
- data/Gosu/ButtonsMac.hpp +114 -0
- data/Gosu/ButtonsWin.hpp +111 -0
- data/Gosu/ButtonsX.hpp +115 -0
- data/Gosu/Color.hpp +172 -0
- data/Gosu/Directories.hpp +36 -0
- data/Gosu/Font.hpp +59 -0
- data/Gosu/Fwd.hpp +31 -0
- data/Gosu/Gosu.hpp +26 -0
- data/Gosu/Graphics.hpp +86 -0
- data/Gosu/GraphicsBase.hpp +45 -0
- data/Gosu/IO.hpp +255 -0
- data/Gosu/Image.hpp +148 -0
- data/Gosu/ImageData.hpp +45 -0
- data/Gosu/Input.hpp +116 -0
- data/Gosu/Math.hpp +95 -0
- data/Gosu/Platform.hpp +61 -0
- data/Gosu/RotFlip.hpp +116 -0
- data/Gosu/Sockets.hpp +129 -0
- data/Gosu/Text.hpp +47 -0
- data/Gosu/TextInput.hpp +57 -0
- data/Gosu/Timing.hpp +16 -0
- data/Gosu/Utility.hpp +24 -0
- data/Gosu/WinUtility.hpp +76 -0
- data/Gosu/Window.hpp +84 -0
- data/GosuImpl/Async.cpp +37 -0
- data/GosuImpl/AudioFmod.cpp +417 -0
- data/GosuImpl/AudioSDL.cpp +255 -0
- data/GosuImpl/DirectoriesMac.mm +38 -0
- data/GosuImpl/DirectoriesUnix.cpp +48 -0
- data/GosuImpl/DirectoriesWin.cpp +42 -0
- data/GosuImpl/FileUnix.cpp +100 -0
- data/GosuImpl/FileWin.cpp +83 -0
- data/GosuImpl/Graphics/Bitmap.cpp +116 -0
- data/GosuImpl/Graphics/BitmapBMP.cpp +232 -0
- data/GosuImpl/Graphics/BitmapColorKey.cpp +39 -0
- data/GosuImpl/Graphics/BitmapPNG.cpp +276 -0
- data/GosuImpl/Graphics/BitmapUtils.cpp +67 -0
- data/GosuImpl/Graphics/BlockAllocator.cpp +127 -0
- data/GosuImpl/Graphics/BlockAllocator.hpp +34 -0
- data/GosuImpl/Graphics/Color.cpp +126 -0
- data/GosuImpl/Graphics/Common.hpp +21 -0
- data/GosuImpl/Graphics/DrawOp.hpp +154 -0
- data/GosuImpl/Graphics/Font.cpp +110 -0
- data/GosuImpl/Graphics/Graphics.cpp +295 -0
- data/GosuImpl/Graphics/Image.cpp +159 -0
- data/GosuImpl/Graphics/LargeImageData.cpp +115 -0
- data/GosuImpl/Graphics/LargeImageData.hpp +37 -0
- data/GosuImpl/Graphics/RotFlip.cpp +184 -0
- data/GosuImpl/Graphics/TexChunk.cpp +77 -0
- data/GosuImpl/Graphics/TexChunk.hpp +40 -0
- data/GosuImpl/Graphics/Text.cpp +223 -0
- data/GosuImpl/Graphics/TextMac.cpp +242 -0
- data/GosuImpl/Graphics/TextPangoFT.cpp +186 -0
- data/GosuImpl/Graphics/TextWin.cpp +172 -0
- data/GosuImpl/Graphics/Texture.cpp +104 -0
- data/GosuImpl/Graphics/Texture.hpp +34 -0
- data/GosuImpl/IO.cpp +48 -0
- data/GosuImpl/InputMac.mm +677 -0
- data/GosuImpl/InputWin.cpp +444 -0
- data/GosuImpl/InputX.cpp +158 -0
- data/GosuImpl/MacUtility.hpp +48 -0
- data/GosuImpl/Math.cpp +49 -0
- data/GosuImpl/RubyGosu.swg +474 -0
- data/GosuImpl/RubyGosuStub.mm +17 -0
- data/GosuImpl/RubyGosu_DllMain.cxx +30 -0
- data/GosuImpl/RubyGosu_wrap.cxx +8521 -0
- data/GosuImpl/RubyGosu_wrap.h +31 -0
- data/GosuImpl/Sockets/CommSocket.cpp +304 -0
- data/GosuImpl/Sockets/ListenerSocket.cpp +60 -0
- data/GosuImpl/Sockets/MessageSocket.cpp +136 -0
- data/GosuImpl/Sockets/Socket.cpp +145 -0
- data/GosuImpl/Sockets/Sockets.hpp +66 -0
- data/GosuImpl/TextInputMac.mm +207 -0
- data/GosuImpl/TextInputWin.cpp +197 -0
- data/GosuImpl/TextInputX.cpp +201 -0
- data/GosuImpl/TextTTFWin.cpp +247 -0
- data/GosuImpl/TimingUnix.cpp +17 -0
- data/GosuImpl/TimingWin.cpp +28 -0
- data/GosuImpl/Utility.cpp +140 -0
- data/GosuImpl/WinMain.cpp +69 -0
- data/GosuImpl/WinUtility.cpp +137 -0
- data/GosuImpl/WindowMac.mm +466 -0
- data/GosuImpl/WindowWin.cpp +447 -0
- data/GosuImpl/WindowX.cpp +392 -0
- data/GosuImpl/X11vroot.h +118 -0
- data/README.txt +13 -0
- data/Rakefile +178 -0
- data/examples/ChipmunkIntegration.rb +275 -0
- data/examples/CptnRuby.rb +231 -0
- data/examples/MoreChipmunkAndRMagick.rb +155 -0
- data/examples/OpenGLIntegration.rb +232 -0
- data/examples/RMagickIntegration.rb +449 -0
- data/examples/TextInput.cpp +170 -0
- data/examples/TextInput.rb +139 -0
- data/examples/Tutorial.cpp +215 -0
- data/examples/Tutorial.rb +137 -0
- data/examples/media/Beep.wav +0 -0
- data/examples/media/CptnRuby Gem.png +0 -0
- data/examples/media/CptnRuby Map.txt +25 -0
- data/examples/media/CptnRuby Tileset.png +0 -0
- data/examples/media/CptnRuby.png +0 -0
- data/examples/media/Cursor.png +0 -0
- data/examples/media/Earth.png +0 -0
- data/examples/media/Explosion.wav +0 -0
- data/examples/media/LargeStar.png +0 -0
- data/examples/media/Sky.jpg +0 -0
- data/examples/media/Smoke.png +0 -0
- data/examples/media/Soldier.png +0 -0
- data/examples/media/Space.png +0 -0
- data/examples/media/Star.png +0 -0
- data/examples/media/Starfighter.bmp +0 -0
- data/linux/Makefile.in +98 -0
- data/linux/configure +5658 -0
- data/linux/configure.ac +126 -0
- data/linux/extconf.rb +11 -0
- data/mac/English.lproj/InfoPlist.strings +0 -0
- data/mac/Gosu-Info.plist +26 -0
- data/mac/Gosu.xcodeproj/project.pbxproj +1194 -0
- data/mac/RubyGosu Template-Info.plist +26 -0
- data/mac/libboost_thread_1_34_1_universal.a +0 -0
- data/mac/libboost_thread_d_1_34_1_universal.a +0 -0
- data/mac/libfmod_universal.a +0 -0
- data/mac/libpng_universal.a +0 -0
- data/mac/libz_universal.a +0 -0
- data/reference/Async_8hpp-source.html +70 -0
- data/reference/Audio_8hpp-source.html +114 -0
- data/reference/Audio_8hpp.html +50 -0
- data/reference/AutoLink_8hpp-source.html +38 -0
- data/reference/AutoLink_8hpp.html +34 -0
- data/reference/Bitmap_8hpp-source.html +85 -0
- data/reference/Bitmap_8hpp.html +58 -0
- data/reference/ButtonsMac_8hpp-source.html +133 -0
- data/reference/ButtonsWin_8hpp-source.html +133 -0
- data/reference/ButtonsX_8hpp-source.html +134 -0
- data/reference/Color_8hpp-source.html +169 -0
- data/reference/Color_8hpp.html +85 -0
- data/reference/Directories_8hpp-source.html +42 -0
- data/reference/Directories_8hpp.html +46 -0
- data/reference/Font_8hpp-source.html +65 -0
- data/reference/Font_8hpp.html +41 -0
- data/reference/Fwd_8hpp-source.html +52 -0
- data/reference/Fwd_8hpp.html +37 -0
- data/reference/Gosu_8hpp-source.html +48 -0
- data/reference/Gosu_8hpp.html +34 -0
- data/reference/GraphicsBase_8hpp-source.html +57 -0
- data/reference/GraphicsBase_8hpp.html +56 -0
- data/reference/Graphics_8hpp-source.html +96 -0
- data/reference/Graphics_8hpp.html +53 -0
- data/reference/IO_8hpp-source.html +255 -0
- data/reference/IO_8hpp.html +74 -0
- data/reference/ImageData_8hpp-source.html +62 -0
- data/reference/ImageData_8hpp.html +43 -0
- data/reference/Image_8hpp-source.html +126 -0
- data/reference/Image_8hpp.html +48 -0
- data/reference/Input_8hpp-source.html +118 -0
- data/reference/Input_8hpp.html +50 -0
- data/reference/Math_8hpp-source.html +92 -0
- data/reference/Math_8hpp.html +74 -0
- data/reference/Platform_8hpp-source.html +83 -0
- data/reference/Platform_8hpp.html +73 -0
- data/reference/RotFlip_8hpp-source.html +138 -0
- data/reference/RotFlip_8hpp.html +77 -0
- data/reference/Sockets_8hpp-source.html +130 -0
- data/reference/Sockets_8hpp.html +66 -0
- data/reference/TextInput_8hpp-source.html +64 -0
- data/reference/TextInput_8hpp.html +41 -0
- data/reference/Text_8hpp-source.html +51 -0
- data/reference/Text_8hpp.html +46 -0
- data/reference/Timing_8hpp-source.html +36 -0
- data/reference/Timing_8hpp.html +42 -0
- data/reference/Utility_8hpp-source.html +44 -0
- data/reference/Utility_8hpp.html +48 -0
- data/reference/WinUtility_8hpp-source.html +79 -0
- data/reference/WinUtility_8hpp.html +64 -0
- data/reference/Window_8hpp-source.html +91 -0
- data/reference/Window_8hpp.html +41 -0
- data/reference/annotated.html +51 -0
- data/reference/classGosu_1_1Audio-members.html +34 -0
- data/reference/classGosu_1_1Audio.html +46 -0
- data/reference/classGosu_1_1Bitmap-members.html +44 -0
- data/reference/classGosu_1_1Bitmap.html +263 -0
- data/reference/classGosu_1_1Buffer-members.html +44 -0
- data/reference/classGosu_1_1Buffer.html +78 -0
- data/reference/classGosu_1_1Buffer.png +0 -0
- data/reference/classGosu_1_1Button-members.html +36 -0
- data/reference/classGosu_1_1Button.html +143 -0
- data/reference/classGosu_1_1Color-members.html +56 -0
- data/reference/classGosu_1_1Color.html +387 -0
- data/reference/classGosu_1_1File-members.html +41 -0
- data/reference/classGosu_1_1File.html +69 -0
- data/reference/classGosu_1_1File.png +0 -0
- data/reference/classGosu_1_1Font-members.html +39 -0
- data/reference/classGosu_1_1Font.html +309 -0
- data/reference/classGosu_1_1Graphics-members.html +50 -0
- data/reference/classGosu_1_1Graphics.html +234 -0
- data/reference/classGosu_1_1Image-members.html +45 -0
- data/reference/classGosu_1_1Image.html +518 -0
- data/reference/classGosu_1_1ImageData-members.html +37 -0
- data/reference/classGosu_1_1ImageData.html +60 -0
- data/reference/classGosu_1_1Input-members.html +44 -0
- data/reference/classGosu_1_1Input.html +223 -0
- data/reference/classGosu_1_1MessageSocket-members.html +40 -0
- data/reference/classGosu_1_1MessageSocket.html +233 -0
- data/reference/classGosu_1_1Resource-members.html +39 -0
- data/reference/classGosu_1_1Resource.html +116 -0
- data/reference/classGosu_1_1Resource.png +0 -0
- data/reference/classGosu_1_1Sample-members.html +37 -0
- data/reference/classGosu_1_1Sample.html +200 -0
- data/reference/classGosu_1_1SampleInstance-members.html +38 -0
- data/reference/classGosu_1_1SampleInstance.html +169 -0
- data/reference/classGosu_1_1Song-members.html +43 -0
- data/reference/classGosu_1_1Song.html +260 -0
- data/reference/classGosu_1_1TextInput-members.html +38 -0
- data/reference/classGosu_1_1TextInput.html +121 -0
- data/reference/classGosu_1_1Window-members.html +50 -0
- data/reference/classGosu_1_1Window.html +271 -0
- data/reference/doxyfile +233 -0
- data/reference/doxygen.css +433 -0
- data/reference/doxygen.png +0 -0
- data/reference/files.html +54 -0
- data/reference/functions.html +236 -0
- data/reference/functions_enum.html +45 -0
- data/reference/functions_func.html +227 -0
- data/reference/functions_vars.html +47 -0
- data/reference/hierarchy.html +53 -0
- data/reference/index.html +26 -0
- data/reference/namespaceGosu.html +2890 -0
- data/reference/namespaceGosu_1_1Colors.html +70 -0
- data/reference/namespaceGosu_1_1Win.html +275 -0
- data/reference/namespacemembers.html +216 -0
- data/reference/namespacemembers_enum.html +52 -0
- data/reference/namespacemembers_eval.html +54 -0
- data/reference/namespacemembers_func.html +185 -0
- data/reference/namespacemembers_type.html +46 -0
- data/reference/namespacemembers_vars.html +46 -0
- data/reference/namespaces.html +35 -0
- data/reference/tab_b.gif +0 -0
- data/reference/tab_l.gif +0 -0
- data/reference/tab_r.gif +0 -0
- data/reference/tabs.css +102 -0
- data/windows/Gosu.sln +29 -0
- data/windows/Gosu.vcproj +553 -0
- data/windows/RubyGosu.vcproj +138 -0
- metadata +305 -0
@@ -0,0 +1,47 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
+
<title>Gosu: Class Members - Variables</title>
|
4
|
+
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
+
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
+
</head><body>
|
7
|
+
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
+
<div class="navigation" id="top">
|
9
|
+
<div class="tabs">
|
10
|
+
<ul>
|
11
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<div class="tabs">
|
18
|
+
<ul>
|
19
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
20
|
+
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
21
|
+
<li class="current"><a href="functions.html"><span>Class Members</span></a></li>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
<div class="tabs">
|
25
|
+
<ul>
|
26
|
+
<li><a href="functions.html"><span>All</span></a></li>
|
27
|
+
<li><a href="functions_func.html"><span>Functions</span></a></li>
|
28
|
+
<li class="current"><a href="functions_vars.html"><span>Variables</span></a></li>
|
29
|
+
<li><a href="functions_enum.html"><span>Enumerations</span></a></li>
|
30
|
+
</ul>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
<div class="contents">
|
34
|
+
|
35
|
+
<p>
|
36
|
+
<ul>
|
37
|
+
<li>onButtonDown
|
38
|
+
: <a class="el" href="classGosu_1_1Input.html#b8ea5dbbd08d812cb8d5efa399750e77">Gosu::Input</a>
|
39
|
+
<li>onReceive
|
40
|
+
: <a class="el" href="classGosu_1_1MessageSocket.html#946bf3cb838b105842ca86938c3a86ae">Gosu::MessageSocket</a>
|
41
|
+
</ul>
|
42
|
+
</div>
|
43
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
44
|
+
<a href="http://www.doxygen.org/index.html">
|
45
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
46
|
+
</body>
|
47
|
+
</html>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
+
<title>Gosu: Hierarchical Index</title>
|
4
|
+
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
+
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
+
</head><body>
|
7
|
+
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
+
<div class="navigation" id="top">
|
9
|
+
<div class="tabs">
|
10
|
+
<ul>
|
11
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<div class="tabs">
|
18
|
+
<ul>
|
19
|
+
<li><a href="annotated.html"><span>Class List</span></a></li>
|
20
|
+
<li class="current"><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
21
|
+
<li><a href="functions.html"><span>Class Members</span></a></li>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
<div class="contents">
|
26
|
+
<h1>Class Hierarchy</h1>This inheritance list is sorted roughly, but not completely, alphabetically:<ul>
|
27
|
+
<li><a class="el" href="classGosu_1_1Audio.html">Gosu::Audio</a>
|
28
|
+
<li><a class="el" href="classGosu_1_1Bitmap.html">Gosu::Bitmap</a>
|
29
|
+
<li><a class="el" href="classGosu_1_1Button.html">Gosu::Button</a>
|
30
|
+
<li><a class="el" href="classGosu_1_1Color.html">Gosu::Color</a>
|
31
|
+
<li><a class="el" href="classGosu_1_1Font.html">Gosu::Font</a>
|
32
|
+
<li><a class="el" href="classGosu_1_1Graphics.html">Gosu::Graphics</a>
|
33
|
+
<li><a class="el" href="classGosu_1_1Image.html">Gosu::Image</a>
|
34
|
+
<li><a class="el" href="classGosu_1_1ImageData.html">Gosu::ImageData</a>
|
35
|
+
<li><a class="el" href="classGosu_1_1Input.html">Gosu::Input</a>
|
36
|
+
<li><a class="el" href="classGosu_1_1MessageSocket.html">Gosu::MessageSocket</a>
|
37
|
+
<li><a class="el" href="classGosu_1_1Resource.html">Gosu::Resource</a>
|
38
|
+
<ul>
|
39
|
+
<li><a class="el" href="classGosu_1_1Buffer.html">Gosu::Buffer</a>
|
40
|
+
<li><a class="el" href="classGosu_1_1File.html">Gosu::File</a>
|
41
|
+
</ul>
|
42
|
+
<li><a class="el" href="classGosu_1_1Sample.html">Gosu::Sample</a>
|
43
|
+
<li><a class="el" href="classGosu_1_1SampleInstance.html">Gosu::SampleInstance</a>
|
44
|
+
<li><a class="el" href="classGosu_1_1Song.html">Gosu::Song</a>
|
45
|
+
<li><a class="el" href="classGosu_1_1TextInput.html">Gosu::TextInput</a>
|
46
|
+
<li><a class="el" href="classGosu_1_1Window.html">Gosu::Window</a>
|
47
|
+
</ul>
|
48
|
+
</div>
|
49
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
50
|
+
<a href="http://www.doxygen.org/index.html">
|
51
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
52
|
+
</body>
|
53
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
+
<title>Gosu: Main Page</title>
|
4
|
+
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
+
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
+
</head><body>
|
7
|
+
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
+
<div class="navigation" id="top">
|
9
|
+
<div class="tabs">
|
10
|
+
<ul>
|
11
|
+
<li class="current"><a href="index.html"><span>Main Page</span></a></li>
|
12
|
+
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="contents">
|
19
|
+
<h1>Gosu Documentation</h1>
|
20
|
+
<p>
|
21
|
+
</div>
|
22
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
23
|
+
<a href="http://www.doxygen.org/index.html">
|
24
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,2890 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
3
|
+
<title>Gosu: Gosu Namespace Reference</title>
|
4
|
+
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
5
|
+
<link href="tabs.css" rel="stylesheet" type="text/css">
|
6
|
+
</head><body>
|
7
|
+
<!-- Generated by Doxygen 1.5.5 -->
|
8
|
+
<div class="navigation" id="top">
|
9
|
+
<div class="tabs">
|
10
|
+
<ul>
|
11
|
+
<li><a href="index.html"><span>Main Page</span></a></li>
|
12
|
+
<li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<div class="tabs">
|
18
|
+
<ul>
|
19
|
+
<li><a href="namespaces.html"><span>Namespace List</span></a></li>
|
20
|
+
<li><a href="namespacemembers.html"><span>Namespace Members</span></a></li>
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<div class="contents">
|
25
|
+
<h1>Gosu Namespace Reference</h1>The library's main namespace.
|
26
|
+
<a href="#_details">More...</a>
|
27
|
+
<p>
|
28
|
+
<table border="0" cellpadding="0" cellspacing="0">
|
29
|
+
<tr><td></td></tr>
|
30
|
+
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
|
31
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>AsyncResult</b></td></tr>
|
32
|
+
|
33
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Audio.html">Audio</a></td></tr>
|
34
|
+
|
35
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Manages initialization and finalization of audio libraries. <a href="classGosu_1_1Audio.html#_details">More...</a><br></td></tr>
|
36
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1SampleInstance.html">SampleInstance</a></td></tr>
|
37
|
+
|
38
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">An instance of a <a class="el" href="classGosu_1_1Sample.html" title="A sample is a short sound that is completely loaded in memory, can be played multiple...">Sample</a> playing. <a href="classGosu_1_1SampleInstance.html#_details">More...</a><br></td></tr>
|
39
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Sample.html">Sample</a></td></tr>
|
40
|
+
|
41
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">A sample is a short sound that is completely loaded in memory, can be played multiple times at once and offers very flexible playback parameters. <a href="classGosu_1_1Sample.html#_details">More...</a><br></td></tr>
|
42
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Song.html">Song</a></td></tr>
|
43
|
+
|
44
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Songs are less flexible than samples in that they can only be played one at a time and without panning or speed parameters. <a href="classGosu_1_1Song.html#_details">More...</a><br></td></tr>
|
45
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a></td></tr>
|
46
|
+
|
47
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Rectangular area of pixels, each represented by a <a class="el" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> value. <a href="classGosu_1_1Bitmap.html#_details">More...</a><br></td></tr>
|
48
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Color.html">Color</a></td></tr>
|
49
|
+
|
50
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Represents an ARGB color value with 8 bits for each channel. <a href="classGosu_1_1Color.html#_details">More...</a><br></td></tr>
|
51
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Font.html">Font</a></td></tr>
|
52
|
+
|
53
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">A font can be used to draw text on a <a class="el" href="classGosu_1_1Graphics.html" title="Serves as the target of all drawing and provides basic drawing functionality.">Graphics</a> object very flexibly. <a href="classGosu_1_1Font.html#_details">More...</a><br></td></tr>
|
54
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Graphics.html">Graphics</a></td></tr>
|
55
|
+
|
56
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Serves as the target of all drawing and provides basic drawing functionality. <a href="classGosu_1_1Graphics.html#_details">More...</a><br></td></tr>
|
57
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Image.html">Image</a></td></tr>
|
58
|
+
|
59
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides functionality for drawing rectangular images. <a href="classGosu_1_1Image.html#_details">More...</a><br></td></tr>
|
60
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><b>GLTexInfo</b></td></tr>
|
61
|
+
|
62
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1ImageData.html">ImageData</a></td></tr>
|
63
|
+
|
64
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="classGosu_1_1ImageData.html" title="The ImageData class is an abstract base class for drawable images.">ImageData</a> class is an abstract base class for drawable images. <a href="classGosu_1_1ImageData.html#_details">More...</a><br></td></tr>
|
65
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Button.html">Button</a></td></tr>
|
66
|
+
|
67
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Very lightweight class that identifies a button (keyboard, mouse or other device). <a href="classGosu_1_1Button.html#_details">More...</a><br></td></tr>
|
68
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Input.html">Input</a></td></tr>
|
69
|
+
|
70
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Manages initialization and shutdown of the input system; only one <a class="el" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system; only one Input instance...">Input</a> instance can live per application. <a href="classGosu_1_1Input.html#_details">More...</a><br></td></tr>
|
71
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>Reader</b></td></tr>
|
72
|
+
|
73
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>Writer</b></td></tr>
|
74
|
+
|
75
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Resource.html">Resource</a></td></tr>
|
76
|
+
|
77
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Base class for resources. <a href="classGosu_1_1Resource.html#_details">More...</a><br></td></tr>
|
78
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Buffer.html">Buffer</a></td></tr>
|
79
|
+
|
80
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Piece of memory with the <a class="el" href="classGosu_1_1Resource.html" title="Base class for resources.">Resource</a> interface. <a href="classGosu_1_1Buffer.html#_details">More...</a><br></td></tr>
|
81
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1File.html">File</a></td></tr>
|
82
|
+
|
83
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classGosu_1_1File.html" title="File with the Resource interface.">File</a> with the <a class="el" href="classGosu_1_1Resource.html" title="Base class for resources.">Resource</a> interface. <a href="classGosu_1_1File.html#_details">More...</a><br></td></tr>
|
84
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>RotFlip</b></td></tr>
|
85
|
+
|
86
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1MessageSocket.html">MessageSocket</a></td></tr>
|
87
|
+
|
88
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Wraps an UDP socket. <a href="classGosu_1_1MessageSocket.html#_details">More...</a><br></td></tr>
|
89
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>CommSocket</b></td></tr>
|
90
|
+
|
91
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>ListenerSocket</b></td></tr>
|
92
|
+
|
93
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1TextInput.html">TextInput</a></td></tr>
|
94
|
+
|
95
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classGosu_1_1TextInput.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. <a href="classGosu_1_1TextInput.html#_details">More...</a><br></td></tr>
|
96
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Window.html">Window</a></td></tr>
|
97
|
+
|
98
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convenient all-in-one class that serves as the foundation of a standard <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> application. <a href="classGosu_1_1Window.html#_details">More...</a><br></td></tr>
|
99
|
+
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
100
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Colors.html">Colors</a></td></tr>
|
101
|
+
|
102
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html">Win</a></td></tr>
|
103
|
+
|
104
|
+
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
|
105
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">ZPos</a></td></tr>
|
106
|
+
|
107
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e32efd2c73c3884c91c05d5c136d5485"></a><!-- doxytag: member="Gosu::SocketAddress" ref="e32efd2c73c3884c91c05d5c136d5485" args="" -->
|
108
|
+
typedef boost::uint32_t </td><td class="memItemRight" valign="bottom"><b>SocketAddress</b></td></tr>
|
109
|
+
|
110
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ee6ccc5c098c8e63f50d9b4d2cea4e30"></a><!-- doxytag: member="Gosu::SocketPort" ref="ee6ccc5c098c8e63f50d9b4d2cea4e30" args="" -->
|
111
|
+
typedef boost::uint16_t </td><td class="memItemRight" valign="bottom"><b>SocketPort</b></td></tr>
|
112
|
+
|
113
|
+
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
|
114
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368">ButtonName</a> { <br>
|
115
|
+
<b>kbRangeBegin</b> = 0x01,
|
116
|
+
<b>kbEscape</b> = 0x35,
|
117
|
+
<b>kbF1</b> = 0x7a,
|
118
|
+
<b>kbF2</b> = 0x78,
|
119
|
+
<br>
|
120
|
+
<b>kbF3</b> = 0x63,
|
121
|
+
<b>kbF4</b> = 0x76,
|
122
|
+
<b>kbF5</b> = 0x60,
|
123
|
+
<b>kbF6</b> = 0x61,
|
124
|
+
<br>
|
125
|
+
<b>kbF7</b> = 0x62,
|
126
|
+
<b>kbF8</b> = 0x64,
|
127
|
+
<b>kbF9</b> = 0x65,
|
128
|
+
<b>kbF10</b> = 0x6d,
|
129
|
+
<br>
|
130
|
+
<b>kbF11</b> = 0x67,
|
131
|
+
<b>kbF12</b> = 0x6f,
|
132
|
+
<b>kb1</b> = 0x12,
|
133
|
+
<b>kb2</b> = 0x13,
|
134
|
+
<br>
|
135
|
+
<b>kb3</b> = 0x14,
|
136
|
+
<b>kb4</b> = 0x15,
|
137
|
+
<b>kb5</b> = 0x17,
|
138
|
+
<b>kb6</b> = 0x16,
|
139
|
+
<br>
|
140
|
+
<b>kb7</b> = 0x1a,
|
141
|
+
<b>kb8</b> = 0x1c,
|
142
|
+
<b>kb9</b> = 0x19,
|
143
|
+
<b>kb0</b> = 0x1d,
|
144
|
+
<br>
|
145
|
+
<b>kbTab</b> = 0x30,
|
146
|
+
<b>kbReturn</b> = 0x24,
|
147
|
+
<b>kbSpace</b> = 0x31,
|
148
|
+
<b>kbLeftShift</b> = 0x38,
|
149
|
+
<br>
|
150
|
+
<b>kbRightShift</b> = 0x3c,
|
151
|
+
<b>kbLeftControl</b> = 0x3b,
|
152
|
+
<b>kbRightControl</b> = 0x3e,
|
153
|
+
<b>kbLeftAlt</b> = 0x3a,
|
154
|
+
<br>
|
155
|
+
<b>kbRightAlt</b> = 0x3d,
|
156
|
+
<b>kbLeftMeta</b> = 0x37,
|
157
|
+
<b>kbRightMeta</b> = 0x36,
|
158
|
+
<b>kbBackspace</b> = 0x33,
|
159
|
+
<br>
|
160
|
+
<b>kbLeft</b> = 0x7b,
|
161
|
+
<b>kbRight</b> = 0x7c,
|
162
|
+
<b>kbUp</b> = 0x7e,
|
163
|
+
<b>kbDown</b> = 0x7d,
|
164
|
+
<br>
|
165
|
+
<b>kbHome</b> = 0x73,
|
166
|
+
<b>kbEnd</b> = 0x77,
|
167
|
+
<b>kbInsert</b> = 0x72,
|
168
|
+
<b>kbDelete</b> = 0x75,
|
169
|
+
<br>
|
170
|
+
<b>kbPageUp</b> = 0x74,
|
171
|
+
<b>kbPageDown</b> = 0x79,
|
172
|
+
<b>kbEnter</b> = 0x4c,
|
173
|
+
<b>kbNumpad1</b> = 0x53,
|
174
|
+
<br>
|
175
|
+
<b>kbNumpad2</b> = 0x54,
|
176
|
+
<b>kbNumpad3</b> = 0x55,
|
177
|
+
<b>kbNumpad4</b> = 0x56,
|
178
|
+
<b>kbNumpad5</b> = 0x57,
|
179
|
+
<br>
|
180
|
+
<b>kbNumpad6</b> = 0x58,
|
181
|
+
<b>kbNumpad7</b> = 0x59,
|
182
|
+
<b>kbNumpad8</b> = 0x5b,
|
183
|
+
<b>kbNumpad9</b> = 0x5c,
|
184
|
+
<br>
|
185
|
+
<b>kbNumpad0</b> = 0x52,
|
186
|
+
<b>kbNumpadAdd</b> = 0x45,
|
187
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
188
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
189
|
+
<br>
|
190
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
191
|
+
<b>kbRangeEnd</b> = 0xffff,
|
192
|
+
<b>msRangeBegin</b>,
|
193
|
+
<b>msLeft</b> = msRangeBegin,
|
194
|
+
<br>
|
195
|
+
<b>msRight</b>,
|
196
|
+
<b>msMiddle</b>,
|
197
|
+
<b>msWheelUp</b>,
|
198
|
+
<b>msWheelDown</b>,
|
199
|
+
<br>
|
200
|
+
<b>msRangeEnd</b>,
|
201
|
+
<b>gpRangeBegin</b>,
|
202
|
+
<b>gpLeft</b> = gpRangeBegin,
|
203
|
+
<b>gpRight</b>,
|
204
|
+
<br>
|
205
|
+
<b>gpUp</b>,
|
206
|
+
<b>gpDown</b>,
|
207
|
+
<b>gpButton0</b>,
|
208
|
+
<b>gpButton1</b>,
|
209
|
+
<br>
|
210
|
+
<b>gpButton2</b>,
|
211
|
+
<b>gpButton3</b>,
|
212
|
+
<b>gpButton4</b>,
|
213
|
+
<b>gpButton5</b>,
|
214
|
+
<br>
|
215
|
+
<b>gpButton6</b>,
|
216
|
+
<b>gpButton7</b>,
|
217
|
+
<b>gpButton8</b>,
|
218
|
+
<b>gpButton9</b>,
|
219
|
+
<br>
|
220
|
+
<b>gpButton10</b>,
|
221
|
+
<b>gpButton11</b>,
|
222
|
+
<b>gpButton12</b>,
|
223
|
+
<b>gpButton13</b>,
|
224
|
+
<br>
|
225
|
+
<b>gpButton14</b>,
|
226
|
+
<b>gpButton15</b>,
|
227
|
+
<b>gpRangeEnd</b> = gpButton15,
|
228
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
229
|
+
<br>
|
230
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
231
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
232
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
233
|
+
<b>noButton</b> = 0xffffffff,
|
234
|
+
<br>
|
235
|
+
<b>kbRangeBegin</b> = 0x01,
|
236
|
+
<b>kbEscape</b> = 0x35,
|
237
|
+
<b>kbF1</b> = 0x7a,
|
238
|
+
<b>kbF2</b> = 0x78,
|
239
|
+
<br>
|
240
|
+
<b>kbF3</b> = 0x63,
|
241
|
+
<b>kbF4</b> = 0x76,
|
242
|
+
<b>kbF5</b> = 0x60,
|
243
|
+
<b>kbF6</b> = 0x61,
|
244
|
+
<br>
|
245
|
+
<b>kbF7</b> = 0x62,
|
246
|
+
<b>kbF8</b> = 0x64,
|
247
|
+
<b>kbF9</b> = 0x65,
|
248
|
+
<b>kbF10</b> = 0x6d,
|
249
|
+
<br>
|
250
|
+
<b>kbF11</b> = 0x67,
|
251
|
+
<b>kbF12</b> = 0x6f,
|
252
|
+
<b>kb0</b> = 0x1d,
|
253
|
+
<b>kb1</b> = 0x12,
|
254
|
+
<br>
|
255
|
+
<b>kb2</b> = 0x13,
|
256
|
+
<b>kb3</b> = 0x14,
|
257
|
+
<b>kb4</b> = 0x15,
|
258
|
+
<b>kb5</b> = 0x17,
|
259
|
+
<br>
|
260
|
+
<b>kb6</b> = 0x16,
|
261
|
+
<b>kb7</b> = 0x1a,
|
262
|
+
<b>kb8</b> = 0x1c,
|
263
|
+
<b>kb9</b> = 0x19,
|
264
|
+
<br>
|
265
|
+
<b>kbTab</b> = 0x30,
|
266
|
+
<b>kbReturn</b> = 0x24,
|
267
|
+
<b>kbSpace</b> = 0x31,
|
268
|
+
<b>kbLeftShift</b> = 0x38,
|
269
|
+
<br>
|
270
|
+
<b>kbRightShift</b> = 0x3c,
|
271
|
+
<b>kbLeftControl</b> = 0x3b,
|
272
|
+
<b>kbRightControl</b> = 0x3e,
|
273
|
+
<b>kbLeftAlt</b> = 0x3a,
|
274
|
+
<br>
|
275
|
+
<b>kbRightAlt</b> = 0x3d,
|
276
|
+
<b>kbLeftMeta</b> = 0x37,
|
277
|
+
<b>kbRightMeta</b> = 0x36,
|
278
|
+
<b>kbBackspace</b> = 0x33,
|
279
|
+
<br>
|
280
|
+
<b>kbLeft</b> = 0x7b,
|
281
|
+
<b>kbRight</b> = 0x7c,
|
282
|
+
<b>kbUp</b> = 0x7e,
|
283
|
+
<b>kbDown</b> = 0x7d,
|
284
|
+
<br>
|
285
|
+
<b>kbHome</b> = 0x73,
|
286
|
+
<b>kbEnd</b> = 0x77,
|
287
|
+
<b>kbInsert</b> = 0x72,
|
288
|
+
<b>kbDelete</b> = 0x75,
|
289
|
+
<br>
|
290
|
+
<b>kbPageUp</b> = 0x74,
|
291
|
+
<b>kbPageDown</b> = 0x79,
|
292
|
+
<b>kbEnter</b> = 0x4c,
|
293
|
+
<b>kbNumpad0</b> = 0x52,
|
294
|
+
<br>
|
295
|
+
<b>kbNumpad1</b> = 0x53,
|
296
|
+
<b>kbNumpad2</b> = 0x54,
|
297
|
+
<b>kbNumpad3</b> = 0x55,
|
298
|
+
<b>kbNumpad4</b> = 0x56,
|
299
|
+
<br>
|
300
|
+
<b>kbNumpad5</b> = 0x57,
|
301
|
+
<b>kbNumpad6</b> = 0x58,
|
302
|
+
<b>kbNumpad7</b> = 0x59,
|
303
|
+
<b>kbNumpad8</b> = 0x5b,
|
304
|
+
<br>
|
305
|
+
<b>kbNumpad9</b> = 0x5c,
|
306
|
+
<b>kbNumpadAdd</b> = 0x45,
|
307
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
308
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
309
|
+
<br>
|
310
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
311
|
+
<b>kbRangeEnd</b> = 0xffff,
|
312
|
+
<b>msRangeBegin</b>,
|
313
|
+
<b>msLeft</b> = msRangeBegin,
|
314
|
+
<br>
|
315
|
+
<b>msRight</b>,
|
316
|
+
<b>msMiddle</b>,
|
317
|
+
<b>msWheelUp</b>,
|
318
|
+
<b>msWheelDown</b>,
|
319
|
+
<br>
|
320
|
+
<b>msRangeEnd</b>,
|
321
|
+
<b>gpRangeBegin</b>,
|
322
|
+
<b>gpLeft</b> = gpRangeBegin,
|
323
|
+
<b>gpRight</b>,
|
324
|
+
<br>
|
325
|
+
<b>gpUp</b>,
|
326
|
+
<b>gpDown</b>,
|
327
|
+
<b>gpButton0</b>,
|
328
|
+
<b>gpButton1</b>,
|
329
|
+
<br>
|
330
|
+
<b>gpButton2</b>,
|
331
|
+
<b>gpButton3</b>,
|
332
|
+
<b>gpButton4</b>,
|
333
|
+
<b>gpButton5</b>,
|
334
|
+
<br>
|
335
|
+
<b>gpButton6</b>,
|
336
|
+
<b>gpButton7</b>,
|
337
|
+
<b>gpButton8</b>,
|
338
|
+
<b>gpButton9</b>,
|
339
|
+
<br>
|
340
|
+
<b>gpButton10</b>,
|
341
|
+
<b>gpButton11</b>,
|
342
|
+
<b>gpButton12</b>,
|
343
|
+
<b>gpButton13</b>,
|
344
|
+
<br>
|
345
|
+
<b>gpButton14</b>,
|
346
|
+
<b>gpButton15</b>,
|
347
|
+
<b>gpRangeEnd</b> = gpButton15,
|
348
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
349
|
+
<br>
|
350
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
351
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
352
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
353
|
+
<b>noButton</b> = 0xffffffff,
|
354
|
+
<br>
|
355
|
+
<b>kbRangeBegin</b> = 0x01,
|
356
|
+
<b>kbEscape</b> = 0x35,
|
357
|
+
<b>kbF1</b> = 0x7a,
|
358
|
+
<b>kbF2</b> = 0x78,
|
359
|
+
<br>
|
360
|
+
<b>kbF3</b> = 0x63,
|
361
|
+
<b>kbF4</b> = 0x76,
|
362
|
+
<b>kbF5</b> = 0x60,
|
363
|
+
<b>kbF6</b> = 0x61,
|
364
|
+
<br>
|
365
|
+
<b>kbF7</b> = 0x62,
|
366
|
+
<b>kbF8</b> = 0x64,
|
367
|
+
<b>kbF9</b> = 0x65,
|
368
|
+
<b>kbF10</b> = 0x6d,
|
369
|
+
<br>
|
370
|
+
<b>kbF11</b> = 0x67,
|
371
|
+
<b>kbF12</b> = 0x6f,
|
372
|
+
<b>kb1</b> = 0x12,
|
373
|
+
<b>kb2</b> = 0x13,
|
374
|
+
<br>
|
375
|
+
<b>kb3</b> = 0x14,
|
376
|
+
<b>kb4</b> = 0x15,
|
377
|
+
<b>kb5</b> = 0x17,
|
378
|
+
<b>kb6</b> = 0x16,
|
379
|
+
<br>
|
380
|
+
<b>kb7</b> = 0x1a,
|
381
|
+
<b>kb8</b> = 0x1c,
|
382
|
+
<b>kb9</b> = 0x19,
|
383
|
+
<b>kb0</b> = 0x1d,
|
384
|
+
<br>
|
385
|
+
<b>kbTab</b> = 0x30,
|
386
|
+
<b>kbReturn</b> = 0x24,
|
387
|
+
<b>kbSpace</b> = 0x31,
|
388
|
+
<b>kbLeftShift</b> = 0x38,
|
389
|
+
<br>
|
390
|
+
<b>kbRightShift</b> = 0x3c,
|
391
|
+
<b>kbLeftControl</b> = 0x3b,
|
392
|
+
<b>kbRightControl</b> = 0x3e,
|
393
|
+
<b>kbLeftAlt</b> = 0x3a,
|
394
|
+
<br>
|
395
|
+
<b>kbRightAlt</b> = 0x3d,
|
396
|
+
<b>kbLeftMeta</b> = 0x37,
|
397
|
+
<b>kbRightMeta</b> = 0x36,
|
398
|
+
<b>kbBackspace</b> = 0x33,
|
399
|
+
<br>
|
400
|
+
<b>kbLeft</b> = 0x7b,
|
401
|
+
<b>kbRight</b> = 0x7c,
|
402
|
+
<b>kbUp</b> = 0x7e,
|
403
|
+
<b>kbDown</b> = 0x7d,
|
404
|
+
<br>
|
405
|
+
<b>kbHome</b> = 0x73,
|
406
|
+
<b>kbEnd</b> = 0x77,
|
407
|
+
<b>kbInsert</b> = 0x72,
|
408
|
+
<b>kbDelete</b> = 0x75,
|
409
|
+
<br>
|
410
|
+
<b>kbPageUp</b> = 0x74,
|
411
|
+
<b>kbPageDown</b> = 0x79,
|
412
|
+
<b>kbEnter</b> = 0x4c,
|
413
|
+
<b>kbNumpad1</b> = 0x53,
|
414
|
+
<br>
|
415
|
+
<b>kbNumpad2</b> = 0x54,
|
416
|
+
<b>kbNumpad3</b> = 0x55,
|
417
|
+
<b>kbNumpad4</b> = 0x56,
|
418
|
+
<b>kbNumpad5</b> = 0x57,
|
419
|
+
<br>
|
420
|
+
<b>kbNumpad6</b> = 0x58,
|
421
|
+
<b>kbNumpad7</b> = 0x59,
|
422
|
+
<b>kbNumpad8</b> = 0x5b,
|
423
|
+
<b>kbNumpad9</b> = 0x5c,
|
424
|
+
<br>
|
425
|
+
<b>kbNumpad0</b> = 0x52,
|
426
|
+
<b>kbNumpadAdd</b> = 0x45,
|
427
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
428
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
429
|
+
<br>
|
430
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
431
|
+
<b>kbRangeEnd</b> = 0xffff,
|
432
|
+
<b>msRangeBegin</b>,
|
433
|
+
<b>msLeft</b> = msRangeBegin,
|
434
|
+
<br>
|
435
|
+
<b>msRight</b>,
|
436
|
+
<b>msMiddle</b>,
|
437
|
+
<b>msWheelUp</b>,
|
438
|
+
<b>msWheelDown</b>,
|
439
|
+
<br>
|
440
|
+
<b>msRangeEnd</b>,
|
441
|
+
<b>gpRangeBegin</b>,
|
442
|
+
<b>gpLeft</b> = gpRangeBegin,
|
443
|
+
<b>gpRight</b>,
|
444
|
+
<br>
|
445
|
+
<b>gpUp</b>,
|
446
|
+
<b>gpDown</b>,
|
447
|
+
<b>gpButton0</b>,
|
448
|
+
<b>gpButton1</b>,
|
449
|
+
<br>
|
450
|
+
<b>gpButton2</b>,
|
451
|
+
<b>gpButton3</b>,
|
452
|
+
<b>gpButton4</b>,
|
453
|
+
<b>gpButton5</b>,
|
454
|
+
<br>
|
455
|
+
<b>gpButton6</b>,
|
456
|
+
<b>gpButton7</b>,
|
457
|
+
<b>gpButton8</b>,
|
458
|
+
<b>gpButton9</b>,
|
459
|
+
<br>
|
460
|
+
<b>gpButton10</b>,
|
461
|
+
<b>gpButton11</b>,
|
462
|
+
<b>gpButton12</b>,
|
463
|
+
<b>gpButton13</b>,
|
464
|
+
<br>
|
465
|
+
<b>gpButton14</b>,
|
466
|
+
<b>gpButton15</b>,
|
467
|
+
<b>gpRangeEnd</b> = gpButton15,
|
468
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
469
|
+
<br>
|
470
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
471
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
472
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
473
|
+
<b>noButton</b> = 0xffffffff
|
474
|
+
<br>
|
475
|
+
}</td></tr>
|
476
|
+
|
477
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>ButtonName</b> { <br>
|
478
|
+
<b>kbRangeBegin</b> = 0x01,
|
479
|
+
<b>kbEscape</b> = 0x35,
|
480
|
+
<b>kbF1</b> = 0x7a,
|
481
|
+
<b>kbF2</b> = 0x78,
|
482
|
+
<br>
|
483
|
+
<b>kbF3</b> = 0x63,
|
484
|
+
<b>kbF4</b> = 0x76,
|
485
|
+
<b>kbF5</b> = 0x60,
|
486
|
+
<b>kbF6</b> = 0x61,
|
487
|
+
<br>
|
488
|
+
<b>kbF7</b> = 0x62,
|
489
|
+
<b>kbF8</b> = 0x64,
|
490
|
+
<b>kbF9</b> = 0x65,
|
491
|
+
<b>kbF10</b> = 0x6d,
|
492
|
+
<br>
|
493
|
+
<b>kbF11</b> = 0x67,
|
494
|
+
<b>kbF12</b> = 0x6f,
|
495
|
+
<b>kb1</b> = 0x12,
|
496
|
+
<b>kb2</b> = 0x13,
|
497
|
+
<br>
|
498
|
+
<b>kb3</b> = 0x14,
|
499
|
+
<b>kb4</b> = 0x15,
|
500
|
+
<b>kb5</b> = 0x17,
|
501
|
+
<b>kb6</b> = 0x16,
|
502
|
+
<br>
|
503
|
+
<b>kb7</b> = 0x1a,
|
504
|
+
<b>kb8</b> = 0x1c,
|
505
|
+
<b>kb9</b> = 0x19,
|
506
|
+
<b>kb0</b> = 0x1d,
|
507
|
+
<br>
|
508
|
+
<b>kbTab</b> = 0x30,
|
509
|
+
<b>kbReturn</b> = 0x24,
|
510
|
+
<b>kbSpace</b> = 0x31,
|
511
|
+
<b>kbLeftShift</b> = 0x38,
|
512
|
+
<br>
|
513
|
+
<b>kbRightShift</b> = 0x3c,
|
514
|
+
<b>kbLeftControl</b> = 0x3b,
|
515
|
+
<b>kbRightControl</b> = 0x3e,
|
516
|
+
<b>kbLeftAlt</b> = 0x3a,
|
517
|
+
<br>
|
518
|
+
<b>kbRightAlt</b> = 0x3d,
|
519
|
+
<b>kbLeftMeta</b> = 0x37,
|
520
|
+
<b>kbRightMeta</b> = 0x36,
|
521
|
+
<b>kbBackspace</b> = 0x33,
|
522
|
+
<br>
|
523
|
+
<b>kbLeft</b> = 0x7b,
|
524
|
+
<b>kbRight</b> = 0x7c,
|
525
|
+
<b>kbUp</b> = 0x7e,
|
526
|
+
<b>kbDown</b> = 0x7d,
|
527
|
+
<br>
|
528
|
+
<b>kbHome</b> = 0x73,
|
529
|
+
<b>kbEnd</b> = 0x77,
|
530
|
+
<b>kbInsert</b> = 0x72,
|
531
|
+
<b>kbDelete</b> = 0x75,
|
532
|
+
<br>
|
533
|
+
<b>kbPageUp</b> = 0x74,
|
534
|
+
<b>kbPageDown</b> = 0x79,
|
535
|
+
<b>kbEnter</b> = 0x4c,
|
536
|
+
<b>kbNumpad1</b> = 0x53,
|
537
|
+
<br>
|
538
|
+
<b>kbNumpad2</b> = 0x54,
|
539
|
+
<b>kbNumpad3</b> = 0x55,
|
540
|
+
<b>kbNumpad4</b> = 0x56,
|
541
|
+
<b>kbNumpad5</b> = 0x57,
|
542
|
+
<br>
|
543
|
+
<b>kbNumpad6</b> = 0x58,
|
544
|
+
<b>kbNumpad7</b> = 0x59,
|
545
|
+
<b>kbNumpad8</b> = 0x5b,
|
546
|
+
<b>kbNumpad9</b> = 0x5c,
|
547
|
+
<br>
|
548
|
+
<b>kbNumpad0</b> = 0x52,
|
549
|
+
<b>kbNumpadAdd</b> = 0x45,
|
550
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
551
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
552
|
+
<br>
|
553
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
554
|
+
<b>kbRangeEnd</b> = 0xffff,
|
555
|
+
<b>msRangeBegin</b>,
|
556
|
+
<b>msLeft</b> = msRangeBegin,
|
557
|
+
<br>
|
558
|
+
<b>msRight</b>,
|
559
|
+
<b>msMiddle</b>,
|
560
|
+
<b>msWheelUp</b>,
|
561
|
+
<b>msWheelDown</b>,
|
562
|
+
<br>
|
563
|
+
<b>msRangeEnd</b>,
|
564
|
+
<b>gpRangeBegin</b>,
|
565
|
+
<b>gpLeft</b> = gpRangeBegin,
|
566
|
+
<b>gpRight</b>,
|
567
|
+
<br>
|
568
|
+
<b>gpUp</b>,
|
569
|
+
<b>gpDown</b>,
|
570
|
+
<b>gpButton0</b>,
|
571
|
+
<b>gpButton1</b>,
|
572
|
+
<br>
|
573
|
+
<b>gpButton2</b>,
|
574
|
+
<b>gpButton3</b>,
|
575
|
+
<b>gpButton4</b>,
|
576
|
+
<b>gpButton5</b>,
|
577
|
+
<br>
|
578
|
+
<b>gpButton6</b>,
|
579
|
+
<b>gpButton7</b>,
|
580
|
+
<b>gpButton8</b>,
|
581
|
+
<b>gpButton9</b>,
|
582
|
+
<br>
|
583
|
+
<b>gpButton10</b>,
|
584
|
+
<b>gpButton11</b>,
|
585
|
+
<b>gpButton12</b>,
|
586
|
+
<b>gpButton13</b>,
|
587
|
+
<br>
|
588
|
+
<b>gpButton14</b>,
|
589
|
+
<b>gpButton15</b>,
|
590
|
+
<b>gpRangeEnd</b> = gpButton15,
|
591
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
592
|
+
<br>
|
593
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
594
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
595
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
596
|
+
<b>noButton</b> = 0xffffffff,
|
597
|
+
<br>
|
598
|
+
<b>kbRangeBegin</b> = 0x01,
|
599
|
+
<b>kbEscape</b> = 0x35,
|
600
|
+
<b>kbF1</b> = 0x7a,
|
601
|
+
<b>kbF2</b> = 0x78,
|
602
|
+
<br>
|
603
|
+
<b>kbF3</b> = 0x63,
|
604
|
+
<b>kbF4</b> = 0x76,
|
605
|
+
<b>kbF5</b> = 0x60,
|
606
|
+
<b>kbF6</b> = 0x61,
|
607
|
+
<br>
|
608
|
+
<b>kbF7</b> = 0x62,
|
609
|
+
<b>kbF8</b> = 0x64,
|
610
|
+
<b>kbF9</b> = 0x65,
|
611
|
+
<b>kbF10</b> = 0x6d,
|
612
|
+
<br>
|
613
|
+
<b>kbF11</b> = 0x67,
|
614
|
+
<b>kbF12</b> = 0x6f,
|
615
|
+
<b>kb0</b> = 0x1d,
|
616
|
+
<b>kb1</b> = 0x12,
|
617
|
+
<br>
|
618
|
+
<b>kb2</b> = 0x13,
|
619
|
+
<b>kb3</b> = 0x14,
|
620
|
+
<b>kb4</b> = 0x15,
|
621
|
+
<b>kb5</b> = 0x17,
|
622
|
+
<br>
|
623
|
+
<b>kb6</b> = 0x16,
|
624
|
+
<b>kb7</b> = 0x1a,
|
625
|
+
<b>kb8</b> = 0x1c,
|
626
|
+
<b>kb9</b> = 0x19,
|
627
|
+
<br>
|
628
|
+
<b>kbTab</b> = 0x30,
|
629
|
+
<b>kbReturn</b> = 0x24,
|
630
|
+
<b>kbSpace</b> = 0x31,
|
631
|
+
<b>kbLeftShift</b> = 0x38,
|
632
|
+
<br>
|
633
|
+
<b>kbRightShift</b> = 0x3c,
|
634
|
+
<b>kbLeftControl</b> = 0x3b,
|
635
|
+
<b>kbRightControl</b> = 0x3e,
|
636
|
+
<b>kbLeftAlt</b> = 0x3a,
|
637
|
+
<br>
|
638
|
+
<b>kbRightAlt</b> = 0x3d,
|
639
|
+
<b>kbLeftMeta</b> = 0x37,
|
640
|
+
<b>kbRightMeta</b> = 0x36,
|
641
|
+
<b>kbBackspace</b> = 0x33,
|
642
|
+
<br>
|
643
|
+
<b>kbLeft</b> = 0x7b,
|
644
|
+
<b>kbRight</b> = 0x7c,
|
645
|
+
<b>kbUp</b> = 0x7e,
|
646
|
+
<b>kbDown</b> = 0x7d,
|
647
|
+
<br>
|
648
|
+
<b>kbHome</b> = 0x73,
|
649
|
+
<b>kbEnd</b> = 0x77,
|
650
|
+
<b>kbInsert</b> = 0x72,
|
651
|
+
<b>kbDelete</b> = 0x75,
|
652
|
+
<br>
|
653
|
+
<b>kbPageUp</b> = 0x74,
|
654
|
+
<b>kbPageDown</b> = 0x79,
|
655
|
+
<b>kbEnter</b> = 0x4c,
|
656
|
+
<b>kbNumpad0</b> = 0x52,
|
657
|
+
<br>
|
658
|
+
<b>kbNumpad1</b> = 0x53,
|
659
|
+
<b>kbNumpad2</b> = 0x54,
|
660
|
+
<b>kbNumpad3</b> = 0x55,
|
661
|
+
<b>kbNumpad4</b> = 0x56,
|
662
|
+
<br>
|
663
|
+
<b>kbNumpad5</b> = 0x57,
|
664
|
+
<b>kbNumpad6</b> = 0x58,
|
665
|
+
<b>kbNumpad7</b> = 0x59,
|
666
|
+
<b>kbNumpad8</b> = 0x5b,
|
667
|
+
<br>
|
668
|
+
<b>kbNumpad9</b> = 0x5c,
|
669
|
+
<b>kbNumpadAdd</b> = 0x45,
|
670
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
671
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
672
|
+
<br>
|
673
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
674
|
+
<b>kbRangeEnd</b> = 0xffff,
|
675
|
+
<b>msRangeBegin</b>,
|
676
|
+
<b>msLeft</b> = msRangeBegin,
|
677
|
+
<br>
|
678
|
+
<b>msRight</b>,
|
679
|
+
<b>msMiddle</b>,
|
680
|
+
<b>msWheelUp</b>,
|
681
|
+
<b>msWheelDown</b>,
|
682
|
+
<br>
|
683
|
+
<b>msRangeEnd</b>,
|
684
|
+
<b>gpRangeBegin</b>,
|
685
|
+
<b>gpLeft</b> = gpRangeBegin,
|
686
|
+
<b>gpRight</b>,
|
687
|
+
<br>
|
688
|
+
<b>gpUp</b>,
|
689
|
+
<b>gpDown</b>,
|
690
|
+
<b>gpButton0</b>,
|
691
|
+
<b>gpButton1</b>,
|
692
|
+
<br>
|
693
|
+
<b>gpButton2</b>,
|
694
|
+
<b>gpButton3</b>,
|
695
|
+
<b>gpButton4</b>,
|
696
|
+
<b>gpButton5</b>,
|
697
|
+
<br>
|
698
|
+
<b>gpButton6</b>,
|
699
|
+
<b>gpButton7</b>,
|
700
|
+
<b>gpButton8</b>,
|
701
|
+
<b>gpButton9</b>,
|
702
|
+
<br>
|
703
|
+
<b>gpButton10</b>,
|
704
|
+
<b>gpButton11</b>,
|
705
|
+
<b>gpButton12</b>,
|
706
|
+
<b>gpButton13</b>,
|
707
|
+
<br>
|
708
|
+
<b>gpButton14</b>,
|
709
|
+
<b>gpButton15</b>,
|
710
|
+
<b>gpRangeEnd</b> = gpButton15,
|
711
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
712
|
+
<br>
|
713
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
714
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
715
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
716
|
+
<b>noButton</b> = 0xffffffff,
|
717
|
+
<br>
|
718
|
+
<b>kbRangeBegin</b> = 0x01,
|
719
|
+
<b>kbEscape</b> = 0x35,
|
720
|
+
<b>kbF1</b> = 0x7a,
|
721
|
+
<b>kbF2</b> = 0x78,
|
722
|
+
<br>
|
723
|
+
<b>kbF3</b> = 0x63,
|
724
|
+
<b>kbF4</b> = 0x76,
|
725
|
+
<b>kbF5</b> = 0x60,
|
726
|
+
<b>kbF6</b> = 0x61,
|
727
|
+
<br>
|
728
|
+
<b>kbF7</b> = 0x62,
|
729
|
+
<b>kbF8</b> = 0x64,
|
730
|
+
<b>kbF9</b> = 0x65,
|
731
|
+
<b>kbF10</b> = 0x6d,
|
732
|
+
<br>
|
733
|
+
<b>kbF11</b> = 0x67,
|
734
|
+
<b>kbF12</b> = 0x6f,
|
735
|
+
<b>kb1</b> = 0x12,
|
736
|
+
<b>kb2</b> = 0x13,
|
737
|
+
<br>
|
738
|
+
<b>kb3</b> = 0x14,
|
739
|
+
<b>kb4</b> = 0x15,
|
740
|
+
<b>kb5</b> = 0x17,
|
741
|
+
<b>kb6</b> = 0x16,
|
742
|
+
<br>
|
743
|
+
<b>kb7</b> = 0x1a,
|
744
|
+
<b>kb8</b> = 0x1c,
|
745
|
+
<b>kb9</b> = 0x19,
|
746
|
+
<b>kb0</b> = 0x1d,
|
747
|
+
<br>
|
748
|
+
<b>kbTab</b> = 0x30,
|
749
|
+
<b>kbReturn</b> = 0x24,
|
750
|
+
<b>kbSpace</b> = 0x31,
|
751
|
+
<b>kbLeftShift</b> = 0x38,
|
752
|
+
<br>
|
753
|
+
<b>kbRightShift</b> = 0x3c,
|
754
|
+
<b>kbLeftControl</b> = 0x3b,
|
755
|
+
<b>kbRightControl</b> = 0x3e,
|
756
|
+
<b>kbLeftAlt</b> = 0x3a,
|
757
|
+
<br>
|
758
|
+
<b>kbRightAlt</b> = 0x3d,
|
759
|
+
<b>kbLeftMeta</b> = 0x37,
|
760
|
+
<b>kbRightMeta</b> = 0x36,
|
761
|
+
<b>kbBackspace</b> = 0x33,
|
762
|
+
<br>
|
763
|
+
<b>kbLeft</b> = 0x7b,
|
764
|
+
<b>kbRight</b> = 0x7c,
|
765
|
+
<b>kbUp</b> = 0x7e,
|
766
|
+
<b>kbDown</b> = 0x7d,
|
767
|
+
<br>
|
768
|
+
<b>kbHome</b> = 0x73,
|
769
|
+
<b>kbEnd</b> = 0x77,
|
770
|
+
<b>kbInsert</b> = 0x72,
|
771
|
+
<b>kbDelete</b> = 0x75,
|
772
|
+
<br>
|
773
|
+
<b>kbPageUp</b> = 0x74,
|
774
|
+
<b>kbPageDown</b> = 0x79,
|
775
|
+
<b>kbEnter</b> = 0x4c,
|
776
|
+
<b>kbNumpad1</b> = 0x53,
|
777
|
+
<br>
|
778
|
+
<b>kbNumpad2</b> = 0x54,
|
779
|
+
<b>kbNumpad3</b> = 0x55,
|
780
|
+
<b>kbNumpad4</b> = 0x56,
|
781
|
+
<b>kbNumpad5</b> = 0x57,
|
782
|
+
<br>
|
783
|
+
<b>kbNumpad6</b> = 0x58,
|
784
|
+
<b>kbNumpad7</b> = 0x59,
|
785
|
+
<b>kbNumpad8</b> = 0x5b,
|
786
|
+
<b>kbNumpad9</b> = 0x5c,
|
787
|
+
<br>
|
788
|
+
<b>kbNumpad0</b> = 0x52,
|
789
|
+
<b>kbNumpadAdd</b> = 0x45,
|
790
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
791
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
792
|
+
<br>
|
793
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
794
|
+
<b>kbRangeEnd</b> = 0xffff,
|
795
|
+
<b>msRangeBegin</b>,
|
796
|
+
<b>msLeft</b> = msRangeBegin,
|
797
|
+
<br>
|
798
|
+
<b>msRight</b>,
|
799
|
+
<b>msMiddle</b>,
|
800
|
+
<b>msWheelUp</b>,
|
801
|
+
<b>msWheelDown</b>,
|
802
|
+
<br>
|
803
|
+
<b>msRangeEnd</b>,
|
804
|
+
<b>gpRangeBegin</b>,
|
805
|
+
<b>gpLeft</b> = gpRangeBegin,
|
806
|
+
<b>gpRight</b>,
|
807
|
+
<br>
|
808
|
+
<b>gpUp</b>,
|
809
|
+
<b>gpDown</b>,
|
810
|
+
<b>gpButton0</b>,
|
811
|
+
<b>gpButton1</b>,
|
812
|
+
<br>
|
813
|
+
<b>gpButton2</b>,
|
814
|
+
<b>gpButton3</b>,
|
815
|
+
<b>gpButton4</b>,
|
816
|
+
<b>gpButton5</b>,
|
817
|
+
<br>
|
818
|
+
<b>gpButton6</b>,
|
819
|
+
<b>gpButton7</b>,
|
820
|
+
<b>gpButton8</b>,
|
821
|
+
<b>gpButton9</b>,
|
822
|
+
<br>
|
823
|
+
<b>gpButton10</b>,
|
824
|
+
<b>gpButton11</b>,
|
825
|
+
<b>gpButton12</b>,
|
826
|
+
<b>gpButton13</b>,
|
827
|
+
<br>
|
828
|
+
<b>gpButton14</b>,
|
829
|
+
<b>gpButton15</b>,
|
830
|
+
<b>gpRangeEnd</b> = gpButton15,
|
831
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
832
|
+
<br>
|
833
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
834
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
835
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
836
|
+
<b>noButton</b> = 0xffffffff
|
837
|
+
<br>
|
838
|
+
}</td></tr>
|
839
|
+
|
840
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368">ButtonName</a> { <br>
|
841
|
+
<b>kbRangeBegin</b> = 0x01,
|
842
|
+
<b>kbEscape</b> = 0x35,
|
843
|
+
<b>kbF1</b> = 0x7a,
|
844
|
+
<b>kbF2</b> = 0x78,
|
845
|
+
<br>
|
846
|
+
<b>kbF3</b> = 0x63,
|
847
|
+
<b>kbF4</b> = 0x76,
|
848
|
+
<b>kbF5</b> = 0x60,
|
849
|
+
<b>kbF6</b> = 0x61,
|
850
|
+
<br>
|
851
|
+
<b>kbF7</b> = 0x62,
|
852
|
+
<b>kbF8</b> = 0x64,
|
853
|
+
<b>kbF9</b> = 0x65,
|
854
|
+
<b>kbF10</b> = 0x6d,
|
855
|
+
<br>
|
856
|
+
<b>kbF11</b> = 0x67,
|
857
|
+
<b>kbF12</b> = 0x6f,
|
858
|
+
<b>kb1</b> = 0x12,
|
859
|
+
<b>kb2</b> = 0x13,
|
860
|
+
<br>
|
861
|
+
<b>kb3</b> = 0x14,
|
862
|
+
<b>kb4</b> = 0x15,
|
863
|
+
<b>kb5</b> = 0x17,
|
864
|
+
<b>kb6</b> = 0x16,
|
865
|
+
<br>
|
866
|
+
<b>kb7</b> = 0x1a,
|
867
|
+
<b>kb8</b> = 0x1c,
|
868
|
+
<b>kb9</b> = 0x19,
|
869
|
+
<b>kb0</b> = 0x1d,
|
870
|
+
<br>
|
871
|
+
<b>kbTab</b> = 0x30,
|
872
|
+
<b>kbReturn</b> = 0x24,
|
873
|
+
<b>kbSpace</b> = 0x31,
|
874
|
+
<b>kbLeftShift</b> = 0x38,
|
875
|
+
<br>
|
876
|
+
<b>kbRightShift</b> = 0x3c,
|
877
|
+
<b>kbLeftControl</b> = 0x3b,
|
878
|
+
<b>kbRightControl</b> = 0x3e,
|
879
|
+
<b>kbLeftAlt</b> = 0x3a,
|
880
|
+
<br>
|
881
|
+
<b>kbRightAlt</b> = 0x3d,
|
882
|
+
<b>kbLeftMeta</b> = 0x37,
|
883
|
+
<b>kbRightMeta</b> = 0x36,
|
884
|
+
<b>kbBackspace</b> = 0x33,
|
885
|
+
<br>
|
886
|
+
<b>kbLeft</b> = 0x7b,
|
887
|
+
<b>kbRight</b> = 0x7c,
|
888
|
+
<b>kbUp</b> = 0x7e,
|
889
|
+
<b>kbDown</b> = 0x7d,
|
890
|
+
<br>
|
891
|
+
<b>kbHome</b> = 0x73,
|
892
|
+
<b>kbEnd</b> = 0x77,
|
893
|
+
<b>kbInsert</b> = 0x72,
|
894
|
+
<b>kbDelete</b> = 0x75,
|
895
|
+
<br>
|
896
|
+
<b>kbPageUp</b> = 0x74,
|
897
|
+
<b>kbPageDown</b> = 0x79,
|
898
|
+
<b>kbEnter</b> = 0x4c,
|
899
|
+
<b>kbNumpad1</b> = 0x53,
|
900
|
+
<br>
|
901
|
+
<b>kbNumpad2</b> = 0x54,
|
902
|
+
<b>kbNumpad3</b> = 0x55,
|
903
|
+
<b>kbNumpad4</b> = 0x56,
|
904
|
+
<b>kbNumpad5</b> = 0x57,
|
905
|
+
<br>
|
906
|
+
<b>kbNumpad6</b> = 0x58,
|
907
|
+
<b>kbNumpad7</b> = 0x59,
|
908
|
+
<b>kbNumpad8</b> = 0x5b,
|
909
|
+
<b>kbNumpad9</b> = 0x5c,
|
910
|
+
<br>
|
911
|
+
<b>kbNumpad0</b> = 0x52,
|
912
|
+
<b>kbNumpadAdd</b> = 0x45,
|
913
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
914
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
915
|
+
<br>
|
916
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
917
|
+
<b>kbRangeEnd</b> = 0xffff,
|
918
|
+
<b>msRangeBegin</b>,
|
919
|
+
<b>msLeft</b> = msRangeBegin,
|
920
|
+
<br>
|
921
|
+
<b>msRight</b>,
|
922
|
+
<b>msMiddle</b>,
|
923
|
+
<b>msWheelUp</b>,
|
924
|
+
<b>msWheelDown</b>,
|
925
|
+
<br>
|
926
|
+
<b>msRangeEnd</b>,
|
927
|
+
<b>gpRangeBegin</b>,
|
928
|
+
<b>gpLeft</b> = gpRangeBegin,
|
929
|
+
<b>gpRight</b>,
|
930
|
+
<br>
|
931
|
+
<b>gpUp</b>,
|
932
|
+
<b>gpDown</b>,
|
933
|
+
<b>gpButton0</b>,
|
934
|
+
<b>gpButton1</b>,
|
935
|
+
<br>
|
936
|
+
<b>gpButton2</b>,
|
937
|
+
<b>gpButton3</b>,
|
938
|
+
<b>gpButton4</b>,
|
939
|
+
<b>gpButton5</b>,
|
940
|
+
<br>
|
941
|
+
<b>gpButton6</b>,
|
942
|
+
<b>gpButton7</b>,
|
943
|
+
<b>gpButton8</b>,
|
944
|
+
<b>gpButton9</b>,
|
945
|
+
<br>
|
946
|
+
<b>gpButton10</b>,
|
947
|
+
<b>gpButton11</b>,
|
948
|
+
<b>gpButton12</b>,
|
949
|
+
<b>gpButton13</b>,
|
950
|
+
<br>
|
951
|
+
<b>gpButton14</b>,
|
952
|
+
<b>gpButton15</b>,
|
953
|
+
<b>gpRangeEnd</b> = gpButton15,
|
954
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
955
|
+
<br>
|
956
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
957
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
958
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
959
|
+
<b>noButton</b> = 0xffffffff,
|
960
|
+
<br>
|
961
|
+
<b>kbRangeBegin</b> = 0x01,
|
962
|
+
<b>kbEscape</b> = 0x35,
|
963
|
+
<b>kbF1</b> = 0x7a,
|
964
|
+
<b>kbF2</b> = 0x78,
|
965
|
+
<br>
|
966
|
+
<b>kbF3</b> = 0x63,
|
967
|
+
<b>kbF4</b> = 0x76,
|
968
|
+
<b>kbF5</b> = 0x60,
|
969
|
+
<b>kbF6</b> = 0x61,
|
970
|
+
<br>
|
971
|
+
<b>kbF7</b> = 0x62,
|
972
|
+
<b>kbF8</b> = 0x64,
|
973
|
+
<b>kbF9</b> = 0x65,
|
974
|
+
<b>kbF10</b> = 0x6d,
|
975
|
+
<br>
|
976
|
+
<b>kbF11</b> = 0x67,
|
977
|
+
<b>kbF12</b> = 0x6f,
|
978
|
+
<b>kb0</b> = 0x1d,
|
979
|
+
<b>kb1</b> = 0x12,
|
980
|
+
<br>
|
981
|
+
<b>kb2</b> = 0x13,
|
982
|
+
<b>kb3</b> = 0x14,
|
983
|
+
<b>kb4</b> = 0x15,
|
984
|
+
<b>kb5</b> = 0x17,
|
985
|
+
<br>
|
986
|
+
<b>kb6</b> = 0x16,
|
987
|
+
<b>kb7</b> = 0x1a,
|
988
|
+
<b>kb8</b> = 0x1c,
|
989
|
+
<b>kb9</b> = 0x19,
|
990
|
+
<br>
|
991
|
+
<b>kbTab</b> = 0x30,
|
992
|
+
<b>kbReturn</b> = 0x24,
|
993
|
+
<b>kbSpace</b> = 0x31,
|
994
|
+
<b>kbLeftShift</b> = 0x38,
|
995
|
+
<br>
|
996
|
+
<b>kbRightShift</b> = 0x3c,
|
997
|
+
<b>kbLeftControl</b> = 0x3b,
|
998
|
+
<b>kbRightControl</b> = 0x3e,
|
999
|
+
<b>kbLeftAlt</b> = 0x3a,
|
1000
|
+
<br>
|
1001
|
+
<b>kbRightAlt</b> = 0x3d,
|
1002
|
+
<b>kbLeftMeta</b> = 0x37,
|
1003
|
+
<b>kbRightMeta</b> = 0x36,
|
1004
|
+
<b>kbBackspace</b> = 0x33,
|
1005
|
+
<br>
|
1006
|
+
<b>kbLeft</b> = 0x7b,
|
1007
|
+
<b>kbRight</b> = 0x7c,
|
1008
|
+
<b>kbUp</b> = 0x7e,
|
1009
|
+
<b>kbDown</b> = 0x7d,
|
1010
|
+
<br>
|
1011
|
+
<b>kbHome</b> = 0x73,
|
1012
|
+
<b>kbEnd</b> = 0x77,
|
1013
|
+
<b>kbInsert</b> = 0x72,
|
1014
|
+
<b>kbDelete</b> = 0x75,
|
1015
|
+
<br>
|
1016
|
+
<b>kbPageUp</b> = 0x74,
|
1017
|
+
<b>kbPageDown</b> = 0x79,
|
1018
|
+
<b>kbEnter</b> = 0x4c,
|
1019
|
+
<b>kbNumpad0</b> = 0x52,
|
1020
|
+
<br>
|
1021
|
+
<b>kbNumpad1</b> = 0x53,
|
1022
|
+
<b>kbNumpad2</b> = 0x54,
|
1023
|
+
<b>kbNumpad3</b> = 0x55,
|
1024
|
+
<b>kbNumpad4</b> = 0x56,
|
1025
|
+
<br>
|
1026
|
+
<b>kbNumpad5</b> = 0x57,
|
1027
|
+
<b>kbNumpad6</b> = 0x58,
|
1028
|
+
<b>kbNumpad7</b> = 0x59,
|
1029
|
+
<b>kbNumpad8</b> = 0x5b,
|
1030
|
+
<br>
|
1031
|
+
<b>kbNumpad9</b> = 0x5c,
|
1032
|
+
<b>kbNumpadAdd</b> = 0x45,
|
1033
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
1034
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
1035
|
+
<br>
|
1036
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
1037
|
+
<b>kbRangeEnd</b> = 0xffff,
|
1038
|
+
<b>msRangeBegin</b>,
|
1039
|
+
<b>msLeft</b> = msRangeBegin,
|
1040
|
+
<br>
|
1041
|
+
<b>msRight</b>,
|
1042
|
+
<b>msMiddle</b>,
|
1043
|
+
<b>msWheelUp</b>,
|
1044
|
+
<b>msWheelDown</b>,
|
1045
|
+
<br>
|
1046
|
+
<b>msRangeEnd</b>,
|
1047
|
+
<b>gpRangeBegin</b>,
|
1048
|
+
<b>gpLeft</b> = gpRangeBegin,
|
1049
|
+
<b>gpRight</b>,
|
1050
|
+
<br>
|
1051
|
+
<b>gpUp</b>,
|
1052
|
+
<b>gpDown</b>,
|
1053
|
+
<b>gpButton0</b>,
|
1054
|
+
<b>gpButton1</b>,
|
1055
|
+
<br>
|
1056
|
+
<b>gpButton2</b>,
|
1057
|
+
<b>gpButton3</b>,
|
1058
|
+
<b>gpButton4</b>,
|
1059
|
+
<b>gpButton5</b>,
|
1060
|
+
<br>
|
1061
|
+
<b>gpButton6</b>,
|
1062
|
+
<b>gpButton7</b>,
|
1063
|
+
<b>gpButton8</b>,
|
1064
|
+
<b>gpButton9</b>,
|
1065
|
+
<br>
|
1066
|
+
<b>gpButton10</b>,
|
1067
|
+
<b>gpButton11</b>,
|
1068
|
+
<b>gpButton12</b>,
|
1069
|
+
<b>gpButton13</b>,
|
1070
|
+
<br>
|
1071
|
+
<b>gpButton14</b>,
|
1072
|
+
<b>gpButton15</b>,
|
1073
|
+
<b>gpRangeEnd</b> = gpButton15,
|
1074
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
1075
|
+
<br>
|
1076
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
1077
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
1078
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
1079
|
+
<b>noButton</b> = 0xffffffff,
|
1080
|
+
<br>
|
1081
|
+
<b>kbRangeBegin</b> = 0x01,
|
1082
|
+
<b>kbEscape</b> = 0x35,
|
1083
|
+
<b>kbF1</b> = 0x7a,
|
1084
|
+
<b>kbF2</b> = 0x78,
|
1085
|
+
<br>
|
1086
|
+
<b>kbF3</b> = 0x63,
|
1087
|
+
<b>kbF4</b> = 0x76,
|
1088
|
+
<b>kbF5</b> = 0x60,
|
1089
|
+
<b>kbF6</b> = 0x61,
|
1090
|
+
<br>
|
1091
|
+
<b>kbF7</b> = 0x62,
|
1092
|
+
<b>kbF8</b> = 0x64,
|
1093
|
+
<b>kbF9</b> = 0x65,
|
1094
|
+
<b>kbF10</b> = 0x6d,
|
1095
|
+
<br>
|
1096
|
+
<b>kbF11</b> = 0x67,
|
1097
|
+
<b>kbF12</b> = 0x6f,
|
1098
|
+
<b>kb1</b> = 0x12,
|
1099
|
+
<b>kb2</b> = 0x13,
|
1100
|
+
<br>
|
1101
|
+
<b>kb3</b> = 0x14,
|
1102
|
+
<b>kb4</b> = 0x15,
|
1103
|
+
<b>kb5</b> = 0x17,
|
1104
|
+
<b>kb6</b> = 0x16,
|
1105
|
+
<br>
|
1106
|
+
<b>kb7</b> = 0x1a,
|
1107
|
+
<b>kb8</b> = 0x1c,
|
1108
|
+
<b>kb9</b> = 0x19,
|
1109
|
+
<b>kb0</b> = 0x1d,
|
1110
|
+
<br>
|
1111
|
+
<b>kbTab</b> = 0x30,
|
1112
|
+
<b>kbReturn</b> = 0x24,
|
1113
|
+
<b>kbSpace</b> = 0x31,
|
1114
|
+
<b>kbLeftShift</b> = 0x38,
|
1115
|
+
<br>
|
1116
|
+
<b>kbRightShift</b> = 0x3c,
|
1117
|
+
<b>kbLeftControl</b> = 0x3b,
|
1118
|
+
<b>kbRightControl</b> = 0x3e,
|
1119
|
+
<b>kbLeftAlt</b> = 0x3a,
|
1120
|
+
<br>
|
1121
|
+
<b>kbRightAlt</b> = 0x3d,
|
1122
|
+
<b>kbLeftMeta</b> = 0x37,
|
1123
|
+
<b>kbRightMeta</b> = 0x36,
|
1124
|
+
<b>kbBackspace</b> = 0x33,
|
1125
|
+
<br>
|
1126
|
+
<b>kbLeft</b> = 0x7b,
|
1127
|
+
<b>kbRight</b> = 0x7c,
|
1128
|
+
<b>kbUp</b> = 0x7e,
|
1129
|
+
<b>kbDown</b> = 0x7d,
|
1130
|
+
<br>
|
1131
|
+
<b>kbHome</b> = 0x73,
|
1132
|
+
<b>kbEnd</b> = 0x77,
|
1133
|
+
<b>kbInsert</b> = 0x72,
|
1134
|
+
<b>kbDelete</b> = 0x75,
|
1135
|
+
<br>
|
1136
|
+
<b>kbPageUp</b> = 0x74,
|
1137
|
+
<b>kbPageDown</b> = 0x79,
|
1138
|
+
<b>kbEnter</b> = 0x4c,
|
1139
|
+
<b>kbNumpad1</b> = 0x53,
|
1140
|
+
<br>
|
1141
|
+
<b>kbNumpad2</b> = 0x54,
|
1142
|
+
<b>kbNumpad3</b> = 0x55,
|
1143
|
+
<b>kbNumpad4</b> = 0x56,
|
1144
|
+
<b>kbNumpad5</b> = 0x57,
|
1145
|
+
<br>
|
1146
|
+
<b>kbNumpad6</b> = 0x58,
|
1147
|
+
<b>kbNumpad7</b> = 0x59,
|
1148
|
+
<b>kbNumpad8</b> = 0x5b,
|
1149
|
+
<b>kbNumpad9</b> = 0x5c,
|
1150
|
+
<br>
|
1151
|
+
<b>kbNumpad0</b> = 0x52,
|
1152
|
+
<b>kbNumpadAdd</b> = 0x45,
|
1153
|
+
<b>kbNumpadSubtract</b> = 0x4e,
|
1154
|
+
<b>kbNumpadMultiply</b> = 0x43,
|
1155
|
+
<br>
|
1156
|
+
<b>kbNumpadDivide</b> = 0x4b,
|
1157
|
+
<b>kbRangeEnd</b> = 0xffff,
|
1158
|
+
<b>msRangeBegin</b>,
|
1159
|
+
<b>msLeft</b> = msRangeBegin,
|
1160
|
+
<br>
|
1161
|
+
<b>msRight</b>,
|
1162
|
+
<b>msMiddle</b>,
|
1163
|
+
<b>msWheelUp</b>,
|
1164
|
+
<b>msWheelDown</b>,
|
1165
|
+
<br>
|
1166
|
+
<b>msRangeEnd</b>,
|
1167
|
+
<b>gpRangeBegin</b>,
|
1168
|
+
<b>gpLeft</b> = gpRangeBegin,
|
1169
|
+
<b>gpRight</b>,
|
1170
|
+
<br>
|
1171
|
+
<b>gpUp</b>,
|
1172
|
+
<b>gpDown</b>,
|
1173
|
+
<b>gpButton0</b>,
|
1174
|
+
<b>gpButton1</b>,
|
1175
|
+
<br>
|
1176
|
+
<b>gpButton2</b>,
|
1177
|
+
<b>gpButton3</b>,
|
1178
|
+
<b>gpButton4</b>,
|
1179
|
+
<b>gpButton5</b>,
|
1180
|
+
<br>
|
1181
|
+
<b>gpButton6</b>,
|
1182
|
+
<b>gpButton7</b>,
|
1183
|
+
<b>gpButton8</b>,
|
1184
|
+
<b>gpButton9</b>,
|
1185
|
+
<br>
|
1186
|
+
<b>gpButton10</b>,
|
1187
|
+
<b>gpButton11</b>,
|
1188
|
+
<b>gpButton12</b>,
|
1189
|
+
<b>gpButton13</b>,
|
1190
|
+
<br>
|
1191
|
+
<b>gpButton14</b>,
|
1192
|
+
<b>gpButton15</b>,
|
1193
|
+
<b>gpRangeEnd</b> = gpButton15,
|
1194
|
+
<b>kbNum</b> = kbRangeEnd - kbRangeBegin + 1,
|
1195
|
+
<br>
|
1196
|
+
<b>msNum</b> = msRangeEnd - msRangeBegin + 1,
|
1197
|
+
<b>gpNum</b> = gpRangeEnd - gpRangeBegin + 1,
|
1198
|
+
<b>numButtons</b> = gpRangeEnd + 1,
|
1199
|
+
<b>noButton</b> = 0xffffffff
|
1200
|
+
<br>
|
1201
|
+
}</td></tr>
|
1202
|
+
|
1203
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#3b7f4d1f697d86c584543e455faeef82">BorderFlags</a> { <br>
|
1204
|
+
<b>bfSoft</b> = 0,
|
1205
|
+
<b>bfHardLeft</b> = 1,
|
1206
|
+
<b>bfHardTop</b> = 2,
|
1207
|
+
<b>bfHardRight</b> = 4,
|
1208
|
+
<br>
|
1209
|
+
<b>bfHardBottom</b> = 8,
|
1210
|
+
<b>bfHard</b> = bfHardLeft | bfHardTop | bfHardRight | bfHardBottom
|
1211
|
+
<br>
|
1212
|
+
}</td></tr>
|
1213
|
+
|
1214
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">AlphaMode</a> { <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9d1661cf5d3ba68fcbdca99f9dcc832e0">amDefault</a>,
|
1215
|
+
<a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda90032d35b3c2b35d16d3c59b6471c570b">amAdditive</a>
|
1216
|
+
}</td></tr>
|
1217
|
+
|
1218
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>FontFlags</b> { <b>ffBold</b> = 1,
|
1219
|
+
<b>ffItalic</b> = 2,
|
1220
|
+
<b>ffUnderline</b> = 4
|
1221
|
+
}</td></tr>
|
1222
|
+
|
1223
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>TextAlign</b> { <b>taLeft</b>,
|
1224
|
+
<b>taRight</b>,
|
1225
|
+
<b>taCenter</b>,
|
1226
|
+
<b>taJustify</b>
|
1227
|
+
}</td></tr>
|
1228
|
+
|
1229
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>ByteOrder</b> { <b>boLittle</b>,
|
1230
|
+
<b>boBig</b>,
|
1231
|
+
<b>boDontCare</b>
|
1232
|
+
}</td></tr>
|
1233
|
+
|
1234
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#f3bd16cebaf102e43f576d0a0ca1fcc3">FileMode</a> { <a class="el" href="namespaceGosu.html#f3bd16cebaf102e43f576d0a0ca1fcc3fc1f3aa93dd976dd43582892a36629d8">fmRead</a>,
|
1235
|
+
<a class="el" href="namespaceGosu.html#f3bd16cebaf102e43f576d0a0ca1fcc337d6ddaeba2138192b0ae84e0882a246">fmReplace</a>,
|
1236
|
+
<a class="el" href="namespaceGosu.html#f3bd16cebaf102e43f576d0a0ca1fcc3d09b16bbdaf86e8a38a7299abad2706d">fmAlter</a>
|
1237
|
+
}</td></tr>
|
1238
|
+
|
1239
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>RotFlipName</b> { <br>
|
1240
|
+
<b>rfDefault</b>,
|
1241
|
+
<b>rfRotate90</b>,
|
1242
|
+
<b>rfRotate180</b>,
|
1243
|
+
<b>rfRotate270</b>,
|
1244
|
+
<br>
|
1245
|
+
<b>rfFlipX</b>,
|
1246
|
+
<b>rfRotate90FlipX</b>,
|
1247
|
+
<b>rfRotate180FlipX</b>,
|
1248
|
+
<b>rfRotate270FlipX</b>,
|
1249
|
+
<br>
|
1250
|
+
<b>rfFlipY</b> = rfRotate180FlipX,
|
1251
|
+
<b>rfRotate90FlipY</b> = rfRotate270FlipX,
|
1252
|
+
<b>rfRotate180FlipY</b> = rfFlipX,
|
1253
|
+
<b>rfRotate270FlipY</b> = rfRotate90FlipX,
|
1254
|
+
<br>
|
1255
|
+
<b>rfFlipXRotate90</b> = rfRotate270FlipX,
|
1256
|
+
<b>rfFlipXRotate180</b> = rfRotate180FlipX,
|
1257
|
+
<b>rfFlipXRotate270</b> = rfRotate90FlipX,
|
1258
|
+
<b>rfFlipYRotate90</b> = rfRotate90FlipX,
|
1259
|
+
<br>
|
1260
|
+
<b>rfFlipYRotate180</b> = rfFlipX,
|
1261
|
+
<b>rfFlipYRotate270</b> = rfRotate270FlipX
|
1262
|
+
<br>
|
1263
|
+
}</td></tr>
|
1264
|
+
|
1265
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>CommMode</b> { <b>cmRaw</b>,
|
1266
|
+
<b>cmManaged</b>
|
1267
|
+
}</td></tr>
|
1268
|
+
|
1269
|
+
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
1270
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0286ee79386c0f45a471eaee196d1b7f"></a><!-- doxytag: member="Gosu::asyncNewImage" ref="0286ee79386c0f45a471eaee196d1b7f" args="(Window &window, const std::wstring &filename)" -->
|
1271
|
+
AsyncResult< <a class="el" href="classGosu_1_1Image.html">Image</a> > </td><td class="memItemRight" valign="bottom"><b>asyncNewImage</b> (<a class="el" href="classGosu_1_1Window.html">Window</a> &window, const std::wstring &filename)</td></tr>
|
1272
|
+
|
1273
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">Reader </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#5eb2a400728e57559f35615af17ead55">loadFromBMP</a> (<a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &bmp, Reader reader)</td></tr>
|
1274
|
+
|
1275
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">Writer </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#88c53b6073e06c2ce343bf49579b02de">saveToBMP</a> (const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &bmp, Writer writer)</td></tr>
|
1276
|
+
|
1277
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">Reader </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#1be1c9db6a1ecf3b5c62797079e49e70">loadFromPNG</a> (<a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &bmp, Reader reader)</td></tr>
|
1278
|
+
|
1279
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">Writer </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#7c1a78c796335d8f2183a6694a911eb7">saveToPNG</a> (const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &bmp, Writer writer)</td></tr>
|
1280
|
+
|
1281
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#97ea4128d29b9835243e69939085bfa5">applyColorKey</a> (<a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &bitmap, <a class="el" href="classGosu_1_1Color.html">Color</a> key)</td></tr>
|
1282
|
+
|
1283
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="72957c040474b5afedd1af49b8f3a035"></a><!-- doxytag: member="Gosu::applyBorderFlags" ref="72957c040474b5afedd1af49b8f3a035" args="(Bitmap &dest, const Bitmap &source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)" -->
|
1284
|
+
void </td><td class="memItemRight" valign="bottom"><b>applyBorderFlags</b> (<a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &dest, const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &source, unsigned srcX, unsigned srcY, unsigned srcWidth, unsigned srcHeight, unsigned borderFlags)</td></tr>
|
1285
|
+
|
1286
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="263a114f352f439a3cbb0da9d52d18cb"></a><!-- doxytag: member="Gosu::quickLoadBitmap" ref="263a114f352f439a3cbb0da9d52d18cb" args="(const std::wstring &filename)" -->
|
1287
|
+
<a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> </td><td class="memItemRight" valign="bottom"><b>quickLoadBitmap</b> (const std::wstring &filename)</td></tr>
|
1288
|
+
|
1289
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6198974ec645118e54cf8e3fc3b827cb"></a><!-- doxytag: member="Gosu::operator==" ref="6198974ec645118e54cf8e3fc3b827cb" args="(Color a, Color b)" -->
|
1290
|
+
bool </td><td class="memItemRight" valign="bottom"><b>operator==</b> (<a class="el" href="classGosu_1_1Color.html">Color</a> a, <a class="el" href="classGosu_1_1Color.html">Color</a> b)</td></tr>
|
1291
|
+
|
1292
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="12095af239f1cecbcba59a22ffb1af93"></a><!-- doxytag: member="Gosu::operator!=" ref="12095af239f1cecbcba59a22ffb1af93" args="(Color a, Color b)" -->
|
1293
|
+
bool </td><td class="memItemRight" valign="bottom"><b>operator!=</b> (<a class="el" href="classGosu_1_1Color.html">Color</a> a, <a class="el" href="classGosu_1_1Color.html">Color</a> b)</td></tr>
|
1294
|
+
|
1295
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGosu_1_1Color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#55c2cfa7575386d8eb6a8dc615e905ae">interpolate</a> (<a class="el" href="classGosu_1_1Color.html">Color</a> a, <a class="el" href="classGosu_1_1Color.html">Color</a> b, double weight=0.5)</td></tr>
|
1296
|
+
|
1297
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGosu_1_1Color.html">Color</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#bb85501ec3787bd0fc80187231788bea">multiply</a> (<a class="el" href="classGosu_1_1Color.html">Color</a> a, <a class="el" href="classGosu_1_1Color.html">Color</a> b)</td></tr>
|
1298
|
+
|
1299
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#9e98cb1b194245f7ebb33febdf3ea1ba">resourcePrefix</a> ()</td></tr>
|
1300
|
+
|
1301
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#15eb63b0cec84b235d0f4d836731d3e1">sharedResourcePrefix</a> ()</td></tr>
|
1302
|
+
|
1303
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#c5d5db92f55aba5bcd7cd6ca1a79c712">userSettingsPrefix</a> ()</td></tr>
|
1304
|
+
|
1305
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#608bef262f259644b1e804c5bd03683a">userDocsPrefix</a> ()</td></tr>
|
1306
|
+
|
1307
|
+
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Container> </td></tr>
|
1308
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#b347c1ac66f7c276cc505acb62947b23">imagesFromTiledBitmap</a> (<a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &graphics, const std::wstring &filename, int tileWidth, int tileHeight, bool hardBorders, Container &appendTo)</td></tr>
|
1309
|
+
|
1310
|
+
<tr><td class="memTemplParams" nowrap colspan="2">template<typename Container> </td></tr>
|
1311
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#823d62ccac7a28ea78ea0a987687d649">imagesFromTiledBitmap</a> (<a class="el" href="classGosu_1_1Graphics.html">Graphics</a> &graphics, const <a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &bmp, int tileWidth, int tileHeight, bool hardBorders, Container &appendTo)</td></tr>
|
1312
|
+
|
1313
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#8abc916db977614382f04aef415c21c3">operator==</a> (<a class="el" href="classGosu_1_1Button.html">Button</a> lhs, <a class="el" href="classGosu_1_1Button.html">Button</a> rhs)</td></tr>
|
1314
|
+
|
1315
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d6ebc33043d3f495cf4bfbea2184e6d6"></a><!-- doxytag: member="Gosu::operator!=" ref="d6ebc33043d3f495cf4bfbea2184e6d6" args="(Button lhs, Button rhs)" -->
|
1316
|
+
bool </td><td class="memItemRight" valign="bottom"><b>operator!=</b> (<a class="el" href="classGosu_1_1Button.html">Button</a> lhs, <a class="el" href="classGosu_1_1Button.html">Button</a> rhs)</td></tr>
|
1317
|
+
|
1318
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#29c60cb8e87a99f7ce924ae0530029a0">loadFile</a> (<a class="el" href="classGosu_1_1Buffer.html">Buffer</a> &buffer, const std::wstring &filename)</td></tr>
|
1319
|
+
|
1320
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#467aa346fa1a4cb39040bb427b42b7aa">saveFile</a> (const <a class="el" href="classGosu_1_1Buffer.html">Buffer</a> &buffer, const std::wstring &filename)</td></tr>
|
1321
|
+
|
1322
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#dc5f4941f3a17c6c5233d6c7a628cc68">trunc</a> (double value)</td></tr>
|
1323
|
+
|
1324
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">long </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#496868cf52cf159cf98a00888c4fbc1c">round</a> (double value)</td></tr>
|
1325
|
+
|
1326
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#6c855080566f7f1b1967c90805249dda">random</a> (double min, double max)</td></tr>
|
1327
|
+
|
1328
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#e61d02831aa7026e96f1e53a358609b2">offsetX</a> (double angle, double radius)</td></tr>
|
1329
|
+
|
1330
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#9e0845d8b2ed385cb4e8593e7a308a08">offsetY</a> (double angle, double radius)</td></tr>
|
1331
|
+
|
1332
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#f7740dec821977a37ff26a90c2e85ac7">angle</a> (double fromX, double fromY, double toX, double toY, double def=0)</td></tr>
|
1333
|
+
|
1334
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#36cfaba7c2038bfeabdd1672882704f4">angleDiff</a> (double angle1, double angle2)</td></tr>
|
1335
|
+
|
1336
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#c6f147ab90f7e343dd9d70cc8bf3a91b">normalizeAngle</a> (double angle)</td></tr>
|
1337
|
+
|
1338
|
+
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
|
1339
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#cac78b0775d1b551f4adf9ae76efb4cc">square</a> (T value)</td></tr>
|
1340
|
+
|
1341
|
+
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
|
1342
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#3359d78e0ca7fa5d163dce7b99f72e9f">clamp</a> (T value, T min, T max)</td></tr>
|
1343
|
+
|
1344
|
+
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="5b35114c04a3f01d54c2e052d350b61f"></a><!-- doxytag: member="Gosu::boundBy" ref="5b35114c04a3f01d54c2e052d350b61f" args="(T value, T min, T max)" -->
|
1345
|
+
template<typename T> </td></tr>
|
1346
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>boundBy</b> (T value, T min, T max)</td></tr>
|
1347
|
+
|
1348
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#58015f2ee3527184171d3d99176fd360">distanceSqr</a> (double x1, double y1, double x2, double y2)</td></tr>
|
1349
|
+
|
1350
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#a06a29a8aefa1be625072b02e2d825bd">distance</a> (double x1, double y1, double x2, double y2)</td></tr>
|
1351
|
+
|
1352
|
+
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
|
1353
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#29515f6c9be056e9ca5f672dec154847">interpolate</a> (T a, T b, double weight=0.5)</td></tr>
|
1354
|
+
|
1355
|
+
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="3ea757503a65f9fb3b8ba913c726585f"></a><!-- doxytag: member="Gosu::IDENTITY_FUN" ref="3ea757503a65f9fb3b8ba913c726585f" args="(T t)" -->
|
1356
|
+
template<typename T> </td></tr>
|
1357
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>IDENTITY_FUN</b> (T t)</td></tr>
|
1358
|
+
|
1359
|
+
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="ab6a919c784cf33d6d9a64ce61110cd7"></a><!-- doxytag: member="Gosu::IDENTITY_FUN2" ref="ab6a919c784cf33d6d9a64ce61110cd7" args="(T t)" -->
|
1360
|
+
template<typename T> </td></tr>
|
1361
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>IDENTITY_FUN2</b> (T t)</td></tr>
|
1362
|
+
|
1363
|
+
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="f161626629fdbc5bf78c55a016efc82d"></a><!-- doxytag: member="Gosu::CONV_FUN" ref="f161626629fdbc5bf78c55a016efc82d" args="(T t)" -->
|
1364
|
+
template<typename T> </td></tr>
|
1365
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>CONV_FUN</b> (T t)</td></tr>
|
1366
|
+
|
1367
|
+
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="23fbca32f7bdea943a463509fd8ee26e"></a><!-- doxytag: member="Gosu::CONV_FUN2" ref="23fbca32f7bdea943a463509fd8ee26e" args="(T t)" -->
|
1368
|
+
template<typename T> </td></tr>
|
1369
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><b>CONV_FUN2</b> (T t)</td></tr>
|
1370
|
+
|
1371
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f95982a20bba047a1d7a8accb82a7758"></a><!-- doxytag: member="Gosu::operator==" ref="f95982a20bba047a1d7a8accb82a7758" args="(RotFlip a, RotFlip b)" -->
|
1372
|
+
bool </td><td class="memItemRight" valign="bottom"><b>operator==</b> (RotFlip a, RotFlip b)</td></tr>
|
1373
|
+
|
1374
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2860d74f086dc0ed96a25df359494ed"></a><!-- doxytag: member="Gosu::operator!=" ref="d2860d74f086dc0ed96a25df359494ed" args="(RotFlip a, RotFlip b)" -->
|
1375
|
+
bool </td><td class="memItemRight" valign="bottom"><b>operator!=</b> (RotFlip a, RotFlip b)</td></tr>
|
1376
|
+
|
1377
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="621eb7d0e3c347461dcc298903fe18a4"></a><!-- doxytag: member="Gosu::applyToPoint" ref="621eb7d0e3c347461dcc298903fe18a4" args="(RotFlip rotFlip, int &x, int &y, int max)" -->
|
1378
|
+
void </td><td class="memItemRight" valign="bottom"><b>applyToPoint</b> (RotFlip rotFlip, int &x, int &y, int max)</td></tr>
|
1379
|
+
|
1380
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">SocketAddress </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#c2c5b3cca9903139efbd2d601a631ee6">stringToAddress</a> (const std::string &s)</td></tr>
|
1381
|
+
|
1382
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#aae23447cebfab874d7657fbe0a8150e">addressToString</a> (SocketAddress address)</td></tr>
|
1383
|
+
|
1384
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#7b47dae2708d707c82cffeaf2104e42b">defaultFontName</a> ()</td></tr>
|
1385
|
+
|
1386
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#b04c11ac75a9069c4b2f8a27ae1094fc">textWidth</a> (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0)</td></tr>
|
1387
|
+
|
1388
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#ea254f5ef0d5cf99b31c4ae37dc62a73">drawText</a> (<a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> &bitmap, const std::wstring &text, int x, int y, <a class="el" href="classGosu_1_1Color.html">Color</a> c, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0)</td></tr>
|
1389
|
+
|
1390
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#1d42aec491c8241f416e72ac8a39c7a4">createText</a> (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned lineSpacing, unsigned maxWidth, TextAlign align, unsigned fontFlags=0)</td></tr>
|
1391
|
+
|
1392
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#93f9b0118e9708a760148c8c5da481d2">sleep</a> (unsigned milliseconds)</td></tr>
|
1393
|
+
|
1394
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#37bf53016e58939d6bf2f7a261c6c4db">milliseconds</a> ()</td></tr>
|
1395
|
+
|
1396
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#76d73802e9aa00f9133c3f1e099b832e">widen</a> (const std::string &s)</td></tr>
|
1397
|
+
|
1398
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#66106eac9ffd4e4047e891c20196a5a2">narrow</a> (const std::wstring &ws)</td></tr>
|
1399
|
+
|
1400
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21c54ae29c5b4ebc282b87d6dec1f7de"></a><!-- doxytag: member="Gosu::utf8ToWstring" ref="21c54ae29c5b4ebc282b87d6dec1f7de" args="(const std::string &utf8)" -->
|
1401
|
+
std::wstring </td><td class="memItemRight" valign="bottom"><b>utf8ToWstring</b> (const std::string &utf8)</td></tr>
|
1402
|
+
|
1403
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b6bc6e428b84b2e2ac39133c64b4567e"></a><!-- doxytag: member="Gosu::wstringToUTF8" ref="b6bc6e428b84b2e2ac39133c64b4567e" args="(const std::wstring &ws)" -->
|
1404
|
+
std::string </td><td class="memItemRight" valign="bottom"><b>wstringToUTF8</b> (const std::wstring &ws)</td></tr>
|
1405
|
+
|
1406
|
+
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
1407
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ead4502f3e95077f5e128d1ff6bae819"></a><!-- doxytag: member="Gosu::nativeByteOrder" ref="ead4502f3e95077f5e128d1ff6bae819" args="" -->
|
1408
|
+
const ByteOrder </td><td class="memItemRight" valign="bottom"><b>nativeByteOrder</b> = boLittle</td></tr>
|
1409
|
+
|
1410
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b1ccccbaef42335e16689c5fc2f1f936"></a><!-- doxytag: member="Gosu::otherByteOrder" ref="b1ccccbaef42335e16689c5fc2f1f936" args="" -->
|
1411
|
+
const ByteOrder </td><td class="memItemRight" valign="bottom"><b>otherByteOrder</b> = boBig</td></tr>
|
1412
|
+
|
1413
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">const double </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#cc7336a0eba36412dab0e991fb3faf01">pi</a> = 3.1415926536</td></tr>
|
1414
|
+
|
1415
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef707f47e12343f1cc2fbfe70a1143cf"></a><!-- doxytag: member="Gosu::anyPort" ref="ef707f47e12343f1cc2fbfe70a1143cf" args="" -->
|
1416
|
+
const SocketPort </td><td class="memItemRight" valign="bottom"><b>anyPort</b> = 0</td></tr>
|
1417
|
+
|
1418
|
+
</table>
|
1419
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
1420
|
+
The library's main namespace. <hr><h2>Typedef Documentation</h2>
|
1421
|
+
<a class="anchor" name="a2fd8fe9574c0ad3fd52557cb160be49"></a><!-- doxytag: member="Gosu::ZPos" ref="a2fd8fe9574c0ad3fd52557cb160be49" args="" -->
|
1422
|
+
<div class="memitem">
|
1423
|
+
<div class="memproto">
|
1424
|
+
<table class="memname">
|
1425
|
+
<tr>
|
1426
|
+
<td class="memname">typedef double <a class="el" href="namespaceGosu.html#a2fd8fe9574c0ad3fd52557cb160be49">Gosu::ZPos</a> </td>
|
1427
|
+
</tr>
|
1428
|
+
</table>
|
1429
|
+
</div>
|
1430
|
+
<div class="memdoc">
|
1431
|
+
|
1432
|
+
<p>
|
1433
|
+
Represents the Z position of something drawn with Gosu's graphics system.
|
1434
|
+
<p>
|
1435
|
+
Draw calls with higher ZPos values will cover those with a lower ZPos value, that is, they are performed last.
|
1436
|
+
</div>
|
1437
|
+
</div><p>
|
1438
|
+
<hr><h2>Enumeration Type Documentation</h2>
|
1439
|
+
<a class="anchor" name="769656b1f560bc3d1bbdb47f8ca4eda9"></a><!-- doxytag: member="Gosu::AlphaMode" ref="769656b1f560bc3d1bbdb47f8ca4eda9" args="" -->
|
1440
|
+
<div class="memitem">
|
1441
|
+
<div class="memproto">
|
1442
|
+
<table class="memname">
|
1443
|
+
<tr>
|
1444
|
+
<td class="memname">enum <a class="el" href="namespaceGosu.html#769656b1f560bc3d1bbdb47f8ca4eda9">Gosu::AlphaMode</a> </td>
|
1445
|
+
</tr>
|
1446
|
+
</table>
|
1447
|
+
</div>
|
1448
|
+
<div class="memdoc">
|
1449
|
+
|
1450
|
+
<p>
|
1451
|
+
Determines the way colors are combined when one is drawn onto another.
|
1452
|
+
<p>
|
1453
|
+
<dl compact><dt><b>Enumerator: </b></dt><dd>
|
1454
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
1455
|
+
<tr><td valign="top"><em><a class="anchor" name="769656b1f560bc3d1bbdb47f8ca4eda9d1661cf5d3ba68fcbdca99f9dcc832e0"></a><!-- doxytag: member="amDefault" ref="769656b1f560bc3d1bbdb47f8ca4eda9d1661cf5d3ba68fcbdca99f9dcc832e0" args="" -->amDefault</em> </td><td>
|
1456
|
+
The color's channels will be interpolated.
|
1457
|
+
<p>
|
1458
|
+
The alpha channel specifies the opacity of the new color, 255 is full opacity. </td></tr>
|
1459
|
+
<tr><td valign="top"><em><a class="anchor" name="769656b1f560bc3d1bbdb47f8ca4eda90032d35b3c2b35d16d3c59b6471c570b"></a><!-- doxytag: member="amAdditive" ref="769656b1f560bc3d1bbdb47f8ca4eda90032d35b3c2b35d16d3c59b6471c570b" args="" -->amAdditive</em> </td><td>
|
1460
|
+
The colors' channels will be added.
|
1461
|
+
<p>
|
1462
|
+
The alpha channel specifies the percentage of the new color's channels that will be added to the old color's channels. </td></tr>
|
1463
|
+
</table>
|
1464
|
+
</dl>
|
1465
|
+
|
1466
|
+
</div>
|
1467
|
+
</div><p>
|
1468
|
+
<a class="anchor" name="3b7f4d1f697d86c584543e455faeef82"></a><!-- doxytag: member="Gosu::BorderFlags" ref="3b7f4d1f697d86c584543e455faeef82" args="" -->
|
1469
|
+
<div class="memitem">
|
1470
|
+
<div class="memproto">
|
1471
|
+
<table class="memname">
|
1472
|
+
<tr>
|
1473
|
+
<td class="memname">enum <a class="el" href="namespaceGosu.html#3b7f4d1f697d86c584543e455faeef82">Gosu::BorderFlags</a> </td>
|
1474
|
+
</tr>
|
1475
|
+
</table>
|
1476
|
+
</div>
|
1477
|
+
<div class="memdoc">
|
1478
|
+
|
1479
|
+
<p>
|
1480
|
+
Flags that affect the softness of a border.
|
1481
|
+
<p>
|
1482
|
+
|
1483
|
+
</div>
|
1484
|
+
</div><p>
|
1485
|
+
<a class="anchor" name="b085b2dbdd533b49dadaf217dbcf8368"></a><!-- doxytag: member="Gosu::ButtonName" ref="b085b2dbdd533b49dadaf217dbcf8368" args="" -->
|
1486
|
+
<div class="memitem">
|
1487
|
+
<div class="memproto">
|
1488
|
+
<table class="memname">
|
1489
|
+
<tr>
|
1490
|
+
<td class="memname">enum <a class="el" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368">Gosu::ButtonName</a> </td>
|
1491
|
+
</tr>
|
1492
|
+
</table>
|
1493
|
+
</div>
|
1494
|
+
<div class="memdoc">
|
1495
|
+
|
1496
|
+
<p>
|
1497
|
+
Enumerates all the named button ids that can be used with <a class="el" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system; only one Input instance...">Gosu::Input</a>.
|
1498
|
+
<p>
|
1499
|
+
This enumeration contains ids for non-character keyboard keys (kb*), mouse buttons and mouse wheel (ms*) and gamepad buttons (gp*).
|
1500
|
+
</div>
|
1501
|
+
</div><p>
|
1502
|
+
<a class="anchor" name="b085b2dbdd533b49dadaf217dbcf8368"></a><!-- doxytag: member="Gosu::ButtonName" ref="b085b2dbdd533b49dadaf217dbcf8368" args="" -->
|
1503
|
+
<div class="memitem">
|
1504
|
+
<div class="memproto">
|
1505
|
+
<table class="memname">
|
1506
|
+
<tr>
|
1507
|
+
<td class="memname">enum <a class="el" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368">Gosu::ButtonName</a> </td>
|
1508
|
+
</tr>
|
1509
|
+
</table>
|
1510
|
+
</div>
|
1511
|
+
<div class="memdoc">
|
1512
|
+
|
1513
|
+
<p>
|
1514
|
+
List of all the button ids that can be used with <a class="el" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system; only one Input instance...">Gosu::Input</a>.
|
1515
|
+
<p>
|
1516
|
+
This enumeration contains ids for non-character keyboard keys (kb*), mouse buttons and mouse wheel (ms*) and gamepad buttons (gp*).
|
1517
|
+
</div>
|
1518
|
+
</div><p>
|
1519
|
+
<a class="anchor" name="f3bd16cebaf102e43f576d0a0ca1fcc3"></a><!-- doxytag: member="Gosu::FileMode" ref="f3bd16cebaf102e43f576d0a0ca1fcc3" args="" -->
|
1520
|
+
<div class="memitem">
|
1521
|
+
<div class="memproto">
|
1522
|
+
<table class="memname">
|
1523
|
+
<tr>
|
1524
|
+
<td class="memname">enum <a class="el" href="namespaceGosu.html#f3bd16cebaf102e43f576d0a0ca1fcc3">Gosu::FileMode</a> </td>
|
1525
|
+
</tr>
|
1526
|
+
</table>
|
1527
|
+
</div>
|
1528
|
+
<div class="memdoc">
|
1529
|
+
|
1530
|
+
<p>
|
1531
|
+
<dl compact><dt><b>Enumerator: </b></dt><dd>
|
1532
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
1533
|
+
<tr><td valign="top"><em><a class="anchor" name="f3bd16cebaf102e43f576d0a0ca1fcc3fc1f3aa93dd976dd43582892a36629d8"></a><!-- doxytag: member="fmRead" ref="f3bd16cebaf102e43f576d0a0ca1fcc3fc1f3aa93dd976dd43582892a36629d8" args="" -->fmRead</em> </td><td>
|
1534
|
+
Opens an existing file for reading; throws an exception if the file cannot be found.
|
1535
|
+
<p>
|
1536
|
+
</td></tr>
|
1537
|
+
<tr><td valign="top"><em><a class="anchor" name="f3bd16cebaf102e43f576d0a0ca1fcc337d6ddaeba2138192b0ae84e0882a246"></a><!-- doxytag: member="fmReplace" ref="f3bd16cebaf102e43f576d0a0ca1fcc337d6ddaeba2138192b0ae84e0882a246" args="" -->fmReplace</em> </td><td>
|
1538
|
+
Writes data to a file.
|
1539
|
+
<p>
|
1540
|
+
If the file already exists, is emptied on opening. If the file does not exist, it is created. </td></tr>
|
1541
|
+
<tr><td valign="top"><em><a class="anchor" name="f3bd16cebaf102e43f576d0a0ca1fcc3d09b16bbdaf86e8a38a7299abad2706d"></a><!-- doxytag: member="fmAlter" ref="f3bd16cebaf102e43f576d0a0ca1fcc3d09b16bbdaf86e8a38a7299abad2706d" args="" -->fmAlter</em> </td><td>
|
1542
|
+
Opens or creates a file with writing access, but does not clear existing contents.
|
1543
|
+
<p>
|
1544
|
+
</td></tr>
|
1545
|
+
</table>
|
1546
|
+
</dl>
|
1547
|
+
|
1548
|
+
</div>
|
1549
|
+
</div><p>
|
1550
|
+
<hr><h2>Function Documentation</h2>
|
1551
|
+
<a class="anchor" name="aae23447cebfab874d7657fbe0a8150e"></a><!-- doxytag: member="Gosu::addressToString" ref="aae23447cebfab874d7657fbe0a8150e" args="(SocketAddress address)" -->
|
1552
|
+
<div class="memitem">
|
1553
|
+
<div class="memproto">
|
1554
|
+
<table class="memname">
|
1555
|
+
<tr>
|
1556
|
+
<td class="memname">std::string Gosu::addressToString </td>
|
1557
|
+
<td>(</td>
|
1558
|
+
<td class="paramtype">SocketAddress </td>
|
1559
|
+
<td class="paramname"> <em>address</em> </td>
|
1560
|
+
<td> ) </td>
|
1561
|
+
<td width="100%"></td>
|
1562
|
+
</tr>
|
1563
|
+
</table>
|
1564
|
+
</div>
|
1565
|
+
<div class="memdoc">
|
1566
|
+
|
1567
|
+
<p>
|
1568
|
+
Converts an address into a dotted IP4 string.
|
1569
|
+
<p>
|
1570
|
+
|
1571
|
+
</div>
|
1572
|
+
</div><p>
|
1573
|
+
<a class="anchor" name="f7740dec821977a37ff26a90c2e85ac7"></a><!-- doxytag: member="Gosu::angle" ref="f7740dec821977a37ff26a90c2e85ac7" args="(double fromX, double fromY, double toX, double toY, double def=0)" -->
|
1574
|
+
<div class="memitem">
|
1575
|
+
<div class="memproto">
|
1576
|
+
<table class="memname">
|
1577
|
+
<tr>
|
1578
|
+
<td class="memname">double Gosu::angle </td>
|
1579
|
+
<td>(</td>
|
1580
|
+
<td class="paramtype">double </td>
|
1581
|
+
<td class="paramname"> <em>fromX</em>, </td>
|
1582
|
+
</tr>
|
1583
|
+
<tr>
|
1584
|
+
<td class="paramkey"></td>
|
1585
|
+
<td></td>
|
1586
|
+
<td class="paramtype">double </td>
|
1587
|
+
<td class="paramname"> <em>fromY</em>, </td>
|
1588
|
+
</tr>
|
1589
|
+
<tr>
|
1590
|
+
<td class="paramkey"></td>
|
1591
|
+
<td></td>
|
1592
|
+
<td class="paramtype">double </td>
|
1593
|
+
<td class="paramname"> <em>toX</em>, </td>
|
1594
|
+
</tr>
|
1595
|
+
<tr>
|
1596
|
+
<td class="paramkey"></td>
|
1597
|
+
<td></td>
|
1598
|
+
<td class="paramtype">double </td>
|
1599
|
+
<td class="paramname"> <em>toY</em>, </td>
|
1600
|
+
</tr>
|
1601
|
+
<tr>
|
1602
|
+
<td class="paramkey"></td>
|
1603
|
+
<td></td>
|
1604
|
+
<td class="paramtype">double </td>
|
1605
|
+
<td class="paramname"> <em>def</em> = <code>0</code></td><td> </td>
|
1606
|
+
</tr>
|
1607
|
+
<tr>
|
1608
|
+
<td></td>
|
1609
|
+
<td>)</td>
|
1610
|
+
<td></td><td></td><td width="100%"></td>
|
1611
|
+
</tr>
|
1612
|
+
</table>
|
1613
|
+
</div>
|
1614
|
+
<div class="memdoc">
|
1615
|
+
|
1616
|
+
<p>
|
1617
|
+
Returns the angle between two points in degrees, where 0.0 means upwards.
|
1618
|
+
<p>
|
1619
|
+
Returns def if both points are equal.
|
1620
|
+
</div>
|
1621
|
+
</div><p>
|
1622
|
+
<a class="anchor" name="36cfaba7c2038bfeabdd1672882704f4"></a><!-- doxytag: member="Gosu::angleDiff" ref="36cfaba7c2038bfeabdd1672882704f4" args="(double angle1, double angle2)" -->
|
1623
|
+
<div class="memitem">
|
1624
|
+
<div class="memproto">
|
1625
|
+
<table class="memname">
|
1626
|
+
<tr>
|
1627
|
+
<td class="memname">double Gosu::angleDiff </td>
|
1628
|
+
<td>(</td>
|
1629
|
+
<td class="paramtype">double </td>
|
1630
|
+
<td class="paramname"> <em>angle1</em>, </td>
|
1631
|
+
</tr>
|
1632
|
+
<tr>
|
1633
|
+
<td class="paramkey"></td>
|
1634
|
+
<td></td>
|
1635
|
+
<td class="paramtype">double </td>
|
1636
|
+
<td class="paramname"> <em>angle2</em></td><td> </td>
|
1637
|
+
</tr>
|
1638
|
+
<tr>
|
1639
|
+
<td></td>
|
1640
|
+
<td>)</td>
|
1641
|
+
<td></td><td></td><td width="100%"></td>
|
1642
|
+
</tr>
|
1643
|
+
</table>
|
1644
|
+
</div>
|
1645
|
+
<div class="memdoc">
|
1646
|
+
|
1647
|
+
<p>
|
1648
|
+
Returns the smallest positive angle between two angles.
|
1649
|
+
<p>
|
1650
|
+
|
1651
|
+
</div>
|
1652
|
+
</div><p>
|
1653
|
+
<a class="anchor" name="97ea4128d29b9835243e69939085bfa5"></a><!-- doxytag: member="Gosu::applyColorKey" ref="97ea4128d29b9835243e69939085bfa5" args="(Bitmap &bitmap, Color key)" -->
|
1654
|
+
<div class="memitem">
|
1655
|
+
<div class="memproto">
|
1656
|
+
<table class="memname">
|
1657
|
+
<tr>
|
1658
|
+
<td class="memname">void Gosu::applyColorKey </td>
|
1659
|
+
<td>(</td>
|
1660
|
+
<td class="paramtype">Bitmap & </td>
|
1661
|
+
<td class="paramname"> <em>bitmap</em>, </td>
|
1662
|
+
</tr>
|
1663
|
+
<tr>
|
1664
|
+
<td class="paramkey"></td>
|
1665
|
+
<td></td>
|
1666
|
+
<td class="paramtype">Color </td>
|
1667
|
+
<td class="paramname"> <em>key</em></td><td> </td>
|
1668
|
+
</tr>
|
1669
|
+
<tr>
|
1670
|
+
<td></td>
|
1671
|
+
<td>)</td>
|
1672
|
+
<td></td><td></td><td width="100%"></td>
|
1673
|
+
</tr>
|
1674
|
+
</table>
|
1675
|
+
</div>
|
1676
|
+
<div class="memdoc">
|
1677
|
+
|
1678
|
+
<p>
|
1679
|
+
Set the alpha value of all pixels which are equal to the color key to zero.
|
1680
|
+
<p>
|
1681
|
+
<a class="el" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> values are adjusted so that no borders show up when the image is stretched or rotated.
|
1682
|
+
</div>
|
1683
|
+
</div><p>
|
1684
|
+
<a class="anchor" name="3359d78e0ca7fa5d163dce7b99f72e9f"></a><!-- doxytag: member="Gosu::clamp" ref="3359d78e0ca7fa5d163dce7b99f72e9f" args="(T value, T min, T max)" -->
|
1685
|
+
<div class="memitem">
|
1686
|
+
<div class="memproto">
|
1687
|
+
<div class="memtemplate">
|
1688
|
+
template<typename T> </div>
|
1689
|
+
<table class="memname">
|
1690
|
+
<tr>
|
1691
|
+
<td class="memname">T Gosu::clamp </td>
|
1692
|
+
<td>(</td>
|
1693
|
+
<td class="paramtype">T </td>
|
1694
|
+
<td class="paramname"> <em>value</em>, </td>
|
1695
|
+
</tr>
|
1696
|
+
<tr>
|
1697
|
+
<td class="paramkey"></td>
|
1698
|
+
<td></td>
|
1699
|
+
<td class="paramtype">T </td>
|
1700
|
+
<td class="paramname"> <em>min</em>, </td>
|
1701
|
+
</tr>
|
1702
|
+
<tr>
|
1703
|
+
<td class="paramkey"></td>
|
1704
|
+
<td></td>
|
1705
|
+
<td class="paramtype">T </td>
|
1706
|
+
<td class="paramname"> <em>max</em></td><td> </td>
|
1707
|
+
</tr>
|
1708
|
+
<tr>
|
1709
|
+
<td></td>
|
1710
|
+
<td>)</td>
|
1711
|
+
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
1712
|
+
</tr>
|
1713
|
+
</table>
|
1714
|
+
</div>
|
1715
|
+
<div class="memdoc">
|
1716
|
+
|
1717
|
+
<p>
|
1718
|
+
Returns min if value is smaller than min, max if value is larger than max and value otherwise.
|
1719
|
+
<p>
|
1720
|
+
|
1721
|
+
</div>
|
1722
|
+
</div><p>
|
1723
|
+
<a class="anchor" name="1d42aec491c8241f416e72ac8a39c7a4"></a><!-- doxytag: member="Gosu::createText" ref="1d42aec491c8241f416e72ac8a39c7a4" args="(const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned lineSpacing, unsigned maxWidth, TextAlign align, unsigned fontFlags=0)" -->
|
1724
|
+
<div class="memitem">
|
1725
|
+
<div class="memproto">
|
1726
|
+
<table class="memname">
|
1727
|
+
<tr>
|
1728
|
+
<td class="memname"><a class="el" href="classGosu_1_1Bitmap.html">Bitmap</a> Gosu::createText </td>
|
1729
|
+
<td>(</td>
|
1730
|
+
<td class="paramtype">const std::wstring & </td>
|
1731
|
+
<td class="paramname"> <em>text</em>, </td>
|
1732
|
+
</tr>
|
1733
|
+
<tr>
|
1734
|
+
<td class="paramkey"></td>
|
1735
|
+
<td></td>
|
1736
|
+
<td class="paramtype">const std::wstring & </td>
|
1737
|
+
<td class="paramname"> <em>fontName</em>, </td>
|
1738
|
+
</tr>
|
1739
|
+
<tr>
|
1740
|
+
<td class="paramkey"></td>
|
1741
|
+
<td></td>
|
1742
|
+
<td class="paramtype">unsigned </td>
|
1743
|
+
<td class="paramname"> <em>fontHeight</em>, </td>
|
1744
|
+
</tr>
|
1745
|
+
<tr>
|
1746
|
+
<td class="paramkey"></td>
|
1747
|
+
<td></td>
|
1748
|
+
<td class="paramtype">unsigned </td>
|
1749
|
+
<td class="paramname"> <em>lineSpacing</em>, </td>
|
1750
|
+
</tr>
|
1751
|
+
<tr>
|
1752
|
+
<td class="paramkey"></td>
|
1753
|
+
<td></td>
|
1754
|
+
<td class="paramtype">unsigned </td>
|
1755
|
+
<td class="paramname"> <em>maxWidth</em>, </td>
|
1756
|
+
</tr>
|
1757
|
+
<tr>
|
1758
|
+
<td class="paramkey"></td>
|
1759
|
+
<td></td>
|
1760
|
+
<td class="paramtype">TextAlign </td>
|
1761
|
+
<td class="paramname"> <em>align</em>, </td>
|
1762
|
+
</tr>
|
1763
|
+
<tr>
|
1764
|
+
<td class="paramkey"></td>
|
1765
|
+
<td></td>
|
1766
|
+
<td class="paramtype">unsigned </td>
|
1767
|
+
<td class="paramname"> <em>fontFlags</em> = <code>0</code></td><td> </td>
|
1768
|
+
</tr>
|
1769
|
+
<tr>
|
1770
|
+
<td></td>
|
1771
|
+
<td>)</td>
|
1772
|
+
<td></td><td></td><td width="100%"></td>
|
1773
|
+
</tr>
|
1774
|
+
</table>
|
1775
|
+
</div>
|
1776
|
+
<div class="memdoc">
|
1777
|
+
|
1778
|
+
<p>
|
1779
|
+
Creates a bitmap that is filled with the text given to the function.
|
1780
|
+
<p>
|
1781
|
+
The text may contain line breaks. <dl compact><dt><b>Parameters:</b></dt><dd>
|
1782
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
1783
|
+
<tr><td valign="top"></td><td valign="top"><em>fontName</em> </td><td>Name of a system font, or a filename to a TTF file (must contain '/'). </td></tr>
|
1784
|
+
<tr><td valign="top"></td><td valign="top"><em>fontHeight</em> </td><td>Height of the font in pixels. </td></tr>
|
1785
|
+
<tr><td valign="top"></td><td valign="top"><em>lineSpacing</em> </td><td>Spacing between two lines of text in pixels. </td></tr>
|
1786
|
+
<tr><td valign="top"></td><td valign="top"><em>maxWidth</em> </td><td>Maximal width of the bitmap that will be returned. Text will be split into multiple lines to avoid drawing over the right border. When a single word is too long, it will be truncated. </td></tr>
|
1787
|
+
</table>
|
1788
|
+
</dl>
|
1789
|
+
|
1790
|
+
</div>
|
1791
|
+
</div><p>
|
1792
|
+
<a class="anchor" name="7b47dae2708d707c82cffeaf2104e42b"></a><!-- doxytag: member="Gosu::defaultFontName" ref="7b47dae2708d707c82cffeaf2104e42b" args="()" -->
|
1793
|
+
<div class="memitem">
|
1794
|
+
<div class="memproto">
|
1795
|
+
<table class="memname">
|
1796
|
+
<tr>
|
1797
|
+
<td class="memname">std::wstring Gosu::defaultFontName </td>
|
1798
|
+
<td>(</td>
|
1799
|
+
<td class="paramname"> </td>
|
1800
|
+
<td> ) </td>
|
1801
|
+
<td width="100%"></td>
|
1802
|
+
</tr>
|
1803
|
+
</table>
|
1804
|
+
</div>
|
1805
|
+
<div class="memdoc">
|
1806
|
+
|
1807
|
+
<p>
|
1808
|
+
Returns the name of a neutral font that is available on the current platform.
|
1809
|
+
<p>
|
1810
|
+
|
1811
|
+
</div>
|
1812
|
+
</div><p>
|
1813
|
+
<a class="anchor" name="a06a29a8aefa1be625072b02e2d825bd"></a><!-- doxytag: member="Gosu::distance" ref="a06a29a8aefa1be625072b02e2d825bd" args="(double x1, double y1, double x2, double y2)" -->
|
1814
|
+
<div class="memitem">
|
1815
|
+
<div class="memproto">
|
1816
|
+
<table class="memname">
|
1817
|
+
<tr>
|
1818
|
+
<td class="memname">double Gosu::distance </td>
|
1819
|
+
<td>(</td>
|
1820
|
+
<td class="paramtype">double </td>
|
1821
|
+
<td class="paramname"> <em>x1</em>, </td>
|
1822
|
+
</tr>
|
1823
|
+
<tr>
|
1824
|
+
<td class="paramkey"></td>
|
1825
|
+
<td></td>
|
1826
|
+
<td class="paramtype">double </td>
|
1827
|
+
<td class="paramname"> <em>y1</em>, </td>
|
1828
|
+
</tr>
|
1829
|
+
<tr>
|
1830
|
+
<td class="paramkey"></td>
|
1831
|
+
<td></td>
|
1832
|
+
<td class="paramtype">double </td>
|
1833
|
+
<td class="paramname"> <em>x2</em>, </td>
|
1834
|
+
</tr>
|
1835
|
+
<tr>
|
1836
|
+
<td class="paramkey"></td>
|
1837
|
+
<td></td>
|
1838
|
+
<td class="paramtype">double </td>
|
1839
|
+
<td class="paramname"> <em>y2</em></td><td> </td>
|
1840
|
+
</tr>
|
1841
|
+
<tr>
|
1842
|
+
<td></td>
|
1843
|
+
<td>)</td>
|
1844
|
+
<td></td><td></td><td width="100%"></td>
|
1845
|
+
</tr>
|
1846
|
+
</table>
|
1847
|
+
</div>
|
1848
|
+
<div class="memdoc">
|
1849
|
+
|
1850
|
+
<p>
|
1851
|
+
Returns the distance between two points.
|
1852
|
+
<p>
|
1853
|
+
|
1854
|
+
</div>
|
1855
|
+
</div><p>
|
1856
|
+
<a class="anchor" name="58015f2ee3527184171d3d99176fd360"></a><!-- doxytag: member="Gosu::distanceSqr" ref="58015f2ee3527184171d3d99176fd360" args="(double x1, double y1, double x2, double y2)" -->
|
1857
|
+
<div class="memitem">
|
1858
|
+
<div class="memproto">
|
1859
|
+
<table class="memname">
|
1860
|
+
<tr>
|
1861
|
+
<td class="memname">double Gosu::distanceSqr </td>
|
1862
|
+
<td>(</td>
|
1863
|
+
<td class="paramtype">double </td>
|
1864
|
+
<td class="paramname"> <em>x1</em>, </td>
|
1865
|
+
</tr>
|
1866
|
+
<tr>
|
1867
|
+
<td class="paramkey"></td>
|
1868
|
+
<td></td>
|
1869
|
+
<td class="paramtype">double </td>
|
1870
|
+
<td class="paramname"> <em>y1</em>, </td>
|
1871
|
+
</tr>
|
1872
|
+
<tr>
|
1873
|
+
<td class="paramkey"></td>
|
1874
|
+
<td></td>
|
1875
|
+
<td class="paramtype">double </td>
|
1876
|
+
<td class="paramname"> <em>x2</em>, </td>
|
1877
|
+
</tr>
|
1878
|
+
<tr>
|
1879
|
+
<td class="paramkey"></td>
|
1880
|
+
<td></td>
|
1881
|
+
<td class="paramtype">double </td>
|
1882
|
+
<td class="paramname"> <em>y2</em></td><td> </td>
|
1883
|
+
</tr>
|
1884
|
+
<tr>
|
1885
|
+
<td></td>
|
1886
|
+
<td>)</td>
|
1887
|
+
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
1888
|
+
</tr>
|
1889
|
+
</table>
|
1890
|
+
</div>
|
1891
|
+
<div class="memdoc">
|
1892
|
+
|
1893
|
+
<p>
|
1894
|
+
Returns the square of the distance between two points.
|
1895
|
+
<p>
|
1896
|
+
|
1897
|
+
<p>References <a class="el" href="Math_8hpp-source.html#l00053">square()</a>.</p>
|
1898
|
+
|
1899
|
+
</div>
|
1900
|
+
</div><p>
|
1901
|
+
<a class="anchor" name="ea254f5ef0d5cf99b31c4ae37dc62a73"></a><!-- doxytag: member="Gosu::drawText" ref="ea254f5ef0d5cf99b31c4ae37dc62a73" args="(Bitmap &bitmap, const std::wstring &text, int x, int y, Color c, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0)" -->
|
1902
|
+
<div class="memitem">
|
1903
|
+
<div class="memproto">
|
1904
|
+
<table class="memname">
|
1905
|
+
<tr>
|
1906
|
+
<td class="memname">void Gosu::drawText </td>
|
1907
|
+
<td>(</td>
|
1908
|
+
<td class="paramtype">Bitmap & </td>
|
1909
|
+
<td class="paramname"> <em>bitmap</em>, </td>
|
1910
|
+
</tr>
|
1911
|
+
<tr>
|
1912
|
+
<td class="paramkey"></td>
|
1913
|
+
<td></td>
|
1914
|
+
<td class="paramtype">const std::wstring & </td>
|
1915
|
+
<td class="paramname"> <em>text</em>, </td>
|
1916
|
+
</tr>
|
1917
|
+
<tr>
|
1918
|
+
<td class="paramkey"></td>
|
1919
|
+
<td></td>
|
1920
|
+
<td class="paramtype">int </td>
|
1921
|
+
<td class="paramname"> <em>x</em>, </td>
|
1922
|
+
</tr>
|
1923
|
+
<tr>
|
1924
|
+
<td class="paramkey"></td>
|
1925
|
+
<td></td>
|
1926
|
+
<td class="paramtype">int </td>
|
1927
|
+
<td class="paramname"> <em>y</em>, </td>
|
1928
|
+
</tr>
|
1929
|
+
<tr>
|
1930
|
+
<td class="paramkey"></td>
|
1931
|
+
<td></td>
|
1932
|
+
<td class="paramtype">Color </td>
|
1933
|
+
<td class="paramname"> <em>c</em>, </td>
|
1934
|
+
</tr>
|
1935
|
+
<tr>
|
1936
|
+
<td class="paramkey"></td>
|
1937
|
+
<td></td>
|
1938
|
+
<td class="paramtype">const std::wstring & </td>
|
1939
|
+
<td class="paramname"> <em>fontName</em>, </td>
|
1940
|
+
</tr>
|
1941
|
+
<tr>
|
1942
|
+
<td class="paramkey"></td>
|
1943
|
+
<td></td>
|
1944
|
+
<td class="paramtype">unsigned </td>
|
1945
|
+
<td class="paramname"> <em>fontHeight</em>, </td>
|
1946
|
+
</tr>
|
1947
|
+
<tr>
|
1948
|
+
<td class="paramkey"></td>
|
1949
|
+
<td></td>
|
1950
|
+
<td class="paramtype">unsigned </td>
|
1951
|
+
<td class="paramname"> <em>fontFlags</em> = <code>0</code></td><td> </td>
|
1952
|
+
</tr>
|
1953
|
+
<tr>
|
1954
|
+
<td></td>
|
1955
|
+
<td>)</td>
|
1956
|
+
<td></td><td></td><td width="100%"></td>
|
1957
|
+
</tr>
|
1958
|
+
</table>
|
1959
|
+
</div>
|
1960
|
+
<div class="memdoc">
|
1961
|
+
|
1962
|
+
<p>
|
1963
|
+
Draws a line of text on a bitmap.
|
1964
|
+
<p>
|
1965
|
+
<dl compact><dt><b>Parameters:</b></dt><dd>
|
1966
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
1967
|
+
<tr><td valign="top"></td><td valign="top"><em>fontName</em> </td><td>Name of a system font, or a filename to a TTF file (must contain '/'). </td></tr>
|
1968
|
+
<tr><td valign="top"></td><td valign="top"><em>fontHeight</em> </td><td>Height, in pixels, of the text. </td></tr>
|
1969
|
+
<tr><td valign="top"></td><td valign="top"><em>fontFlags</em> </td><td>Binary combination of members of the FontFlags enum. </td></tr>
|
1970
|
+
</table>
|
1971
|
+
</dl>
|
1972
|
+
|
1973
|
+
</div>
|
1974
|
+
</div><p>
|
1975
|
+
<a class="anchor" name="823d62ccac7a28ea78ea0a987687d649"></a><!-- doxytag: member="Gosu::imagesFromTiledBitmap" ref="823d62ccac7a28ea78ea0a987687d649" args="(Graphics &graphics, const Bitmap &bmp, int tileWidth, int tileHeight, bool hardBorders, Container &appendTo)" -->
|
1976
|
+
<div class="memitem">
|
1977
|
+
<div class="memproto">
|
1978
|
+
<div class="memtemplate">
|
1979
|
+
template<typename Container> </div>
|
1980
|
+
<table class="memname">
|
1981
|
+
<tr>
|
1982
|
+
<td class="memname">void Gosu::imagesFromTiledBitmap </td>
|
1983
|
+
<td>(</td>
|
1984
|
+
<td class="paramtype">Graphics & </td>
|
1985
|
+
<td class="paramname"> <em>graphics</em>, </td>
|
1986
|
+
</tr>
|
1987
|
+
<tr>
|
1988
|
+
<td class="paramkey"></td>
|
1989
|
+
<td></td>
|
1990
|
+
<td class="paramtype">const Bitmap & </td>
|
1991
|
+
<td class="paramname"> <em>bmp</em>, </td>
|
1992
|
+
</tr>
|
1993
|
+
<tr>
|
1994
|
+
<td class="paramkey"></td>
|
1995
|
+
<td></td>
|
1996
|
+
<td class="paramtype">int </td>
|
1997
|
+
<td class="paramname"> <em>tileWidth</em>, </td>
|
1998
|
+
</tr>
|
1999
|
+
<tr>
|
2000
|
+
<td class="paramkey"></td>
|
2001
|
+
<td></td>
|
2002
|
+
<td class="paramtype">int </td>
|
2003
|
+
<td class="paramname"> <em>tileHeight</em>, </td>
|
2004
|
+
</tr>
|
2005
|
+
<tr>
|
2006
|
+
<td class="paramkey"></td>
|
2007
|
+
<td></td>
|
2008
|
+
<td class="paramtype">bool </td>
|
2009
|
+
<td class="paramname"> <em>hardBorders</em>, </td>
|
2010
|
+
</tr>
|
2011
|
+
<tr>
|
2012
|
+
<td class="paramkey"></td>
|
2013
|
+
<td></td>
|
2014
|
+
<td class="paramtype">Container & </td>
|
2015
|
+
<td class="paramname"> <em>appendTo</em></td><td> </td>
|
2016
|
+
</tr>
|
2017
|
+
<tr>
|
2018
|
+
<td></td>
|
2019
|
+
<td>)</td>
|
2020
|
+
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
2021
|
+
</tr>
|
2022
|
+
</table>
|
2023
|
+
</div>
|
2024
|
+
<div class="memdoc">
|
2025
|
+
|
2026
|
+
<p>
|
2027
|
+
Convenience function that splits a bitmap into an area of small rectangles and creates images from them.
|
2028
|
+
<p>
|
2029
|
+
<dl compact><dt><b>Parameters:</b></dt><dd>
|
2030
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
2031
|
+
<tr><td valign="top"></td><td valign="top"><em>tileWidth</em> </td><td>If positive, specifies the width of one tile in pixels. If negative, the bitmap is divided into -tileWidth rows. </td></tr>
|
2032
|
+
<tr><td valign="top"></td><td valign="top"><em>tileHeight</em> </td><td>See tileWidth. </td></tr>
|
2033
|
+
<tr><td valign="top"></td><td valign="top"><em>appendTo</em> </td><td>STL container to which the images will be appended. Must provide a push_back member function; std::vector<boost::shared_ptr<Image>> is usually the most reasonable container. </td></tr>
|
2034
|
+
</table>
|
2035
|
+
</dl>
|
2036
|
+
|
2037
|
+
<p>References <a class="el" href="Bitmap_8hpp-source.html#l00029">Gosu::Bitmap::height()</a>, and <a class="el" href="Bitmap_8hpp-source.html#l00028">Gosu::Bitmap::width()</a>.</p>
|
2038
|
+
|
2039
|
+
</div>
|
2040
|
+
</div><p>
|
2041
|
+
<a class="anchor" name="b347c1ac66f7c276cc505acb62947b23"></a><!-- doxytag: member="Gosu::imagesFromTiledBitmap" ref="b347c1ac66f7c276cc505acb62947b23" args="(Graphics &graphics, const std::wstring &filename, int tileWidth, int tileHeight, bool hardBorders, Container &appendTo)" -->
|
2042
|
+
<div class="memitem">
|
2043
|
+
<div class="memproto">
|
2044
|
+
<div class="memtemplate">
|
2045
|
+
template<typename Container> </div>
|
2046
|
+
<table class="memname">
|
2047
|
+
<tr>
|
2048
|
+
<td class="memname">void Gosu::imagesFromTiledBitmap </td>
|
2049
|
+
<td>(</td>
|
2050
|
+
<td class="paramtype">Graphics & </td>
|
2051
|
+
<td class="paramname"> <em>graphics</em>, </td>
|
2052
|
+
</tr>
|
2053
|
+
<tr>
|
2054
|
+
<td class="paramkey"></td>
|
2055
|
+
<td></td>
|
2056
|
+
<td class="paramtype">const std::wstring & </td>
|
2057
|
+
<td class="paramname"> <em>filename</em>, </td>
|
2058
|
+
</tr>
|
2059
|
+
<tr>
|
2060
|
+
<td class="paramkey"></td>
|
2061
|
+
<td></td>
|
2062
|
+
<td class="paramtype">int </td>
|
2063
|
+
<td class="paramname"> <em>tileWidth</em>, </td>
|
2064
|
+
</tr>
|
2065
|
+
<tr>
|
2066
|
+
<td class="paramkey"></td>
|
2067
|
+
<td></td>
|
2068
|
+
<td class="paramtype">int </td>
|
2069
|
+
<td class="paramname"> <em>tileHeight</em>, </td>
|
2070
|
+
</tr>
|
2071
|
+
<tr>
|
2072
|
+
<td class="paramkey"></td>
|
2073
|
+
<td></td>
|
2074
|
+
<td class="paramtype">bool </td>
|
2075
|
+
<td class="paramname"> <em>hardBorders</em>, </td>
|
2076
|
+
</tr>
|
2077
|
+
<tr>
|
2078
|
+
<td class="paramkey"></td>
|
2079
|
+
<td></td>
|
2080
|
+
<td class="paramtype">Container & </td>
|
2081
|
+
<td class="paramname"> <em>appendTo</em></td><td> </td>
|
2082
|
+
</tr>
|
2083
|
+
<tr>
|
2084
|
+
<td></td>
|
2085
|
+
<td>)</td>
|
2086
|
+
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
2087
|
+
</tr>
|
2088
|
+
</table>
|
2089
|
+
</div>
|
2090
|
+
<div class="memdoc">
|
2091
|
+
|
2092
|
+
<p>
|
2093
|
+
Convenience function that splits a BMP or PNG file into an area of small rectangles and creates images from them.
|
2094
|
+
<p>
|
2095
|
+
<dl compact><dt><b>Parameters:</b></dt><dd>
|
2096
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
2097
|
+
<tr><td valign="top"></td><td valign="top"><em>tileWidth</em> </td><td>If positive, specifies the width of one tile in pixels. If negative, the bitmap is divided into -tileWidth rows. </td></tr>
|
2098
|
+
<tr><td valign="top"></td><td valign="top"><em>tileHeight</em> </td><td>See tileWidth. </td></tr>
|
2099
|
+
<tr><td valign="top"></td><td valign="top"><em>appendTo</em> </td><td>STL container to which the images will be appended. Must provide a push_back member function; std::vector<boost::shared_ptr<Image>> is usually the most reasonable container. </td></tr>
|
2100
|
+
</table>
|
2101
|
+
</dl>
|
2102
|
+
|
2103
|
+
</div>
|
2104
|
+
</div><p>
|
2105
|
+
<a class="anchor" name="29515f6c9be056e9ca5f672dec154847"></a><!-- doxytag: member="Gosu::interpolate" ref="29515f6c9be056e9ca5f672dec154847" args="(T a, T b, double weight=0.5)" -->
|
2106
|
+
<div class="memitem">
|
2107
|
+
<div class="memproto">
|
2108
|
+
<div class="memtemplate">
|
2109
|
+
template<typename T> </div>
|
2110
|
+
<table class="memname">
|
2111
|
+
<tr>
|
2112
|
+
<td class="memname">T Gosu::interpolate </td>
|
2113
|
+
<td>(</td>
|
2114
|
+
<td class="paramtype">T </td>
|
2115
|
+
<td class="paramname"> <em>a</em>, </td>
|
2116
|
+
</tr>
|
2117
|
+
<tr>
|
2118
|
+
<td class="paramkey"></td>
|
2119
|
+
<td></td>
|
2120
|
+
<td class="paramtype">T </td>
|
2121
|
+
<td class="paramname"> <em>b</em>, </td>
|
2122
|
+
</tr>
|
2123
|
+
<tr>
|
2124
|
+
<td class="paramkey"></td>
|
2125
|
+
<td></td>
|
2126
|
+
<td class="paramtype">double </td>
|
2127
|
+
<td class="paramname"> <em>weight</em> = <code>0.5</code></td><td> </td>
|
2128
|
+
</tr>
|
2129
|
+
<tr>
|
2130
|
+
<td></td>
|
2131
|
+
<td>)</td>
|
2132
|
+
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
2133
|
+
</tr>
|
2134
|
+
</table>
|
2135
|
+
</div>
|
2136
|
+
<div class="memdoc">
|
2137
|
+
|
2138
|
+
<p>
|
2139
|
+
Interpolates a value between a and b, weight being the bias towards the second value.
|
2140
|
+
<p>
|
2141
|
+
Examples: interpolate(0, 10, 0.5) == 5, interpolate(-10, 10, 0.25) == 5, interpolate(0, 10, -0.5) == -5.
|
2142
|
+
</div>
|
2143
|
+
</div><p>
|
2144
|
+
<a class="anchor" name="55c2cfa7575386d8eb6a8dc615e905ae"></a><!-- doxytag: member="Gosu::interpolate" ref="55c2cfa7575386d8eb6a8dc615e905ae" args="(Color a, Color b, double weight=0.5)" -->
|
2145
|
+
<div class="memitem">
|
2146
|
+
<div class="memproto">
|
2147
|
+
<table class="memname">
|
2148
|
+
<tr>
|
2149
|
+
<td class="memname"><a class="el" href="classGosu_1_1Color.html">Color</a> Gosu::interpolate </td>
|
2150
|
+
<td>(</td>
|
2151
|
+
<td class="paramtype">Color </td>
|
2152
|
+
<td class="paramname"> <em>a</em>, </td>
|
2153
|
+
</tr>
|
2154
|
+
<tr>
|
2155
|
+
<td class="paramkey"></td>
|
2156
|
+
<td></td>
|
2157
|
+
<td class="paramtype">Color </td>
|
2158
|
+
<td class="paramname"> <em>b</em>, </td>
|
2159
|
+
</tr>
|
2160
|
+
<tr>
|
2161
|
+
<td class="paramkey"></td>
|
2162
|
+
<td></td>
|
2163
|
+
<td class="paramtype">double </td>
|
2164
|
+
<td class="paramname"> <em>weight</em> = <code>0.5</code></td><td> </td>
|
2165
|
+
</tr>
|
2166
|
+
<tr>
|
2167
|
+
<td></td>
|
2168
|
+
<td>)</td>
|
2169
|
+
<td></td><td></td><td width="100%"></td>
|
2170
|
+
</tr>
|
2171
|
+
</table>
|
2172
|
+
</div>
|
2173
|
+
<div class="memdoc">
|
2174
|
+
|
2175
|
+
<p>
|
2176
|
+
Interpolates linearly between two colors, with a given weight towards the second color.
|
2177
|
+
<p>
|
2178
|
+
Specialization of the general function in <a class="el" href="Math_8hpp.html" title="Contains simple math functionality.">Gosu/Math.hpp</a>.
|
2179
|
+
</div>
|
2180
|
+
</div><p>
|
2181
|
+
<a class="anchor" name="29c60cb8e87a99f7ce924ae0530029a0"></a><!-- doxytag: member="Gosu::loadFile" ref="29c60cb8e87a99f7ce924ae0530029a0" args="(Buffer &buffer, const std::wstring &filename)" -->
|
2182
|
+
<div class="memitem">
|
2183
|
+
<div class="memproto">
|
2184
|
+
<table class="memname">
|
2185
|
+
<tr>
|
2186
|
+
<td class="memname">void Gosu::loadFile </td>
|
2187
|
+
<td>(</td>
|
2188
|
+
<td class="paramtype">Buffer & </td>
|
2189
|
+
<td class="paramname"> <em>buffer</em>, </td>
|
2190
|
+
</tr>
|
2191
|
+
<tr>
|
2192
|
+
<td class="paramkey"></td>
|
2193
|
+
<td></td>
|
2194
|
+
<td class="paramtype">const std::wstring & </td>
|
2195
|
+
<td class="paramname"> <em>filename</em></td><td> </td>
|
2196
|
+
</tr>
|
2197
|
+
<tr>
|
2198
|
+
<td></td>
|
2199
|
+
<td>)</td>
|
2200
|
+
<td></td><td></td><td width="100%"></td>
|
2201
|
+
</tr>
|
2202
|
+
</table>
|
2203
|
+
</div>
|
2204
|
+
<div class="memdoc">
|
2205
|
+
|
2206
|
+
<p>
|
2207
|
+
Loads a whole file into a buffer.
|
2208
|
+
<p>
|
2209
|
+
|
2210
|
+
</div>
|
2211
|
+
</div><p>
|
2212
|
+
<a class="anchor" name="5eb2a400728e57559f35615af17ead55"></a><!-- doxytag: member="Gosu::loadFromBMP" ref="5eb2a400728e57559f35615af17ead55" args="(Bitmap &bmp, Reader reader)" -->
|
2213
|
+
<div class="memitem">
|
2214
|
+
<div class="memproto">
|
2215
|
+
<table class="memname">
|
2216
|
+
<tr>
|
2217
|
+
<td class="memname">Reader Gosu::loadFromBMP </td>
|
2218
|
+
<td>(</td>
|
2219
|
+
<td class="paramtype">Bitmap & </td>
|
2220
|
+
<td class="paramname"> <em>bmp</em>, </td>
|
2221
|
+
</tr>
|
2222
|
+
<tr>
|
2223
|
+
<td class="paramkey"></td>
|
2224
|
+
<td></td>
|
2225
|
+
<td class="paramtype">Reader </td>
|
2226
|
+
<td class="paramname"> <em>reader</em></td><td> </td>
|
2227
|
+
</tr>
|
2228
|
+
<tr>
|
2229
|
+
<td></td>
|
2230
|
+
<td>)</td>
|
2231
|
+
<td></td><td></td><td width="100%"></td>
|
2232
|
+
</tr>
|
2233
|
+
</table>
|
2234
|
+
</div>
|
2235
|
+
<div class="memdoc">
|
2236
|
+
|
2237
|
+
<p>
|
2238
|
+
Loads a Windows or OS/2 BMP file into the given bitmap.
|
2239
|
+
<p>
|
2240
|
+
|
2241
|
+
</div>
|
2242
|
+
</div><p>
|
2243
|
+
<a class="anchor" name="1be1c9db6a1ecf3b5c62797079e49e70"></a><!-- doxytag: member="Gosu::loadFromPNG" ref="1be1c9db6a1ecf3b5c62797079e49e70" args="(Bitmap &bmp, Reader reader)" -->
|
2244
|
+
<div class="memitem">
|
2245
|
+
<div class="memproto">
|
2246
|
+
<table class="memname">
|
2247
|
+
<tr>
|
2248
|
+
<td class="memname">Reader Gosu::loadFromPNG </td>
|
2249
|
+
<td>(</td>
|
2250
|
+
<td class="paramtype">Bitmap & </td>
|
2251
|
+
<td class="paramname"> <em>bmp</em>, </td>
|
2252
|
+
</tr>
|
2253
|
+
<tr>
|
2254
|
+
<td class="paramkey"></td>
|
2255
|
+
<td></td>
|
2256
|
+
<td class="paramtype">Reader </td>
|
2257
|
+
<td class="paramname"> <em>reader</em></td><td> </td>
|
2258
|
+
</tr>
|
2259
|
+
<tr>
|
2260
|
+
<td></td>
|
2261
|
+
<td>)</td>
|
2262
|
+
<td></td><td></td><td width="100%"></td>
|
2263
|
+
</tr>
|
2264
|
+
</table>
|
2265
|
+
</div>
|
2266
|
+
<div class="memdoc">
|
2267
|
+
|
2268
|
+
<p>
|
2269
|
+
Loads a PNG file into the given bitmap.
|
2270
|
+
<p>
|
2271
|
+
|
2272
|
+
</div>
|
2273
|
+
</div><p>
|
2274
|
+
<a class="anchor" name="37bf53016e58939d6bf2f7a261c6c4db"></a><!-- doxytag: member="Gosu::milliseconds" ref="37bf53016e58939d6bf2f7a261c6c4db" args="()" -->
|
2275
|
+
<div class="memitem">
|
2276
|
+
<div class="memproto">
|
2277
|
+
<table class="memname">
|
2278
|
+
<tr>
|
2279
|
+
<td class="memname">unsigned long Gosu::milliseconds </td>
|
2280
|
+
<td>(</td>
|
2281
|
+
<td class="paramname"> </td>
|
2282
|
+
<td> ) </td>
|
2283
|
+
<td width="100%"></td>
|
2284
|
+
</tr>
|
2285
|
+
</table>
|
2286
|
+
</div>
|
2287
|
+
<div class="memdoc">
|
2288
|
+
|
2289
|
+
<p>
|
2290
|
+
Incrementing, possibly wrapping millisecond timer.
|
2291
|
+
<p>
|
2292
|
+
|
2293
|
+
</div>
|
2294
|
+
</div><p>
|
2295
|
+
<a class="anchor" name="bb85501ec3787bd0fc80187231788bea"></a><!-- doxytag: member="Gosu::multiply" ref="bb85501ec3787bd0fc80187231788bea" args="(Color a, Color b)" -->
|
2296
|
+
<div class="memitem">
|
2297
|
+
<div class="memproto">
|
2298
|
+
<table class="memname">
|
2299
|
+
<tr>
|
2300
|
+
<td class="memname"><a class="el" href="classGosu_1_1Color.html">Color</a> Gosu::multiply </td>
|
2301
|
+
<td>(</td>
|
2302
|
+
<td class="paramtype">Color </td>
|
2303
|
+
<td class="paramname"> <em>a</em>, </td>
|
2304
|
+
</tr>
|
2305
|
+
<tr>
|
2306
|
+
<td class="paramkey"></td>
|
2307
|
+
<td></td>
|
2308
|
+
<td class="paramtype">Color </td>
|
2309
|
+
<td class="paramname"> <em>b</em></td><td> </td>
|
2310
|
+
</tr>
|
2311
|
+
<tr>
|
2312
|
+
<td></td>
|
2313
|
+
<td>)</td>
|
2314
|
+
<td></td><td></td><td width="100%"></td>
|
2315
|
+
</tr>
|
2316
|
+
</table>
|
2317
|
+
</div>
|
2318
|
+
<div class="memdoc">
|
2319
|
+
|
2320
|
+
<p>
|
2321
|
+
Combines two colors as if their channels were mapped to the 0.
|
2322
|
+
<p>
|
2323
|
+
.1 range and then multiplied with each other.
|
2324
|
+
</div>
|
2325
|
+
</div><p>
|
2326
|
+
<a class="anchor" name="66106eac9ffd4e4047e891c20196a5a2"></a><!-- doxytag: member="Gosu::narrow" ref="66106eac9ffd4e4047e891c20196a5a2" args="(const std::wstring &ws)" -->
|
2327
|
+
<div class="memitem">
|
2328
|
+
<div class="memproto">
|
2329
|
+
<table class="memname">
|
2330
|
+
<tr>
|
2331
|
+
<td class="memname">std::string Gosu::narrow </td>
|
2332
|
+
<td>(</td>
|
2333
|
+
<td class="paramtype">const std::wstring & </td>
|
2334
|
+
<td class="paramname"> <em>ws</em> </td>
|
2335
|
+
<td> ) </td>
|
2336
|
+
<td width="100%"></td>
|
2337
|
+
</tr>
|
2338
|
+
</table>
|
2339
|
+
</div>
|
2340
|
+
<div class="memdoc">
|
2341
|
+
|
2342
|
+
<p>
|
2343
|
+
Converts an std::wstring into an std::string.
|
2344
|
+
<p>
|
2345
|
+
|
2346
|
+
</div>
|
2347
|
+
</div><p>
|
2348
|
+
<a class="anchor" name="c6f147ab90f7e343dd9d70cc8bf3a91b"></a><!-- doxytag: member="Gosu::normalizeAngle" ref="c6f147ab90f7e343dd9d70cc8bf3a91b" args="(double angle)" -->
|
2349
|
+
<div class="memitem">
|
2350
|
+
<div class="memproto">
|
2351
|
+
<table class="memname">
|
2352
|
+
<tr>
|
2353
|
+
<td class="memname">double Gosu::normalizeAngle </td>
|
2354
|
+
<td>(</td>
|
2355
|
+
<td class="paramtype">double </td>
|
2356
|
+
<td class="paramname"> <em>angle</em> </td>
|
2357
|
+
<td> ) </td>
|
2358
|
+
<td width="100%"></td>
|
2359
|
+
</tr>
|
2360
|
+
</table>
|
2361
|
+
</div>
|
2362
|
+
<div class="memdoc">
|
2363
|
+
|
2364
|
+
<p>
|
2365
|
+
Normalizes an angle to fit into the range [0; 360[.
|
2366
|
+
<p>
|
2367
|
+
|
2368
|
+
</div>
|
2369
|
+
</div><p>
|
2370
|
+
<a class="anchor" name="e61d02831aa7026e96f1e53a358609b2"></a><!-- doxytag: member="Gosu::offsetX" ref="e61d02831aa7026e96f1e53a358609b2" args="(double angle, double radius)" -->
|
2371
|
+
<div class="memitem">
|
2372
|
+
<div class="memproto">
|
2373
|
+
<table class="memname">
|
2374
|
+
<tr>
|
2375
|
+
<td class="memname">double Gosu::offsetX </td>
|
2376
|
+
<td>(</td>
|
2377
|
+
<td class="paramtype">double </td>
|
2378
|
+
<td class="paramname"> <em>angle</em>, </td>
|
2379
|
+
</tr>
|
2380
|
+
<tr>
|
2381
|
+
<td class="paramkey"></td>
|
2382
|
+
<td></td>
|
2383
|
+
<td class="paramtype">double </td>
|
2384
|
+
<td class="paramname"> <em>radius</em></td><td> </td>
|
2385
|
+
</tr>
|
2386
|
+
<tr>
|
2387
|
+
<td></td>
|
2388
|
+
<td>)</td>
|
2389
|
+
<td></td><td></td><td width="100%"></td>
|
2390
|
+
</tr>
|
2391
|
+
</table>
|
2392
|
+
</div>
|
2393
|
+
<div class="memdoc">
|
2394
|
+
|
2395
|
+
<p>
|
2396
|
+
Returns the horizontal distance between the origin and the point to which you would get if you moved radius pixels in the direction specified by angle.
|
2397
|
+
<p>
|
2398
|
+
<dl compact><dt><b>Parameters:</b></dt><dd>
|
2399
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
2400
|
+
<tr><td valign="top"></td><td valign="top"><em>angle</em> </td><td>Angle in degrees where 0.0 means upwards. </td></tr>
|
2401
|
+
</table>
|
2402
|
+
</dl>
|
2403
|
+
|
2404
|
+
</div>
|
2405
|
+
</div><p>
|
2406
|
+
<a class="anchor" name="9e0845d8b2ed385cb4e8593e7a308a08"></a><!-- doxytag: member="Gosu::offsetY" ref="9e0845d8b2ed385cb4e8593e7a308a08" args="(double angle, double radius)" -->
|
2407
|
+
<div class="memitem">
|
2408
|
+
<div class="memproto">
|
2409
|
+
<table class="memname">
|
2410
|
+
<tr>
|
2411
|
+
<td class="memname">double Gosu::offsetY </td>
|
2412
|
+
<td>(</td>
|
2413
|
+
<td class="paramtype">double </td>
|
2414
|
+
<td class="paramname"> <em>angle</em>, </td>
|
2415
|
+
</tr>
|
2416
|
+
<tr>
|
2417
|
+
<td class="paramkey"></td>
|
2418
|
+
<td></td>
|
2419
|
+
<td class="paramtype">double </td>
|
2420
|
+
<td class="paramname"> <em>radius</em></td><td> </td>
|
2421
|
+
</tr>
|
2422
|
+
<tr>
|
2423
|
+
<td></td>
|
2424
|
+
<td>)</td>
|
2425
|
+
<td></td><td></td><td width="100%"></td>
|
2426
|
+
</tr>
|
2427
|
+
</table>
|
2428
|
+
</div>
|
2429
|
+
<div class="memdoc">
|
2430
|
+
|
2431
|
+
<p>
|
2432
|
+
Returns the vertical distance between the origin and the point to which you would get if you moved radius pixels in the direction specified by angle.
|
2433
|
+
<p>
|
2434
|
+
<dl compact><dt><b>Parameters:</b></dt><dd>
|
2435
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
2436
|
+
<tr><td valign="top"></td><td valign="top"><em>angle</em> </td><td>Angle in degrees where 0.0 means upwards. </td></tr>
|
2437
|
+
</table>
|
2438
|
+
</dl>
|
2439
|
+
|
2440
|
+
</div>
|
2441
|
+
</div><p>
|
2442
|
+
<a class="anchor" name="8abc916db977614382f04aef415c21c3"></a><!-- doxytag: member="Gosu::operator==" ref="8abc916db977614382f04aef415c21c3" args="(Button lhs, Button rhs)" -->
|
2443
|
+
<div class="memitem">
|
2444
|
+
<div class="memproto">
|
2445
|
+
<table class="memname">
|
2446
|
+
<tr>
|
2447
|
+
<td class="memname">bool Gosu::operator== </td>
|
2448
|
+
<td>(</td>
|
2449
|
+
<td class="paramtype">Button </td>
|
2450
|
+
<td class="paramname"> <em>lhs</em>, </td>
|
2451
|
+
</tr>
|
2452
|
+
<tr>
|
2453
|
+
<td class="paramkey"></td>
|
2454
|
+
<td></td>
|
2455
|
+
<td class="paramtype">Button </td>
|
2456
|
+
<td class="paramname"> <em>rhs</em></td><td> </td>
|
2457
|
+
</tr>
|
2458
|
+
<tr>
|
2459
|
+
<td></td>
|
2460
|
+
<td>)</td>
|
2461
|
+
<td></td><td></td><td width="100%"><code> [inline]</code></td>
|
2462
|
+
</tr>
|
2463
|
+
</table>
|
2464
|
+
</div>
|
2465
|
+
<div class="memdoc">
|
2466
|
+
|
2467
|
+
<p>
|
2468
|
+
Tests whether two Buttons identify the same physical button.
|
2469
|
+
<p>
|
2470
|
+
|
2471
|
+
<p>References <a class="el" href="Input_8hpp-source.html#l00042">Gosu::Button::getId()</a>.</p>
|
2472
|
+
|
2473
|
+
</div>
|
2474
|
+
</div><p>
|
2475
|
+
<a class="anchor" name="6c855080566f7f1b1967c90805249dda"></a><!-- doxytag: member="Gosu::random" ref="6c855080566f7f1b1967c90805249dda" args="(double min, double max)" -->
|
2476
|
+
<div class="memitem">
|
2477
|
+
<div class="memproto">
|
2478
|
+
<table class="memname">
|
2479
|
+
<tr>
|
2480
|
+
<td class="memname">double Gosu::random </td>
|
2481
|
+
<td>(</td>
|
2482
|
+
<td class="paramtype">double </td>
|
2483
|
+
<td class="paramname"> <em>min</em>, </td>
|
2484
|
+
</tr>
|
2485
|
+
<tr>
|
2486
|
+
<td class="paramkey"></td>
|
2487
|
+
<td></td>
|
2488
|
+
<td class="paramtype">double </td>
|
2489
|
+
<td class="paramname"> <em>max</em></td><td> </td>
|
2490
|
+
</tr>
|
2491
|
+
<tr>
|
2492
|
+
<td></td>
|
2493
|
+
<td>)</td>
|
2494
|
+
<td></td><td></td><td width="100%"></td>
|
2495
|
+
</tr>
|
2496
|
+
</table>
|
2497
|
+
</div>
|
2498
|
+
<div class="memdoc">
|
2499
|
+
|
2500
|
+
<p>
|
2501
|
+
Returns a real value between min and max.
|
2502
|
+
<p>
|
2503
|
+
Uses std::rand (so you have to call std::srand before using it).
|
2504
|
+
</div>
|
2505
|
+
</div><p>
|
2506
|
+
<a class="anchor" name="9e98cb1b194245f7ebb33febdf3ea1ba"></a><!-- doxytag: member="Gosu::resourcePrefix" ref="9e98cb1b194245f7ebb33febdf3ea1ba" args="()" -->
|
2507
|
+
<div class="memitem">
|
2508
|
+
<div class="memproto">
|
2509
|
+
<table class="memname">
|
2510
|
+
<tr>
|
2511
|
+
<td class="memname">std::wstring Gosu::resourcePrefix </td>
|
2512
|
+
<td>(</td>
|
2513
|
+
<td class="paramname"> </td>
|
2514
|
+
<td> ) </td>
|
2515
|
+
<td width="100%"></td>
|
2516
|
+
</tr>
|
2517
|
+
</table>
|
2518
|
+
</div>
|
2519
|
+
<div class="memdoc">
|
2520
|
+
|
2521
|
+
<p>
|
2522
|
+
Prefix for a program's own resources.
|
2523
|
+
<p>
|
2524
|
+
On Windows, the executable's containing directory. On OS X, the application's Resources subdirectory. On Linux, the current directory.
|
2525
|
+
</div>
|
2526
|
+
</div><p>
|
2527
|
+
<a class="anchor" name="496868cf52cf159cf98a00888c4fbc1c"></a><!-- doxytag: member="Gosu::round" ref="496868cf52cf159cf98a00888c4fbc1c" args="(double value)" -->
|
2528
|
+
<div class="memitem">
|
2529
|
+
<div class="memproto">
|
2530
|
+
<table class="memname">
|
2531
|
+
<tr>
|
2532
|
+
<td class="memname">long Gosu::round </td>
|
2533
|
+
<td>(</td>
|
2534
|
+
<td class="paramtype">double </td>
|
2535
|
+
<td class="paramname"> <em>value</em> </td>
|
2536
|
+
<td> ) </td>
|
2537
|
+
<td width="100%"><code> [inline]</code></td>
|
2538
|
+
</tr>
|
2539
|
+
</table>
|
2540
|
+
</div>
|
2541
|
+
<div class="memdoc">
|
2542
|
+
|
2543
|
+
<p>
|
2544
|
+
Rounds a real value towards the next integer.
|
2545
|
+
<p>
|
2546
|
+
|
2547
|
+
</div>
|
2548
|
+
</div><p>
|
2549
|
+
<a class="anchor" name="467aa346fa1a4cb39040bb427b42b7aa"></a><!-- doxytag: member="Gosu::saveFile" ref="467aa346fa1a4cb39040bb427b42b7aa" args="(const Buffer &buffer, const std::wstring &filename)" -->
|
2550
|
+
<div class="memitem">
|
2551
|
+
<div class="memproto">
|
2552
|
+
<table class="memname">
|
2553
|
+
<tr>
|
2554
|
+
<td class="memname">void Gosu::saveFile </td>
|
2555
|
+
<td>(</td>
|
2556
|
+
<td class="paramtype">const Buffer & </td>
|
2557
|
+
<td class="paramname"> <em>buffer</em>, </td>
|
2558
|
+
</tr>
|
2559
|
+
<tr>
|
2560
|
+
<td class="paramkey"></td>
|
2561
|
+
<td></td>
|
2562
|
+
<td class="paramtype">const std::wstring & </td>
|
2563
|
+
<td class="paramname"> <em>filename</em></td><td> </td>
|
2564
|
+
</tr>
|
2565
|
+
<tr>
|
2566
|
+
<td></td>
|
2567
|
+
<td>)</td>
|
2568
|
+
<td></td><td></td><td width="100%"></td>
|
2569
|
+
</tr>
|
2570
|
+
</table>
|
2571
|
+
</div>
|
2572
|
+
<div class="memdoc">
|
2573
|
+
|
2574
|
+
<p>
|
2575
|
+
Creates or overwrites a file with the contents of a buffer.
|
2576
|
+
<p>
|
2577
|
+
|
2578
|
+
</div>
|
2579
|
+
</div><p>
|
2580
|
+
<a class="anchor" name="88c53b6073e06c2ce343bf49579b02de"></a><!-- doxytag: member="Gosu::saveToBMP" ref="88c53b6073e06c2ce343bf49579b02de" args="(const Bitmap &bmp, Writer writer)" -->
|
2581
|
+
<div class="memitem">
|
2582
|
+
<div class="memproto">
|
2583
|
+
<table class="memname">
|
2584
|
+
<tr>
|
2585
|
+
<td class="memname">Writer Gosu::saveToBMP </td>
|
2586
|
+
<td>(</td>
|
2587
|
+
<td class="paramtype">const Bitmap & </td>
|
2588
|
+
<td class="paramname"> <em>bmp</em>, </td>
|
2589
|
+
</tr>
|
2590
|
+
<tr>
|
2591
|
+
<td class="paramkey"></td>
|
2592
|
+
<td></td>
|
2593
|
+
<td class="paramtype">Writer </td>
|
2594
|
+
<td class="paramname"> <em>writer</em></td><td> </td>
|
2595
|
+
</tr>
|
2596
|
+
<tr>
|
2597
|
+
<td></td>
|
2598
|
+
<td>)</td>
|
2599
|
+
<td></td><td></td><td width="100%"></td>
|
2600
|
+
</tr>
|
2601
|
+
</table>
|
2602
|
+
</div>
|
2603
|
+
<div class="memdoc">
|
2604
|
+
|
2605
|
+
<p>
|
2606
|
+
Saves the contents of the given bitmap into windows BMP file data.
|
2607
|
+
<p>
|
2608
|
+
|
2609
|
+
</div>
|
2610
|
+
</div><p>
|
2611
|
+
<a class="anchor" name="7c1a78c796335d8f2183a6694a911eb7"></a><!-- doxytag: member="Gosu::saveToPNG" ref="7c1a78c796335d8f2183a6694a911eb7" args="(const Bitmap &bmp, Writer writer)" -->
|
2612
|
+
<div class="memitem">
|
2613
|
+
<div class="memproto">
|
2614
|
+
<table class="memname">
|
2615
|
+
<tr>
|
2616
|
+
<td class="memname">Writer Gosu::saveToPNG </td>
|
2617
|
+
<td>(</td>
|
2618
|
+
<td class="paramtype">const Bitmap & </td>
|
2619
|
+
<td class="paramname"> <em>bmp</em>, </td>
|
2620
|
+
</tr>
|
2621
|
+
<tr>
|
2622
|
+
<td class="paramkey"></td>
|
2623
|
+
<td></td>
|
2624
|
+
<td class="paramtype">Writer </td>
|
2625
|
+
<td class="paramname"> <em>writer</em></td><td> </td>
|
2626
|
+
</tr>
|
2627
|
+
<tr>
|
2628
|
+
<td></td>
|
2629
|
+
<td>)</td>
|
2630
|
+
<td></td><td></td><td width="100%"></td>
|
2631
|
+
</tr>
|
2632
|
+
</table>
|
2633
|
+
</div>
|
2634
|
+
<div class="memdoc">
|
2635
|
+
|
2636
|
+
<p>
|
2637
|
+
Saves the contents of the given bitmap into PNG file data, 24 bits.
|
2638
|
+
<p>
|
2639
|
+
|
2640
|
+
</div>
|
2641
|
+
</div><p>
|
2642
|
+
<a class="anchor" name="15eb63b0cec84b235d0f4d836731d3e1"></a><!-- doxytag: member="Gosu::sharedResourcePrefix" ref="15eb63b0cec84b235d0f4d836731d3e1" args="()" -->
|
2643
|
+
<div class="memitem">
|
2644
|
+
<div class="memproto">
|
2645
|
+
<table class="memname">
|
2646
|
+
<tr>
|
2647
|
+
<td class="memname">std::wstring Gosu::sharedResourcePrefix </td>
|
2648
|
+
<td>(</td>
|
2649
|
+
<td class="paramname"> </td>
|
2650
|
+
<td> ) </td>
|
2651
|
+
<td width="100%"></td>
|
2652
|
+
</tr>
|
2653
|
+
</table>
|
2654
|
+
</div>
|
2655
|
+
<div class="memdoc">
|
2656
|
+
|
2657
|
+
<p>
|
2658
|
+
Prefix for resources of a group of programs.
|
2659
|
+
<p>
|
2660
|
+
On Windows, the executable's containing directory. On OS X, the application's containing subdirectory. On Linux, the current directory.
|
2661
|
+
</div>
|
2662
|
+
</div><p>
|
2663
|
+
<a class="anchor" name="93f9b0118e9708a760148c8c5da481d2"></a><!-- doxytag: member="Gosu::sleep" ref="93f9b0118e9708a760148c8c5da481d2" args="(unsigned milliseconds)" -->
|
2664
|
+
<div class="memitem">
|
2665
|
+
<div class="memproto">
|
2666
|
+
<table class="memname">
|
2667
|
+
<tr>
|
2668
|
+
<td class="memname">void Gosu::sleep </td>
|
2669
|
+
<td>(</td>
|
2670
|
+
<td class="paramtype">unsigned </td>
|
2671
|
+
<td class="paramname"> <em>milliseconds</em> </td>
|
2672
|
+
<td> ) </td>
|
2673
|
+
<td width="100%"></td>
|
2674
|
+
</tr>
|
2675
|
+
</table>
|
2676
|
+
</div>
|
2677
|
+
<div class="memdoc">
|
2678
|
+
|
2679
|
+
<p>
|
2680
|
+
Freezes the current thread for at least the specified time.
|
2681
|
+
<p>
|
2682
|
+
|
2683
|
+
</div>
|
2684
|
+
</div><p>
|
2685
|
+
<a class="anchor" name="cac78b0775d1b551f4adf9ae76efb4cc"></a><!-- doxytag: member="Gosu::square" ref="cac78b0775d1b551f4adf9ae76efb4cc" args="(T value)" -->
|
2686
|
+
<div class="memitem">
|
2687
|
+
<div class="memproto">
|
2688
|
+
<div class="memtemplate">
|
2689
|
+
template<typename T> </div>
|
2690
|
+
<table class="memname">
|
2691
|
+
<tr>
|
2692
|
+
<td class="memname">T Gosu::square </td>
|
2693
|
+
<td>(</td>
|
2694
|
+
<td class="paramtype">T </td>
|
2695
|
+
<td class="paramname"> <em>value</em> </td>
|
2696
|
+
<td> ) </td>
|
2697
|
+
<td width="100%"><code> [inline]</code></td>
|
2698
|
+
</tr>
|
2699
|
+
</table>
|
2700
|
+
</div>
|
2701
|
+
<div class="memdoc">
|
2702
|
+
|
2703
|
+
<p>
|
2704
|
+
Returns value * value.
|
2705
|
+
<p>
|
2706
|
+
|
2707
|
+
<p>Referenced by <a class="el" href="Math_8hpp-source.html#l00078">distanceSqr()</a>.</p>
|
2708
|
+
|
2709
|
+
</div>
|
2710
|
+
</div><p>
|
2711
|
+
<a class="anchor" name="c2c5b3cca9903139efbd2d601a631ee6"></a><!-- doxytag: member="Gosu::stringToAddress" ref="c2c5b3cca9903139efbd2d601a631ee6" args="(const std::string &s)" -->
|
2712
|
+
<div class="memitem">
|
2713
|
+
<div class="memproto">
|
2714
|
+
<table class="memname">
|
2715
|
+
<tr>
|
2716
|
+
<td class="memname">SocketAddress Gosu::stringToAddress </td>
|
2717
|
+
<td>(</td>
|
2718
|
+
<td class="paramtype">const std::string & </td>
|
2719
|
+
<td class="paramname"> <em>s</em> </td>
|
2720
|
+
<td> ) </td>
|
2721
|
+
<td width="100%"></td>
|
2722
|
+
</tr>
|
2723
|
+
</table>
|
2724
|
+
</div>
|
2725
|
+
<div class="memdoc">
|
2726
|
+
|
2727
|
+
<p>
|
2728
|
+
Tries to convert a dotted IP4 string into an address suitable for socket functions.
|
2729
|
+
<p>
|
2730
|
+
If the string supplied is not such a string, it tries to look up the host via DNS. If both methods fail, zero is returned.
|
2731
|
+
</div>
|
2732
|
+
</div><p>
|
2733
|
+
<a class="anchor" name="b04c11ac75a9069c4b2f8a27ae1094fc"></a><!-- doxytag: member="Gosu::textWidth" ref="b04c11ac75a9069c4b2f8a27ae1094fc" args="(const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0)" -->
|
2734
|
+
<div class="memitem">
|
2735
|
+
<div class="memproto">
|
2736
|
+
<table class="memname">
|
2737
|
+
<tr>
|
2738
|
+
<td class="memname">unsigned Gosu::textWidth </td>
|
2739
|
+
<td>(</td>
|
2740
|
+
<td class="paramtype">const std::wstring & </td>
|
2741
|
+
<td class="paramname"> <em>text</em>, </td>
|
2742
|
+
</tr>
|
2743
|
+
<tr>
|
2744
|
+
<td class="paramkey"></td>
|
2745
|
+
<td></td>
|
2746
|
+
<td class="paramtype">const std::wstring & </td>
|
2747
|
+
<td class="paramname"> <em>fontName</em>, </td>
|
2748
|
+
</tr>
|
2749
|
+
<tr>
|
2750
|
+
<td class="paramkey"></td>
|
2751
|
+
<td></td>
|
2752
|
+
<td class="paramtype">unsigned </td>
|
2753
|
+
<td class="paramname"> <em>fontHeight</em>, </td>
|
2754
|
+
</tr>
|
2755
|
+
<tr>
|
2756
|
+
<td class="paramkey"></td>
|
2757
|
+
<td></td>
|
2758
|
+
<td class="paramtype">unsigned </td>
|
2759
|
+
<td class="paramname"> <em>fontFlags</em> = <code>0</code></td><td> </td>
|
2760
|
+
</tr>
|
2761
|
+
<tr>
|
2762
|
+
<td></td>
|
2763
|
+
<td>)</td>
|
2764
|
+
<td></td><td></td><td width="100%"></td>
|
2765
|
+
</tr>
|
2766
|
+
</table>
|
2767
|
+
</div>
|
2768
|
+
<div class="memdoc">
|
2769
|
+
|
2770
|
+
<p>
|
2771
|
+
Returns the width a text would span on a bitmap if it were drawn using drawText with the same arguments.
|
2772
|
+
<p>
|
2773
|
+
<dl compact><dt><b>Parameters:</b></dt><dd>
|
2774
|
+
<table border="0" cellspacing="2" cellpadding="0">
|
2775
|
+
<tr><td valign="top"></td><td valign="top"><em>fontName</em> </td><td>Name of a system font, or a filename to a TTF file (must contain '/'). </td></tr>
|
2776
|
+
</table>
|
2777
|
+
</dl>
|
2778
|
+
|
2779
|
+
</div>
|
2780
|
+
</div><p>
|
2781
|
+
<a class="anchor" name="dc5f4941f3a17c6c5233d6c7a628cc68"></a><!-- doxytag: member="Gosu::trunc" ref="dc5f4941f3a17c6c5233d6c7a628cc68" args="(double value)" -->
|
2782
|
+
<div class="memitem">
|
2783
|
+
<div class="memproto">
|
2784
|
+
<table class="memname">
|
2785
|
+
<tr>
|
2786
|
+
<td class="memname">long Gosu::trunc </td>
|
2787
|
+
<td>(</td>
|
2788
|
+
<td class="paramtype">double </td>
|
2789
|
+
<td class="paramname"> <em>value</em> </td>
|
2790
|
+
<td> ) </td>
|
2791
|
+
<td width="100%"><code> [inline]</code></td>
|
2792
|
+
</tr>
|
2793
|
+
</table>
|
2794
|
+
</div>
|
2795
|
+
<div class="memdoc">
|
2796
|
+
|
2797
|
+
<p>
|
2798
|
+
Truncates the fractional part of a real value.
|
2799
|
+
<p>
|
2800
|
+
Equivalent to static_cast<long>.
|
2801
|
+
</div>
|
2802
|
+
</div><p>
|
2803
|
+
<a class="anchor" name="608bef262f259644b1e804c5bd03683a"></a><!-- doxytag: member="Gosu::userDocsPrefix" ref="608bef262f259644b1e804c5bd03683a" args="()" -->
|
2804
|
+
<div class="memitem">
|
2805
|
+
<div class="memproto">
|
2806
|
+
<table class="memname">
|
2807
|
+
<tr>
|
2808
|
+
<td class="memname">std::wstring Gosu::userDocsPrefix </td>
|
2809
|
+
<td>(</td>
|
2810
|
+
<td class="paramname"> </td>
|
2811
|
+
<td> ) </td>
|
2812
|
+
<td width="100%"></td>
|
2813
|
+
</tr>
|
2814
|
+
</table>
|
2815
|
+
</div>
|
2816
|
+
<div class="memdoc">
|
2817
|
+
|
2818
|
+
<p>
|
2819
|
+
Prefix for user documents, e.g.
|
2820
|
+
<p>
|
2821
|
+
save games. On Windows, the My Documents folder. On OS X, the user's Documents folder. On Linux, the home directory.
|
2822
|
+
</div>
|
2823
|
+
</div><p>
|
2824
|
+
<a class="anchor" name="c5d5db92f55aba5bcd7cd6ca1a79c712"></a><!-- doxytag: member="Gosu::userSettingsPrefix" ref="c5d5db92f55aba5bcd7cd6ca1a79c712" args="()" -->
|
2825
|
+
<div class="memitem">
|
2826
|
+
<div class="memproto">
|
2827
|
+
<table class="memname">
|
2828
|
+
<tr>
|
2829
|
+
<td class="memname">std::wstring Gosu::userSettingsPrefix </td>
|
2830
|
+
<td>(</td>
|
2831
|
+
<td class="paramname"> </td>
|
2832
|
+
<td> ) </td>
|
2833
|
+
<td width="100%"></td>
|
2834
|
+
</tr>
|
2835
|
+
</table>
|
2836
|
+
</div>
|
2837
|
+
<div class="memdoc">
|
2838
|
+
|
2839
|
+
<p>
|
2840
|
+
Prefix for user settings.
|
2841
|
+
<p>
|
2842
|
+
On Windows, the same as APPDATA%. On OS X, the user's Library/Preferences folder. On Linux, the home directory plus a trailing dot for hidden files.
|
2843
|
+
</div>
|
2844
|
+
</div><p>
|
2845
|
+
<a class="anchor" name="76d73802e9aa00f9133c3f1e099b832e"></a><!-- doxytag: member="Gosu::widen" ref="76d73802e9aa00f9133c3f1e099b832e" args="(const std::string &s)" -->
|
2846
|
+
<div class="memitem">
|
2847
|
+
<div class="memproto">
|
2848
|
+
<table class="memname">
|
2849
|
+
<tr>
|
2850
|
+
<td class="memname">std::wstring Gosu::widen </td>
|
2851
|
+
<td>(</td>
|
2852
|
+
<td class="paramtype">const std::string & </td>
|
2853
|
+
<td class="paramname"> <em>s</em> </td>
|
2854
|
+
<td> ) </td>
|
2855
|
+
<td width="100%"></td>
|
2856
|
+
</tr>
|
2857
|
+
</table>
|
2858
|
+
</div>
|
2859
|
+
<div class="memdoc">
|
2860
|
+
|
2861
|
+
<p>
|
2862
|
+
Converts an std::string into an std::wstring.
|
2863
|
+
<p>
|
2864
|
+
|
2865
|
+
</div>
|
2866
|
+
</div><p>
|
2867
|
+
<hr><h2>Variable Documentation</h2>
|
2868
|
+
<a class="anchor" name="cc7336a0eba36412dab0e991fb3faf01"></a><!-- doxytag: member="Gosu::pi" ref="cc7336a0eba36412dab0e991fb3faf01" args="" -->
|
2869
|
+
<div class="memitem">
|
2870
|
+
<div class="memproto">
|
2871
|
+
<table class="memname">
|
2872
|
+
<tr>
|
2873
|
+
<td class="memname">const double <a class="el" href="namespaceGosu.html#cc7336a0eba36412dab0e991fb3faf01">Gosu::pi</a> = 3.1415926536 </td>
|
2874
|
+
</tr>
|
2875
|
+
</table>
|
2876
|
+
</div>
|
2877
|
+
<div class="memdoc">
|
2878
|
+
|
2879
|
+
<p>
|
2880
|
+
Pi.
|
2881
|
+
<p>
|
2882
|
+
|
2883
|
+
</div>
|
2884
|
+
</div><p>
|
2885
|
+
</div>
|
2886
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
2887
|
+
<a href="http://www.doxygen.org/index.html">
|
2888
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
2889
|
+
</body>
|
2890
|
+
</html>
|