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,77 @@
|
|
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: RotFlip.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>RotFlip.hpp File Reference</h1>Interface of the undocumented RotFlip class. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="RotFlip_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"><b>Gosu::RotFlip</b></td></tr>
|
30
|
+
|
31
|
+
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
|
32
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>RotFlipName</b> { <br>
|
33
|
+
<b>rfDefault</b>,
|
34
|
+
<b>rfRotate90</b>,
|
35
|
+
<b>rfRotate180</b>,
|
36
|
+
<b>rfRotate270</b>,
|
37
|
+
<br>
|
38
|
+
<b>rfFlipX</b>,
|
39
|
+
<b>rfRotate90FlipX</b>,
|
40
|
+
<b>rfRotate180FlipX</b>,
|
41
|
+
<b>rfRotate270FlipX</b>,
|
42
|
+
<br>
|
43
|
+
<b>rfFlipY</b> = rfRotate180FlipX,
|
44
|
+
<b>rfRotate90FlipY</b> = rfRotate270FlipX,
|
45
|
+
<b>rfRotate180FlipY</b> = rfFlipX,
|
46
|
+
<b>rfRotate270FlipY</b> = rfRotate90FlipX,
|
47
|
+
<br>
|
48
|
+
<b>rfFlipXRotate90</b> = rfRotate270FlipX,
|
49
|
+
<b>rfFlipXRotate180</b> = rfRotate180FlipX,
|
50
|
+
<b>rfFlipXRotate270</b> = rfRotate90FlipX,
|
51
|
+
<b>rfFlipYRotate90</b> = rfRotate90FlipX,
|
52
|
+
<br>
|
53
|
+
<b>rfFlipYRotate180</b> = rfFlipX,
|
54
|
+
<b>rfFlipYRotate270</b> = rfRotate270FlipX
|
55
|
+
<br>
|
56
|
+
}</td></tr>
|
57
|
+
|
58
|
+
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
59
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f95982a20bba047a1d7a8accb82a7758"></a><!-- doxytag: member="RotFlip.hpp::operator==" ref="f95982a20bba047a1d7a8accb82a7758" args="(RotFlip a, RotFlip b)" -->
|
60
|
+
bool </td><td class="memItemRight" valign="bottom"><b>Gosu::operator==</b> (RotFlip a, RotFlip b)</td></tr>
|
61
|
+
|
62
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2860d74f086dc0ed96a25df359494ed"></a><!-- doxytag: member="RotFlip.hpp::operator!=" ref="d2860d74f086dc0ed96a25df359494ed" args="(RotFlip a, RotFlip b)" -->
|
63
|
+
bool </td><td class="memItemRight" valign="bottom"><b>Gosu::operator!=</b> (RotFlip a, RotFlip b)</td></tr>
|
64
|
+
|
65
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="621eb7d0e3c347461dcc298903fe18a4"></a><!-- doxytag: member="RotFlip.hpp::applyToPoint" ref="621eb7d0e3c347461dcc298903fe18a4" args="(RotFlip rotFlip, int &x, int &y, int max)" -->
|
66
|
+
void </td><td class="memItemRight" valign="bottom"><b>Gosu::applyToPoint</b> (RotFlip rotFlip, int &x, int &y, int max)</td></tr>
|
67
|
+
|
68
|
+
</table>
|
69
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
70
|
+
Interface of the undocumented RotFlip class.
|
71
|
+
<p>
|
72
|
+
</div>
|
73
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
74
|
+
<a href="http://www.doxygen.org/index.html">
|
75
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
76
|
+
</body>
|
77
|
+
</html>
|
@@ -0,0 +1,130 @@
|
|
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: Sockets.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>Sockets.hpp</h1><a href="Sockets_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_SOCKETS_HPP</span>
|
21
|
+
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_SOCKETS_HPP</span>
|
22
|
+
<a name="l00006"></a>00006 <span class="preprocessor"></span>
|
23
|
+
<a name="l00007"></a>00007 <span class="preprocessor">#include <boost/cstdint.hpp></span>
|
24
|
+
<a name="l00008"></a>00008 <span class="preprocessor">#include <boost/function.hpp></span>
|
25
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#include <boost/scoped_ptr.hpp></span>
|
26
|
+
<a name="l00010"></a>00010 <span class="preprocessor">#include <cstddef></span>
|
27
|
+
<a name="l00011"></a>00011 <span class="preprocessor">#include <string></span>
|
28
|
+
<a name="l00012"></a>00012
|
29
|
+
<a name="l00013"></a>00013 <span class="keyword">namespace </span>Gosu
|
30
|
+
<a name="l00014"></a>00014 {
|
31
|
+
<a name="l00015"></a>00015 <span class="comment">// Both addresses and ports are returned from and given to Gosu</span>
|
32
|
+
<a name="l00016"></a>00016 <span class="comment">// functions in host byte order.</span>
|
33
|
+
<a name="l00017"></a>00017 <span class="keyword">typedef</span> boost::uint32_t SocketAddress;
|
34
|
+
<a name="l00018"></a>00018 <span class="keyword">typedef</span> boost::uint16_t SocketPort;
|
35
|
+
<a name="l00019"></a>00019 <span class="keyword">const</span> SocketPort anyPort = 0;
|
36
|
+
<a name="l00020"></a>00020
|
37
|
+
<a name="l00025"></a>00025 SocketAddress <a class="code" href="namespaceGosu.html#c2c5b3cca9903139efbd2d601a631ee6" title="Tries to convert a dotted IP4 string into an address suitable for socket functions...">stringToAddress</a>(<span class="keyword">const</span> std::string& s);
|
38
|
+
<a name="l00027"></a>00027 std::string <a class="code" href="namespaceGosu.html#aae23447cebfab874d7657fbe0a8150e" title="Converts an address into a dotted IP4 string.">addressToString</a>(SocketAddress address);
|
39
|
+
<a name="l00028"></a>00028
|
40
|
+
<a name="l00033"></a><a class="code" href="classGosu_1_1MessageSocket.html">00033</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1MessageSocket.html" title="Wraps an UDP socket.">MessageSocket</a>
|
41
|
+
<a name="l00034"></a>00034 {
|
42
|
+
<a name="l00035"></a>00035 <span class="keyword">struct </span>Impl;
|
43
|
+
<a name="l00036"></a>00036 boost::scoped_ptr<Impl> pimpl;
|
44
|
+
<a name="l00037"></a>00037
|
45
|
+
<a name="l00038"></a>00038 <span class="keyword">public</span>:
|
46
|
+
<a name="l00042"></a>00042 <span class="keyword">explicit</span> <a class="code" href="classGosu_1_1MessageSocket.html#7894acdea2e7dc85c671ca0f6732ccaf" title="Opens a message socket for listening at the specified port.">MessageSocket</a>(SocketPort <a class="code" href="classGosu_1_1MessageSocket.html#38999d7a0fee723adcb21bf3a036be91" title="Returns the local port of the socket.">port</a>);
|
47
|
+
<a name="l00043"></a>00043 ~<a class="code" href="classGosu_1_1MessageSocket.html" title="Wraps an UDP socket.">MessageSocket</a>();
|
48
|
+
<a name="l00044"></a>00044
|
49
|
+
<a name="l00046"></a>00046 SocketAddress <a class="code" href="classGosu_1_1MessageSocket.html#eadfbf7bbdcc2544a5aaa0d16efa2851" title="Returns the local address of the socket.">address</a>() <span class="keyword">const</span>;
|
50
|
+
<a name="l00048"></a>00048 SocketPort <a class="code" href="classGosu_1_1MessageSocket.html#38999d7a0fee723adcb21bf3a036be91" title="Returns the local port of the socket.">port</a>() <span class="keyword">const</span>;
|
51
|
+
<a name="l00051"></a>00051 std::size_t <a class="code" href="classGosu_1_1MessageSocket.html#017cc2347921520ba834ef0ae1c31c11" title="Returns the maximum size, in bytes, of a packet that can be sent from this socket...">maxMessageSize</a>() <span class="keyword">const</span>;
|
52
|
+
<a name="l00052"></a>00052
|
53
|
+
<a name="l00055"></a>00055 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1MessageSocket.html#3e642630d8b17d9336e3eb7112fa14dd" title="Collects all the packets that were sent to this socket and calls onReceive for each...">update</a>();
|
54
|
+
<a name="l00056"></a>00056
|
55
|
+
<a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1MessageSocket.html#994ac62dc770243d65f88db89c1dc8e6" title="Sends something to the given port of the computer identified by the address.">send</a>(SocketAddress address, SocketPort port,
|
56
|
+
<a name="l00060"></a>00060 <span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, std::size_t size);
|
57
|
+
<a name="l00061"></a>00061 <span class="comment">/*void broadcast(SocketPort port, const void* buffer,</span>
|
58
|
+
<a name="l00062"></a>00062 <span class="comment"> std::size_t size);*/</span>
|
59
|
+
<a name="l00063"></a>00063
|
60
|
+
<a name="l00065"></a>00065 boost::function<void (SocketAddress, SocketPort, <span class="keyword">const</span> <span class="keywordtype">void</span>*,
|
61
|
+
<a name="l00066"></a><a class="code" href="classGosu_1_1MessageSocket.html#946bf3cb838b105842ca86938c3a86ae">00066</a> std::size_t)> <a class="code" href="classGosu_1_1MessageSocket.html#946bf3cb838b105842ca86938c3a86ae" title="If assigned, will be called by update for every packet received.">onReceive</a>;
|
62
|
+
<a name="l00067"></a>00067 };
|
63
|
+
<a name="l00068"></a>00068
|
64
|
+
<a name="l00069"></a>00069 <span class="keyword">enum</span> CommMode
|
65
|
+
<a name="l00070"></a>00070 {
|
66
|
+
<a name="l00071"></a>00071 cmRaw,
|
67
|
+
<a name="l00072"></a>00072 <span class="comment">//cmLines,</span>
|
68
|
+
<a name="l00073"></a>00073 cmManaged
|
69
|
+
<a name="l00074"></a>00074 };
|
70
|
+
<a name="l00075"></a>00075
|
71
|
+
<a name="l00076"></a>00076 <span class="keyword">class </span>Socket;
|
72
|
+
<a name="l00077"></a>00077
|
73
|
+
<a name="l00078"></a>00078 <span class="keyword">class </span>CommSocket
|
74
|
+
<a name="l00079"></a>00079 {
|
75
|
+
<a name="l00080"></a>00080 <span class="keyword">struct </span>Impl;
|
76
|
+
<a name="l00081"></a>00081 boost::scoped_ptr<Impl> pimpl;
|
77
|
+
<a name="l00082"></a>00082
|
78
|
+
<a name="l00083"></a>00083 <span class="keyword">public</span>:
|
79
|
+
<a name="l00084"></a>00084 CommSocket(CommMode mode, SocketAddress targetAddress,
|
80
|
+
<a name="l00085"></a>00085 SocketPort targetPort);
|
81
|
+
<a name="l00086"></a>00086 CommSocket(CommMode mode, Socket& socket);
|
82
|
+
<a name="l00087"></a>00087 ~CommSocket();
|
83
|
+
<a name="l00088"></a>00088
|
84
|
+
<a name="l00089"></a>00089 SocketAddress address() <span class="keyword">const</span>;
|
85
|
+
<a name="l00090"></a>00090 SocketPort port() <span class="keyword">const</span>;
|
86
|
+
<a name="l00091"></a>00091 SocketAddress remoteAddress() <span class="keyword">const</span>;
|
87
|
+
<a name="l00092"></a>00092 SocketPort remotePort() <span class="keyword">const</span>;
|
88
|
+
<a name="l00093"></a>00093 CommMode mode() <span class="keyword">const</span>;
|
89
|
+
<a name="l00094"></a>00094
|
90
|
+
<a name="l00095"></a>00095 <span class="keywordtype">bool</span> connected() <span class="keyword">const</span>;
|
91
|
+
<a name="l00096"></a>00096 <span class="keywordtype">void</span> disconnect();
|
92
|
+
<a name="l00097"></a>00097 <span class="keywordtype">bool</span> keepAlive() <span class="keyword">const</span>;
|
93
|
+
<a name="l00098"></a>00098 <span class="keywordtype">void</span> setKeepAlive(<span class="keywordtype">bool</span> value);
|
94
|
+
<a name="l00099"></a>00099
|
95
|
+
<a name="l00100"></a>00100 <span class="keywordtype">void</span> update();
|
96
|
+
<a name="l00101"></a>00101 <span class="keywordtype">void</span> send(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, std::size_t size);
|
97
|
+
<a name="l00102"></a>00102 <span class="keywordtype">void</span> sendPendingData();
|
98
|
+
<a name="l00103"></a>00103 std::size_t pendingBytes() <span class="keyword">const</span>;
|
99
|
+
<a name="l00104"></a>00104
|
100
|
+
<a name="l00105"></a>00105 boost::function<void (const void*, std::size_t)> onReceive;
|
101
|
+
<a name="l00106"></a>00106 boost::function<void ()> onDisconnection;
|
102
|
+
<a name="l00107"></a>00107 };
|
103
|
+
<a name="l00108"></a>00108
|
104
|
+
<a name="l00109"></a>00109 <span class="keyword">class </span>ListenerSocket
|
105
|
+
<a name="l00110"></a>00110 {
|
106
|
+
<a name="l00111"></a>00111 <span class="keyword">struct </span>Impl;
|
107
|
+
<a name="l00112"></a>00112 boost::scoped_ptr<Impl> pimpl;
|
108
|
+
<a name="l00113"></a>00113
|
109
|
+
<a name="l00114"></a>00114 <span class="keyword">public</span>:
|
110
|
+
<a name="l00115"></a>00115 ListenerSocket(SocketPort port);
|
111
|
+
<a name="l00116"></a>00116 ~ListenerSocket();
|
112
|
+
<a name="l00117"></a>00117
|
113
|
+
<a name="l00118"></a>00118 SocketAddress address() <span class="keyword">const</span>;
|
114
|
+
<a name="l00119"></a>00119 SocketPort port() <span class="keyword">const</span>;
|
115
|
+
<a name="l00120"></a>00120
|
116
|
+
<a name="l00121"></a>00121 <span class="keywordtype">void</span> update();
|
117
|
+
<a name="l00122"></a>00122
|
118
|
+
<a name="l00123"></a>00123 <span class="comment">// This signal is fired by update() whenever someone connects</span>
|
119
|
+
<a name="l00124"></a>00124 <span class="comment">// to the port which is currently listened on.</span>
|
120
|
+
<a name="l00125"></a>00125 boost::function<void (Socket&)> onConnection;
|
121
|
+
<a name="l00126"></a>00126 };
|
122
|
+
<a name="l00127"></a>00127 }
|
123
|
+
<a name="l00128"></a>00128
|
124
|
+
<a name="l00129"></a>00129 <span class="preprocessor">#endif</span>
|
125
|
+
</pre></div></div>
|
126
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
127
|
+
<a href="http://www.doxygen.org/index.html">
|
128
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
129
|
+
</body>
|
130
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
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: Sockets.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>Sockets.hpp File Reference</h1>Interface of the three socket classes, MessageSocket, CommSocket and ListenerSocket. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="Sockets_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_1MessageSocket.html">Gosu::MessageSocket</a></td></tr>
|
30
|
+
|
31
|
+
<tr><td class="mdescLeft"> </td><td class="mdescRight">Wraps an UDP socket. <a href="classGosu_1_1MessageSocket.html#_details">More...</a><br></td></tr>
|
32
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>Gosu::CommSocket</b></td></tr>
|
33
|
+
|
34
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><b>Gosu::ListenerSocket</b></td></tr>
|
35
|
+
|
36
|
+
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
|
37
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e32efd2c73c3884c91c05d5c136d5485"></a><!-- doxytag: member="Sockets.hpp::SocketAddress" ref="e32efd2c73c3884c91c05d5c136d5485" args="" -->
|
38
|
+
typedef boost::uint32_t </td><td class="memItemRight" valign="bottom"><b>Gosu::SocketAddress</b></td></tr>
|
39
|
+
|
40
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ee6ccc5c098c8e63f50d9b4d2cea4e30"></a><!-- doxytag: member="Sockets.hpp::SocketPort" ref="ee6ccc5c098c8e63f50d9b4d2cea4e30" args="" -->
|
41
|
+
typedef boost::uint16_t </td><td class="memItemRight" valign="bottom"><b>Gosu::SocketPort</b></td></tr>
|
42
|
+
|
43
|
+
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
|
44
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>CommMode</b> { <b>cmRaw</b>,
|
45
|
+
<b>cmManaged</b>
|
46
|
+
}</td></tr>
|
47
|
+
|
48
|
+
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
|
49
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">SocketAddress </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#c2c5b3cca9903139efbd2d601a631ee6">Gosu::stringToAddress</a> (const std::string &s)</td></tr>
|
50
|
+
|
51
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#aae23447cebfab874d7657fbe0a8150e">Gosu::addressToString</a> (SocketAddress address)</td></tr>
|
52
|
+
|
53
|
+
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
|
54
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ef707f47e12343f1cc2fbfe70a1143cf"></a><!-- doxytag: member="Sockets.hpp::anyPort" ref="ef707f47e12343f1cc2fbfe70a1143cf" args="" -->
|
55
|
+
const SocketPort </td><td class="memItemRight" valign="bottom"><b>Gosu::anyPort</b> = 0</td></tr>
|
56
|
+
|
57
|
+
</table>
|
58
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
59
|
+
Interface of the three socket classes, MessageSocket, CommSocket and ListenerSocket.
|
60
|
+
<p>
|
61
|
+
</div>
|
62
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
63
|
+
<a href="http://www.doxygen.org/index.html">
|
64
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
65
|
+
</body>
|
66
|
+
</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: TextInput.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>TextInput.hpp</h1><a href="TextInput_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_TEXTINPUT_HPP</span>
|
21
|
+
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_TEXTINPUT_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 <boost/scoped_ptr.hpp></span>
|
26
|
+
<a name="l00010"></a>00010 <span class="preprocessor">#include <string></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="l00023"></a><a class="code" href="classGosu_1_1TextInput.html">00023</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1TextInput.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>
|
31
|
+
<a name="l00024"></a>00024 {
|
32
|
+
<a name="l00025"></a>00025 <span class="keyword">struct </span>Impl;
|
33
|
+
<a name="l00026"></a>00026 boost::scoped_ptr<Impl> pimpl;
|
34
|
+
<a name="l00027"></a>00027
|
35
|
+
<a name="l00028"></a>00028 <span class="keyword">public</span>:
|
36
|
+
<a name="l00029"></a>00029 <a class="code" href="classGosu_1_1TextInput.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>();
|
37
|
+
<a name="l00030"></a>00030 ~<a class="code" href="classGosu_1_1TextInput.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>();
|
38
|
+
<a name="l00031"></a>00031
|
39
|
+
<a name="l00032"></a>00032 std::wstring text() <span class="keyword">const</span>;
|
40
|
+
<a name="l00033"></a>00033
|
41
|
+
<a name="l00036"></a>00036 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1TextInput.html#442bfe73c574c19fe7432fde7b937f5d" title="Replaces the current text by the given string and positions the cursor at the end...">setText</a>(<span class="keyword">const</span> std::wstring& text);
|
42
|
+
<a name="l00037"></a>00037
|
43
|
+
<a name="l00039"></a>00039 <span class="keywordtype">unsigned</span> <a class="code" href="classGosu_1_1TextInput.html#8ad34a47b306222df9a28a57c1fa8622" title="Position of the caret as the index of the character that it&#39;s left to.">caretPos</a>() <span class="keyword">const</span>;
|
44
|
+
<a name="l00040"></a>00040
|
45
|
+
<a name="l00044"></a>00044 <span class="keywordtype">unsigned</span> <a class="code" href="classGosu_1_1TextInput.html#6ddbf85f2115575e2d05e144923630de" title="If there is a selection, the selectionStart() member yields its beginning, using...">selectionStart</a>() <span class="keyword">const</span>;
|
46
|
+
<a name="l00045"></a>00045
|
47
|
+
<a name="l00046"></a>00046 <span class="comment">// Platform-specific communication with Gosu::Input.</span>
|
48
|
+
<a name="l00047"></a>00047 <span class="preprocessor"> #if defined(GOSU_IS_MAC)</span>
|
49
|
+
<a name="l00048"></a>00048 <span class="preprocessor"></span> <span class="keywordtype">bool</span> feedNSEvent(<span class="keywordtype">void</span>* event);
|
50
|
+
<a name="l00049"></a>00049 <span class="preprocessor"> #elif defined(GOSU_IS_WIN)</span>
|
51
|
+
<a name="l00050"></a>00050 <span class="preprocessor"></span> <span class="keywordtype">bool</span> feedMessage(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> message, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> wparam, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> lparam);
|
52
|
+
<a name="l00051"></a>00051 <span class="preprocessor"> #elif defined(GOSU_IS_X)</span>
|
53
|
+
<a name="l00052"></a>00052 <span class="preprocessor"></span> <span class="keywordtype">bool</span> feedXEvent(<span class="keywordtype">void</span>* display, <span class="keywordtype">void</span>* event);
|
54
|
+
<a name="l00053"></a>00053 <span class="preprocessor"> #endif</span>
|
55
|
+
<a name="l00054"></a>00054 <span class="preprocessor"></span> };
|
56
|
+
<a name="l00055"></a>00055 }
|
57
|
+
<a name="l00056"></a>00056
|
58
|
+
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
|
59
|
+
</pre></div></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,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: TextInput.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>TextInput.hpp File Reference</h1>Interface of the TextInput class. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="TextInput_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_1TextInput.html">Gosu::TextInput</a></td></tr>
|
30
|
+
|
31
|
+
<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>
|
32
|
+
</table>
|
33
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
34
|
+
Interface of the TextInput 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>
|
@@ -0,0 +1,51 @@
|
|
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: Text.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>Text.hpp</h1><a href="Text_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_TEXT_HPP</span>
|
21
|
+
<a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_TEXT_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="GraphicsBase_8hpp.html" title="Contains general typedefs and enums related to graphics.">Gosu/GraphicsBase.hpp</a>></span>
|
25
|
+
<a name="l00009"></a>00009 <span class="preprocessor">#include <string></span>
|
26
|
+
<a name="l00010"></a>00010
|
27
|
+
<a name="l00011"></a>00011 <span class="keyword">namespace </span>Gosu
|
28
|
+
<a name="l00012"></a>00012 {
|
29
|
+
<a name="l00015"></a>00015 std::wstring <a class="code" href="namespaceGosu.html#7b47dae2708d707c82cffeaf2104e42b" title="Returns the name of a neutral font that is available on the current platform.">defaultFontName</a>();
|
30
|
+
<a name="l00016"></a>00016
|
31
|
+
<a name="l00020"></a>00020 <span class="keywordtype">unsigned</span> <a class="code" href="namespaceGosu.html#b04c11ac75a9069c4b2f8a27ae1094fc" title="Returns the width a text would span on a bitmap if it were drawn using drawText with...">textWidth</a>(<span class="keyword">const</span> std::wstring& text,
|
32
|
+
<a name="l00021"></a>00021 <span class="keyword">const</span> std::wstring& fontName, <span class="keywordtype">unsigned</span> fontHeight,
|
33
|
+
<a name="l00022"></a>00022 <span class="keywordtype">unsigned</span> fontFlags = 0);
|
34
|
+
<a name="l00023"></a>00023
|
35
|
+
<a name="l00029"></a>00029 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu.html#ea254f5ef0d5cf99b31c4ae37dc62a73" title="Draws a line of text on a bitmap.">drawText</a>(Bitmap& bitmap, <span class="keyword">const</span> std::wstring& text, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y,
|
36
|
+
<a name="l00030"></a>00030 Color c, <span class="keyword">const</span> std::wstring& fontName, <span class="keywordtype">unsigned</span> fontHeight,
|
37
|
+
<a name="l00031"></a>00031 <span class="keywordtype">unsigned</span> fontFlags = 0);
|
38
|
+
<a name="l00032"></a>00032
|
39
|
+
<a name="l00041"></a>00041 Bitmap <a class="code" href="namespaceGosu.html#1d42aec491c8241f416e72ac8a39c7a4" title="Creates a bitmap that is filled with the text given to the function.">createText</a>(<span class="keyword">const</span> std::wstring& text,
|
40
|
+
<a name="l00042"></a>00042 <span class="keyword">const</span> std::wstring& fontName, <span class="keywordtype">unsigned</span> fontHeight,
|
41
|
+
<a name="l00043"></a>00043 <span class="keywordtype">unsigned</span> lineSpacing, <span class="keywordtype">unsigned</span> maxWidth, TextAlign align,
|
42
|
+
<a name="l00044"></a>00044 <span class="keywordtype">unsigned</span> fontFlags = 0);
|
43
|
+
<a name="l00045"></a>00045 }
|
44
|
+
<a name="l00046"></a>00046
|
45
|
+
<a name="l00047"></a>00047 <span class="preprocessor">#endif</span>
|
46
|
+
</pre></div></div>
|
47
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
48
|
+
<a href="http://www.doxygen.org/index.html">
|
49
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
50
|
+
</body>
|
51
|
+
</html>
|
@@ -0,0 +1,46 @@
|
|
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: Text.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>Text.hpp File Reference</h1>Functions to output text on bitmaps. <a href="#_details">More...</a>
|
20
|
+
<p>
|
21
|
+
|
22
|
+
<p>
|
23
|
+
<a href="Text_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#7b47dae2708d707c82cffeaf2104e42b">Gosu::defaultFontName</a> ()</td></tr>
|
30
|
+
|
31
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#b04c11ac75a9069c4b2f8a27ae1094fc">Gosu::textWidth</a> (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0)</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.html#ea254f5ef0d5cf99b31c4ae37dc62a73">Gosu::drawText</a> (Bitmap &bitmap, const std::wstring &text, int x, int y, Color c, const std::wstring &fontName, unsigned fontHeight, unsigned fontFlags=0)</td></tr>
|
34
|
+
|
35
|
+
<tr><td class="memItemLeft" nowrap align="right" valign="top">Bitmap </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#1d42aec491c8241f416e72ac8a39c7a4">Gosu::createText</a> (const std::wstring &text, const std::wstring &fontName, unsigned fontHeight, unsigned lineSpacing, unsigned maxWidth, TextAlign align, unsigned fontFlags=0)</td></tr>
|
36
|
+
|
37
|
+
</table>
|
38
|
+
<hr><a name="_details"></a><h2>Detailed Description</h2>
|
39
|
+
Functions to output text on bitmaps.
|
40
|
+
<p>
|
41
|
+
</div>
|
42
|
+
<hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by
|
43
|
+
<a href="http://www.doxygen.org/index.html">
|
44
|
+
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
|
45
|
+
</body>
|
46
|
+
</html>
|