gosu 0.7.10.1
Sign up to get free protection for your applications and to get access to all the features.
- 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,36 @@
|
|
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: Timing.hpp Source File</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><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<h1>Timing.hpp</h1><a href="Timing_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
+
<a name="l00002"></a>00002
|
19
|
+
<a name="l00003"></a>00003
|
20
|
+
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_TIMING_HPP</span>
|
21
|
+
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_TIMING_HPP</span>
|
22
|
+
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
23
|
+
<a name="l00007"></a>00007 <span class="keyword">namespace </span>Gosu
|
24
|
+
<a name="l00008"></a>00008 {
|
25
|
+
<a name="l00010"></a>00010 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu.html#93f9b0118e9708a760148c8c5da481d2" title="Freezes the current thread for at least the specified time.">sleep</a>(<span class="keywordtype">unsigned</span> <a class="code" href="namespaceGosu.html#37bf53016e58939d6bf2f7a261c6c4db" title="Incrementing, possibly wrapping millisecond timer.">milliseconds</a>);
|
26
|
+
<a name="l00011"></a>00011
|
27
|
+
<a name="l00013"></a>00013 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="namespaceGosu.html#37bf53016e58939d6bf2f7a261c6c4db" title="Incrementing, possibly wrapping millisecond timer.">milliseconds</a>();
|
28
|
+
<a name="l00014"></a>00014 }
|
29
|
+
<a name="l00015"></a>00015
|
30
|
+
<a name="l00016"></a>00016 <span class="preprocessor">#endif</span>
|
31
|
+
</pre></div></div>
|
32
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
33
|
+
<a href="http://www.doxygen.org/index.html">
|
34
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
35
|
+
</body>
|
36
|
+
</html>
|
@@ -0,0 +1,42 @@
|
|
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: Timing.hpp File 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><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="contents">
|
19
|
+
<h1>Timing.hpp File Reference</h1>Functions for timing. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="Timing_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
+
<tr><td></td></tr>
|
25
|
+
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
+
|
28
|
+
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
29
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#93f9b0118e9708a760148c8c5da481d2">Gosu::sleep</a> (unsigned milliseconds)</td></tr>
|
30
|
+
|
31
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#37bf53016e58939d6bf2f7a261c6c4db">Gosu::milliseconds</a> ()</td></tr>
|
32
|
+
|
33
|
+
</table>
|
34
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
35
|
+
Functions for timing.
|
36
|
+
<p>
|
37
|
+
</div>
|
38
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
39
|
+
<a href="http://www.doxygen.org/index.html">
|
40
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
41
|
+
</body>
|
42
|
+
</html>
|
@@ -0,0 +1,44 @@
|
|
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: Utility.hpp Source File</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><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<h1>Utility.hpp</h1><a href="Utility_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
+
<a name="l00002"></a>00002
|
19
|
+
<a name="l00003"></a>00003
|
20
|
+
<a name="l00004"></a>00004 <span class="comment">// REDESIGN: Rename to StringConversion.hpp?</span>
|
21
|
+
<a name="l00005"></a>00005
|
22
|
+
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef GOSU_UTILITY_HPP</span>
|
23
|
+
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_UTILITY_HPP</span>
|
24
|
+
<a name="l00008"></a>00008 <span class="preprocessor"></span>
|
25
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#include <string></span>
|
26
|
+
<a name="l00010"></a>00010 <span class="preprocessor">#include <vector></span>
|
27
|
+
<a name="l00011"></a>00011
|
28
|
+
<a name="l00012"></a>00012 <span class="keyword">namespace </span>Gosu
|
29
|
+
<a name="l00013"></a>00013 {
|
30
|
+
<a name="l00015"></a>00015 std::wstring <a class="code" href="namespaceGosu.html#76d73802e9aa00f9133c3f1e099b832e" title="Converts an std::string into an std::wstring.">widen</a>(<span class="keyword">const</span> std::string& s);
|
31
|
+
<a name="l00017"></a>00017 std::string <a class="code" href="namespaceGosu.html#66106eac9ffd4e4047e891c20196a5a2" title="Converts an std::wstring into an std::string.">narrow</a>(<span class="keyword">const</span> std::wstring& ws);
|
32
|
+
<a name="l00018"></a>00018
|
33
|
+
<a name="l00019"></a>00019 <span class="comment">// Undocumented, temporary: Please ignore. ;)</span>
|
34
|
+
<a name="l00020"></a>00020 std::wstring utf8ToWstring(<span class="keyword">const</span> std::string& utf8);
|
35
|
+
<a name="l00021"></a>00021 std::string wstringToUTF8(<span class="keyword">const</span> std::wstring& ws);
|
36
|
+
<a name="l00022"></a>00022 }
|
37
|
+
<a name="l00023"></a>00023
|
38
|
+
<a name="l00024"></a>00024 <span class="preprocessor">#endif</span>
|
39
|
+
</pre></div></div>
|
40
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
41
|
+
<a href="http://www.doxygen.org/index.html">
|
42
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
43
|
+
</body>
|
44
|
+
</html>
|
@@ -0,0 +1,48 @@
|
|
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: Utility.hpp File 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><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="contents">
|
19
|
+
<h1>Utility.hpp File Reference</h1>General purpose utility functions. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="Utility_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
+
<tr><td></td></tr>
|
25
|
+
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
+
|
28
|
+
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
29
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#76d73802e9aa00f9133c3f1e099b832e">Gosu::widen</a> (const std::string &s)</td></tr>
|
30
|
+
|
31
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#66106eac9ffd4e4047e891c20196a5a2">Gosu::narrow</a> (const std::wstring &ws)</td></tr>
|
32
|
+
|
33
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="21c54ae29c5b4ebc282b87d6dec1f7de"></a><!-- doxytag: member="Utility.hpp::utf8ToWstring" ref="21c54ae29c5b4ebc282b87d6dec1f7de" args="(const std::string &utf8)" -->
|
34
|
+
std::wstring </td><td class="memItemRight" valign="bottom"><b>Gosu::utf8ToWstring</b> (const std::string &utf8)</td></tr>
|
35
|
+
|
36
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b6bc6e428b84b2e2ac39133c64b4567e"></a><!-- doxytag: member="Utility.hpp::wstringToUTF8" ref="b6bc6e428b84b2e2ac39133c64b4567e" args="(const std::wstring &ws)" -->
|
37
|
+
std::string </td><td class="memItemRight" valign="bottom"><b>Gosu::wstringToUTF8</b> (const std::wstring &ws)</td></tr>
|
38
|
+
|
39
|
+
</table>
|
40
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
41
|
+
General purpose utility functions.
|
42
|
+
<p>
|
43
|
+
</div>
|
44
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
45
|
+
<a href="http://www.doxygen.org/index.html">
|
46
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
47
|
+
</body>
|
48
|
+
</html>
|
@@ -0,0 +1,79 @@
|
|
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: WinUtility.hpp Source File</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><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<h1>WinUtility.hpp</h1><a href="WinUtility_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
+
<a name="l00002"></a>00002
|
19
|
+
<a name="l00003"></a>00003
|
20
|
+
<a name="l00004"></a>00004
|
21
|
+
<a name="l00005"></a>00005
|
22
|
+
<a name="l00006"></a>00006 <span class="preprocessor">#ifndef GOSU_WINUTILITY_HPP</span>
|
23
|
+
<a name="l00007"></a>00007 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_WINUTILITY_HPP</span>
|
24
|
+
<a name="l00008"></a>00008 <span class="preprocessor"></span>
|
25
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#include <windows.h></span>
|
26
|
+
<a name="l00010"></a>00010 <span class="preprocessor">#include <<a class="code" href="Platform_8hpp.html" title="Macros and utility functions to facilitate programming on all of Gosu&#39;s supported...">Gosu/Platform.hpp</a>></span>
|
27
|
+
<a name="l00011"></a>00011 <span class="preprocessor">#include <boost/function.hpp></span>
|
28
|
+
<a name="l00012"></a>00012 <span class="preprocessor">#include <boost/shared_ptr.hpp></span>
|
29
|
+
<a name="l00013"></a>00013 <span class="preprocessor">#include <string></span>
|
30
|
+
<a name="l00014"></a>00014
|
31
|
+
<a name="l00015"></a>00015 <span class="keyword">namespace </span>Gosu
|
32
|
+
<a name="l00016"></a>00016 {
|
33
|
+
<a name="l00018"></a><a class="code" href="namespaceGosu_1_1Win.html">00018</a> <span class="keyword">namespace </span>Win
|
34
|
+
<a name="l00019"></a>00019 {
|
35
|
+
<a name="l00021"></a>00021 HINSTANCE <a class="code" href="namespaceGosu_1_1Win.html#83b6e6b81742595a0e9203484703db1b" title="Returns the instance handle of the application.">instance</a>();
|
36
|
+
<a name="l00022"></a>00022
|
37
|
+
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#31f2a986954cbda89d833e5c4b6023bc" title="Blocking function which waits for the next message, processes it, then returns.">handleMessage</a>();
|
38
|
+
<a name="l00026"></a>00026
|
39
|
+
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#d00342fe1c6ac246a35732e61c814f66" title="Non-blocking function which processes all waiting messages but does not wait for...">processMessages</a>();
|
40
|
+
<a name="l00030"></a>00030
|
41
|
+
<a name="l00034"></a>00034 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#7d2d60d6682043477b9765af5433a0db" title="Registers a function to be called by handleMessage and processMessages.">registerMessageHook</a>(<span class="keyword">const</span> boost::function<<span class="keywordtype">bool</span> (MSG&)>& hook);
|
42
|
+
<a name="l00035"></a>00035
|
43
|
+
<a name="l00039"></a>00039 GOSU_NORETURN <span class="keywordtype">void</span> <a class="code" href="namespaceGosu_1_1Win.html#9b691c48faa83e1f04f3c185f4fc88e0" title="Throws an exception according to the error which GetLastError() returns, optionally...">throwLastError</a>(<span class="keyword">const</span> std::string& action = <span class="stringliteral">""</span>);
|
44
|
+
<a name="l00040"></a>00040
|
45
|
+
<a name="l00044"></a>00044 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
46
|
+
<a name="l00045"></a><a class="code" href="namespaceGosu_1_1Win.html#6040740de3117cb7f53d2458e29e0d33">00045</a> <span class="keyword">inline</span> T <a class="code" href="namespaceGosu_1_1Win.html#6040740de3117cb7f53d2458e29e0d33" title="Small helper function that throws an exception whenever the value passed through...">check</a>(T valToCheck, <span class="keyword">const</span> std::string& action = <span class="stringliteral">""</span>)
|
47
|
+
<a name="l00046"></a>00046 {
|
48
|
+
<a name="l00047"></a>00047 <span class="keywordflow">if</span> (!valToCheck)
|
49
|
+
<a name="l00048"></a>00048 <a class="code" href="namespaceGosu_1_1Win.html#9b691c48faa83e1f04f3c185f4fc88e0" title="Throws an exception according to the error which GetLastError() returns, optionally...">throwLastError</a>(action);
|
50
|
+
<a name="l00049"></a>00049 <span class="keywordflow">return</span> valToCheck;
|
51
|
+
<a name="l00050"></a>00050 }
|
52
|
+
<a name="l00051"></a>00051
|
53
|
+
<a name="l00052"></a>00052 <span class="comment">// IMPR: Why can't I use mem_fn for releasing objects even though it is</span>
|
54
|
+
<a name="l00053"></a>00053 <span class="comment">// shown like that in the shared_ptr documentation?</span>
|
55
|
+
<a name="l00054"></a>00054 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
56
|
+
<a name="l00055"></a>00055 <span class="keywordtype">void</span> releaseComPtr(T* ptr)
|
57
|
+
<a name="l00056"></a>00056 {
|
58
|
+
<a name="l00057"></a>00057 ptr->Release();
|
59
|
+
<a name="l00058"></a>00058 }
|
60
|
+
<a name="l00059"></a>00059
|
61
|
+
<a name="l00062"></a>00062 <span class="keyword">template</span><<span class="keyword">typename</span> T>
|
62
|
+
<a name="l00063"></a><a class="code" href="namespaceGosu_1_1Win.html#a428c0599282230ad8c8c03a4eb1a054">00063</a> <span class="keyword">inline</span> boost::shared_ptr<T> <a class="code" href="namespaceGosu_1_1Win.html#a428c0599282230ad8c8c03a4eb1a054" title="Small helper function that transfers ownership of a COM interface to a boost::shared_ptr...">shareComPtr</a>(T* ptr)
|
63
|
+
<a name="l00064"></a>00064 {
|
64
|
+
<a name="l00065"></a>00065 <span class="keywordflow">return</span> boost::shared_ptr<T>(ptr, releaseComPtr<T>);
|
65
|
+
<a name="l00066"></a>00066 }
|
66
|
+
<a name="l00067"></a>00067
|
67
|
+
<a name="l00069"></a>00069 std::wstring <a class="code" href="namespaceGosu_1_1Win.html#6a880b46db664c1be2b5115a1090c37b" title="Returns the executable&#39;s filename.">appFilename</a>();
|
68
|
+
<a name="l00070"></a>00070
|
69
|
+
<a name="l00072"></a>00072 std::wstring <a class="code" href="namespaceGosu_1_1Win.html#23f9098ea654c70ae845ec3fe6e9f20c" title="Returns the executable&#39;s containing directory.">appDirectory</a>();
|
70
|
+
<a name="l00073"></a>00073 }
|
71
|
+
<a name="l00074"></a>00074 }
|
72
|
+
<a name="l00075"></a>00075
|
73
|
+
<a name="l00076"></a>00076 <span class="preprocessor">#endif</span>
|
74
|
+
</pre></div></div>
|
75
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
76
|
+
<a href="http://www.doxygen.org/index.html">
|
77
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
78
|
+
</body>
|
79
|
+
</html>
|
@@ -0,0 +1,64 @@
|
|
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: WinUtility.hpp File 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><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="contents">
|
19
|
+
<h1>WinUtility.hpp File Reference</h1>Contains some functions which are used to implement <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> on Windows and might be useful for advanced users who try to integrate <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> in a Win32 application. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="WinUtility_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
+
<tr><td></td></tr>
|
25
|
+
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
+
|
28
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html">Gosu::Win</a></td></tr>
|
29
|
+
|
30
|
+
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
31
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">HINSTANCE </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#83b6e6b81742595a0e9203484703db1b">Gosu::Win::instance</a> ()</td></tr>
|
32
|
+
|
33
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#31f2a986954cbda89d833e5c4b6023bc">Gosu::Win::handleMessage</a> ()</td></tr>
|
34
|
+
|
35
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#d00342fe1c6ac246a35732e61c814f66">Gosu::Win::processMessages</a> ()</td></tr>
|
36
|
+
|
37
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#7d2d60d6682043477b9765af5433a0db">Gosu::Win::registerMessageHook</a> (const boost::function< bool(MSG &)> &hook)</td></tr>
|
38
|
+
|
39
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">GOSU_NORETURN void </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#9b691c48faa83e1f04f3c185f4fc88e0">Gosu::Win::throwLastError</a> (const std::string &action="")</td></tr>
|
40
|
+
|
41
|
+
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
|
42
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#6040740de3117cb7f53d2458e29e0d33">Gosu::Win::check</a> (T valToCheck, const std::string &action="")</td></tr>
|
43
|
+
|
44
|
+
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="a94c44a4738f72711497fe26cb15c8b6"></a><!-- doxytag: member="WinUtility.hpp::releaseComPtr" ref="a94c44a4738f72711497fe26cb15c8b6" args="(T *ptr)" -->
|
45
|
+
template<typename T> </td></tr>
|
46
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><b>Gosu::Win::releaseComPtr</b> (T *ptr)</td></tr>
|
47
|
+
|
48
|
+
<tr><td class="memTemplParams" nowrap colspan="2">template<typename T> </td></tr>
|
49
|
+
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">boost::shared_ptr< T > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#a428c0599282230ad8c8c03a4eb1a054">Gosu::Win::shareComPtr</a> (T *ptr)</td></tr>
|
50
|
+
|
51
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#6a880b46db664c1be2b5115a1090c37b">Gosu::Win::appFilename</a> ()</td></tr>
|
52
|
+
|
53
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu_1_1Win.html#23f9098ea654c70ae845ec3fe6e9f20c">Gosu::Win::appDirectory</a> ()</td></tr>
|
54
|
+
|
55
|
+
</table>
|
56
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
57
|
+
Contains some functions which are used to implement <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> on Windows and might be useful for advanced users who try to integrate <a class="el" href="namespaceGosu.html" title="The library's main namespace.">Gosu</a> in a Win32 application.
|
58
|
+
<p>
|
59
|
+
</div>
|
60
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
61
|
+
<a href="http://www.doxygen.org/index.html">
|
62
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
63
|
+
</body>
|
64
|
+
</html>
|
@@ -0,0 +1,91 @@
|
|
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: Window.hpp Source File</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><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<h1>Window.hpp</h1><a href="Window_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
18
|
+
<a name="l00002"></a>00002
|
19
|
+
<a name="l00003"></a>00003
|
20
|
+
<a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_WINDOW_HPP</span>
|
21
|
+
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_WINDOW_HPP</span>
|
22
|
+
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
23
|
+
<a name="l00007"></a>00007 <span class="preprocessor">#include <<a class="code" href="Fwd_8hpp.html" title="Contains declarations of all of Gosu&#39;s available classes.">Gosu/Fwd.hpp</a>></span>
|
24
|
+
<a name="l00008"></a>00008 <span class="preprocessor">#include <<a class="code" href="Platform_8hpp.html" title="Macros and utility functions to facilitate programming on all of Gosu&#39;s supported...">Gosu/Platform.hpp</a>></span>
|
25
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#include <<a class="code" href="Input_8hpp.html" title="Interface of the Input class.">Gosu/Input.hpp</a>></span>
|
26
|
+
<a name="l00010"></a>00010 <span class="preprocessor">#include <boost/scoped_ptr.hpp></span>
|
27
|
+
<a name="l00011"></a>00011 <span class="preprocessor">#include <boost/shared_ptr.hpp></span>
|
28
|
+
<a name="l00012"></a>00012 <span class="preprocessor">#include <boost/function.hpp></span>
|
29
|
+
<a name="l00013"></a>00013 <span class="preprocessor">#include <string></span>
|
30
|
+
<a name="l00014"></a>00014
|
31
|
+
<a name="l00015"></a>00015 <span class="preprocessor">#ifdef GOSU_IS_WIN</span>
|
32
|
+
<a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include <windows.h></span>
|
33
|
+
<a name="l00017"></a>00017 <span class="preprocessor">#endif</span>
|
34
|
+
<a name="l00018"></a>00018 <span class="preprocessor"></span>
|
35
|
+
<a name="l00019"></a>00019 <span class="keyword">namespace </span>Gosu
|
36
|
+
<a name="l00020"></a>00020 {
|
37
|
+
<a name="l00024"></a><a class="code" href="classGosu_1_1Window.html">00024</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a>
|
38
|
+
<a name="l00025"></a>00025 {
|
39
|
+
<a name="l00026"></a>00026 <span class="keyword">struct </span>Impl;
|
40
|
+
<a name="l00027"></a>00027 boost::scoped_ptr<Impl> pimpl;
|
41
|
+
<a name="l00028"></a>00028
|
42
|
+
<a name="l00029"></a>00029 <span class="keyword">public</span>:
|
43
|
+
<a name="l00033"></a>00033 <a class="code" href="classGosu_1_1Window.html#369461754934c92b9bd0811dbdad8ffa" title="Constructs a Window.">Window</a>(<span class="keywordtype">unsigned</span> width, <span class="keywordtype">unsigned</span> height, <span class="keywordtype">bool</span> fullscreen,
|
44
|
+
<a name="l00034"></a>00034 <span class="keywordtype">double</span> updateInterval = 16.666666);
|
45
|
+
<a name="l00035"></a>00035 <span class="keyword">virtual</span> ~<a class="code" href="classGosu_1_1Window.html" title="Convenient all-in-one class that serves as the foundation of a standard Gosu application...">Window</a>();
|
46
|
+
<a name="l00036"></a>00036
|
47
|
+
<a name="l00037"></a>00037 std::wstring caption() <span class="keyword">const</span>;
|
48
|
+
<a name="l00038"></a>00038 <span class="keywordtype">void</span> setCaption(<span class="keyword">const</span> std::wstring& caption);
|
49
|
+
<a name="l00039"></a>00039
|
50
|
+
<a name="l00041"></a>00041 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#d4b7c1e5e817d8aaca09f5d19a3a9d93" title="Starts the main event loop.">show</a>();
|
51
|
+
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#ccbd57bf5ea05899e4270e2b20b300a6" title="Closes the window if it is currently shown.">close</a>();
|
52
|
+
<a name="l00044"></a>00044
|
53
|
+
<a name="l00047"></a><a class="code" href="classGosu_1_1Window.html#4c74a15418c916dabec98c2da3ca45ba">00047</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#4c74a15418c916dabec98c2da3ca45ba" title="Called every updateInterval milliseconds while the window is being shown.">update</a>() {}
|
54
|
+
<a name="l00050"></a><a class="code" href="classGosu_1_1Window.html#b3c5da8e60f81c0528a5d8d9495daac8">00050</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#b3c5da8e60f81c0528a5d8d9495daac8" title="Called after every update and when the OS wants the window to repaint itself.">draw</a>() {}
|
55
|
+
<a name="l00051"></a>00051
|
56
|
+
<a name="l00054"></a><a class="code" href="classGosu_1_1Window.html#d4e680daba62ac7fbc8002b2be50a2c5">00054</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#d4e680daba62ac7fbc8002b2be50a2c5" title="Called before update when the user pressed a button while the window had the focus...">buttonDown</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Gosu::Button</a>) {}
|
57
|
+
<a name="l00056"></a><a class="code" href="classGosu_1_1Window.html#41ab0a9bfee1c88d96618308bde584fc">00056</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Window.html#41ab0a9bfee1c88d96618308bde584fc" title="Same as buttonDown. Called then the user released a button.">buttonUp</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Gosu::Button</a>) {}
|
58
|
+
<a name="l00057"></a>00057
|
59
|
+
<a name="l00058"></a>00058 <span class="comment">// Ignore when SWIG is wrapping this class for Ruby/Gosu.</span>
|
60
|
+
<a name="l00059"></a>00059 <span class="preprocessor"> #ifndef SWIG</span>
|
61
|
+
<a name="l00060"></a>00060 <span class="preprocessor"></span> <span class="keyword">const</span> <a class="code" href="classGosu_1_1Graphics.html" title="Serves as the target of all drawing and provides basic drawing functionality.">Graphics</a>& graphics() <span class="keyword">const</span>;
|
62
|
+
<a name="l00061"></a>00061 <a class="code" href="classGosu_1_1Graphics.html" title="Serves as the target of all drawing and provides basic drawing functionality.">Graphics</a>& graphics();
|
63
|
+
<a name="l00062"></a>00062
|
64
|
+
<a name="l00063"></a>00063 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>& audio() <span class="keyword">const</span>;
|
65
|
+
<a name="l00064"></a>00064 <a class="code" href="classGosu_1_1Audio.html" title="Manages initialization and finalization of audio libraries.">Audio</a>& audio();
|
66
|
+
<a name="l00065"></a>00065
|
67
|
+
<a name="l00066"></a>00066 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system; only one Input instance...">Input</a>& input() <span class="keyword">const</span>;
|
68
|
+
<a name="l00067"></a>00067 <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system; only one Input instance...">Input</a>& input();
|
69
|
+
<a name="l00068"></a>00068
|
70
|
+
<a name="l00069"></a>00069 <span class="preprocessor"> #ifdef GOSU_IS_WIN</span>
|
71
|
+
<a name="l00070"></a>00070 <span class="preprocessor"></span> <span class="comment">// Only on Windows.</span>
|
72
|
+
<a name="l00071"></a>00071 HWND handle() <span class="keyword">const</span>;
|
73
|
+
<a name="l00072"></a>00072 <span class="keyword">virtual</span> LRESULT <a class="code" href="namespaceGosu_1_1Win.html#31f2a986954cbda89d833e5c4b6023bc" title="Blocking function which waits for the next message, processes it, then returns.">handleMessage</a>(UINT message, WPARAM wparam,
|
74
|
+
<a name="l00073"></a>00073 LPARAM lparam);
|
75
|
+
<a name="l00074"></a>00074 <span class="preprocessor"> #else</span>
|
76
|
+
<a name="l00075"></a>00075 <span class="preprocessor"></span> <span class="comment">// Only on Unices (so far).</span>
|
77
|
+
<a name="l00076"></a>00076 <span class="keyword">typedef</span> boost::shared_ptr<boost::function<void()> > SharedContext;
|
78
|
+
<a name="l00077"></a>00077 SharedContext createSharedContext();
|
79
|
+
<a name="l00078"></a>00078 <span class="preprocessor"> #endif</span>
|
80
|
+
<a name="l00079"></a>00079 <span class="preprocessor"></span>
|
81
|
+
<a name="l00080"></a>00080 <span class="preprocessor"> #endif</span>
|
82
|
+
<a name="l00081"></a>00081 <span class="preprocessor"></span> };
|
83
|
+
<a name="l00082"></a>00082 }
|
84
|
+
<a name="l00083"></a>00083
|
85
|
+
<a name="l00084"></a>00084 <span class="preprocessor">#endif</span>
|
86
|
+
</pre></div></div>
|
87
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
88
|
+
<a href="http://www.doxygen.org/index.html">
|
89
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
90
|
+
</body>
|
91
|
+
</html>
|
@@ -0,0 +1,41 @@
|
|
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: Window.hpp File 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><a href="namespaces.html"><span>Namespaces</span></a></li>
|
13
|
+
<li><a href="annotated.html"><span>Classes</span></a></li>
|
14
|
+
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
<div class="contents">
|
19
|
+
<h1>Window.hpp File Reference</h1>Interface of the Window class. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="Window_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
|
24
|
+
<tr><td></td></tr>
|
25
|
+
<tr><td colspan="2"><br><h2>Namespaces</h2></td></tr>
|
26
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">namespace </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html">Gosu</a></td></tr>
|
27
|
+
|
28
|
+
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
|
29
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Window.html">Gosu::Window</a></td></tr>
|
30
|
+
|
31
|
+
<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>
|
32
|
+
</table>
|
33
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
34
|
+
Interface of the Window class.
|
35
|
+
<p>
|
36
|
+
</div>
|
37
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
38
|
+
<a href="http://www.doxygen.org/index.html">
|
39
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
40
|
+
</body>
|
41
|
+
</html>
|