gosu 0.7.12 → 0.7.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. data/Gosu/Audio.hpp +1 -0
  2. data/Gosu/Bitmap.hpp +4 -4
  3. data/Gosu/Graphics.hpp +3 -0
  4. data/Gosu/Input.hpp +10 -0
  5. data/Gosu/Text.hpp +1 -0
  6. data/Gosu/Window.hpp +20 -9
  7. data/GosuImpl/Audio/ALChannelManagement.hpp +72 -0
  8. data/GosuImpl/Audio/AudioFileMac.hpp +105 -0
  9. data/GosuImpl/AudioOpenAL.mm +486 -0
  10. data/GosuImpl/DirectoriesTouch.mm +38 -0
  11. data/GosuImpl/Graphics/BitmapBMP.cpp +23 -8
  12. data/GosuImpl/Graphics/BitmapTouch.mm +73 -0
  13. data/GosuImpl/Graphics/BitmapUtils.cpp +0 -2
  14. data/GosuImpl/Graphics/BlockAllocator.cpp +15 -4
  15. data/GosuImpl/Graphics/Common.hpp +21 -0
  16. data/GosuImpl/Graphics/DrawOp.hpp +53 -10
  17. data/GosuImpl/Graphics/GosuView.hpp +28 -0
  18. data/GosuImpl/Graphics/GosuView.mm +159 -0
  19. data/GosuImpl/Graphics/Graphics.cpp +18 -18
  20. data/GosuImpl/Graphics/LargeImageData.cpp +3 -0
  21. data/GosuImpl/Graphics/TexChunk.cpp +3 -2
  22. data/GosuImpl/Graphics/Text.cpp +85 -20
  23. data/GosuImpl/Graphics/TextMac.cpp +14 -27
  24. data/GosuImpl/Graphics/TextTouch.mm +89 -0
  25. data/GosuImpl/Graphics/Texture.cpp +1 -5
  26. data/GosuImpl/Iconv.hpp +5 -3
  27. data/GosuImpl/InputMac.mm +8 -9
  28. data/GosuImpl/InputTouch.mm +47 -0
  29. data/GosuImpl/InputWin.cpp +12 -4
  30. data/GosuImpl/InputX.cpp +3 -1
  31. data/GosuImpl/MacUtility.hpp +41 -0
  32. data/GosuImpl/Math.cpp +1 -1
  33. data/GosuImpl/RubyGosu.swg +17 -6
  34. data/GosuImpl/RubyGosu_wrap.cxx +950 -549
  35. data/GosuImpl/RubyGosu_wrap.h +2 -1
  36. data/GosuImpl/TimingUnix.cpp +15 -17
  37. data/GosuImpl/UtilityTouch.mm +44 -0
  38. data/GosuImpl/WindowMac.mm +39 -19
  39. data/GosuImpl/WindowTouch.mm +154 -0
  40. data/GosuImpl/WindowWin.cpp +27 -10
  41. data/GosuImpl/WindowX.cpp +27 -7
  42. data/linux/extconf.rb +6 -0
  43. data/mac/Gosu.icns +0 -0
  44. data/mac/Gosu.xcodeproj/jlnr.pbxuser +562 -788
  45. data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +113 -103
  46. data/mac/Gosu.xcodeproj/project.pbxproj +258 -173
  47. data/reference/Async_8hpp-source.html +1 -1
  48. data/reference/Audio_8hpp-source.html +91 -90
  49. data/reference/Audio_8hpp.html +1 -1
  50. data/reference/AutoLink_8hpp-source.html +1 -1
  51. data/reference/AutoLink_8hpp.html +1 -1
  52. data/reference/Bitmap_8hpp-source.html +11 -12
  53. data/reference/Bitmap_8hpp.html +1 -1
  54. data/reference/ButtonsMac_8hpp-source.html +1 -1
  55. data/reference/ButtonsWin_8hpp-source.html +1 -1
  56. data/reference/ButtonsX_8hpp-source.html +1 -1
  57. data/reference/Color_8hpp-source.html +1 -1
  58. data/reference/Color_8hpp.html +1 -1
  59. data/reference/Directories_8hpp-source.html +1 -1
  60. data/reference/Directories_8hpp.html +1 -1
  61. data/reference/Font_8hpp-source.html +1 -1
  62. data/reference/Font_8hpp.html +1 -1
  63. data/reference/Fwd_8hpp-source.html +1 -1
  64. data/reference/Fwd_8hpp.html +1 -1
  65. data/reference/Gosu_8hpp-source.html +1 -1
  66. data/reference/Gosu_8hpp.html +1 -1
  67. data/reference/GraphicsBase_8hpp-source.html +1 -1
  68. data/reference/GraphicsBase_8hpp.html +1 -1
  69. data/reference/Graphics_8hpp-source.html +64 -61
  70. data/reference/Graphics_8hpp.html +8 -1
  71. data/reference/IO_8hpp-source.html +1 -1
  72. data/reference/IO_8hpp.html +1 -1
  73. data/reference/ImageData_8hpp-source.html +1 -1
  74. data/reference/ImageData_8hpp.html +1 -1
  75. data/reference/Image_8hpp-source.html +1 -1
  76. data/reference/Image_8hpp.html +1 -1
  77. data/reference/Input_8hpp-source.html +81 -71
  78. data/reference/Input_8hpp.html +7 -1
  79. data/reference/Math_8hpp-source.html +1 -1
  80. data/reference/Math_8hpp.html +1 -1
  81. data/reference/Platform_8hpp-source.html +1 -1
  82. data/reference/Platform_8hpp.html +1 -1
  83. data/reference/RotFlip_8hpp-source.html +1 -1
  84. data/reference/RotFlip_8hpp.html +1 -1
  85. data/reference/Sockets_8hpp-source.html +1 -1
  86. data/reference/Sockets_8hpp.html +1 -1
  87. data/reference/TextInput_8hpp-source.html +1 -1
  88. data/reference/TextInput_8hpp.html +1 -1
  89. data/reference/Text_8hpp-source.html +28 -27
  90. data/reference/Text_8hpp.html +1 -1
  91. data/reference/Timing_8hpp-source.html +1 -1
  92. data/reference/Timing_8hpp.html +1 -1
  93. data/reference/Utility_8hpp-source.html +1 -1
  94. data/reference/Utility_8hpp.html +1 -1
  95. data/reference/WinUtility_8hpp-source.html +1 -1
  96. data/reference/WinUtility_8hpp.html +1 -1
  97. data/reference/Window_8hpp-source.html +76 -68
  98. data/reference/Window_8hpp.html +1 -1
  99. data/reference/annotated.html +1 -1
  100. data/reference/classGosu_1_1Audio-members.html +1 -1
  101. data/reference/classGosu_1_1Audio.html +1 -1
  102. data/reference/classGosu_1_1Bitmap-members.html +3 -2
  103. data/reference/classGosu_1_1Bitmap.html +9 -6
  104. data/reference/classGosu_1_1Buffer-members.html +1 -1
  105. data/reference/classGosu_1_1Buffer.html +1 -1
  106. data/reference/classGosu_1_1Button-members.html +1 -1
  107. data/reference/classGosu_1_1Button.html +2 -2
  108. data/reference/classGosu_1_1Color-members.html +1 -1
  109. data/reference/classGosu_1_1Color.html +1 -1
  110. data/reference/classGosu_1_1File-members.html +1 -1
  111. data/reference/classGosu_1_1File.html +1 -1
  112. data/reference/classGosu_1_1Font-members.html +1 -1
  113. data/reference/classGosu_1_1Font.html +1 -1
  114. data/reference/classGosu_1_1Graphics-members.html +1 -1
  115. data/reference/classGosu_1_1Graphics.html +1 -1
  116. data/reference/classGosu_1_1Image-members.html +1 -1
  117. data/reference/classGosu_1_1Image.html +1 -1
  118. data/reference/classGosu_1_1ImageData-members.html +1 -1
  119. data/reference/classGosu_1_1ImageData.html +1 -1
  120. data/reference/classGosu_1_1Input-members.html +1 -1
  121. data/reference/classGosu_1_1Input.html +1 -1
  122. data/reference/classGosu_1_1MessageSocket-members.html +1 -1
  123. data/reference/classGosu_1_1MessageSocket.html +1 -1
  124. data/reference/classGosu_1_1Resource-members.html +1 -1
  125. data/reference/classGosu_1_1Resource.html +1 -1
  126. data/reference/classGosu_1_1Sample-members.html +1 -1
  127. data/reference/classGosu_1_1Sample.html +1 -1
  128. data/reference/classGosu_1_1SampleInstance-members.html +1 -1
  129. data/reference/classGosu_1_1SampleInstance.html +1 -1
  130. data/reference/classGosu_1_1Song-members.html +1 -1
  131. data/reference/classGosu_1_1Song.html +1 -1
  132. data/reference/classGosu_1_1TextInput-members.html +1 -1
  133. data/reference/classGosu_1_1TextInput.html +1 -1
  134. data/reference/classGosu_1_1Window-members.html +3 -3
  135. data/reference/classGosu_1_1Window.html +27 -9
  136. data/reference/files.html +1 -1
  137. data/reference/functions.html +10 -5
  138. data/reference/functions_enum.html +1 -1
  139. data/reference/functions_func.html +10 -5
  140. data/reference/functions_vars.html +1 -1
  141. data/reference/hierarchy.html +1 -1
  142. data/reference/index.html +1 -1
  143. data/reference/namespaceGosu.html +13 -2
  144. data/reference/namespaceGosu_1_1Colors.html +1 -1
  145. data/reference/namespaceGosu_1_1Win.html +1 -1
  146. data/reference/namespacemembers.html +1 -1
  147. data/reference/namespacemembers_enum.html +1 -1
  148. data/reference/namespacemembers_eval.html +1 -1
  149. data/reference/namespacemembers_func.html +1 -1
  150. data/reference/namespacemembers_type.html +1 -1
  151. data/reference/namespacemembers_vars.html +1 -1
  152. data/reference/namespaces.html +1 -1
  153. data/windows/Gosu.sln +2 -2
  154. data/windows/Gosu.vcproj +7 -8
  155. data/windows/RubyGosu.vcproj +5 -5
  156. metadata +14 -2
@@ -41,12 +41,19 @@
41
41
  <br>
42
42
  }</td></tr>
43
43
 
44
+ <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
45
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5dcc0658209b7c8523f00e58ccb663b7"></a><!-- doxytag: member="Graphics.hpp::screenWidth" ref="5dcc0658209b7c8523f00e58ccb663b7" args="()" -->
46
+ unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::screenWidth</b> ()</td></tr>
47
+
48
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2934a7df026d36a3b8793e8097f701c5"></a><!-- doxytag: member="Graphics.hpp::screenHeight" ref="2934a7df026d36a3b8793e8097f701c5" args="()" -->
49
+ unsigned&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::screenHeight</b> ()</td></tr>
50
+
44
51
  </table>
45
52
  <hr><a name="_details"></a><h2>Detailed Description</h2>
46
53
  Interface of the Graphics class.
47
54
  <p>
48
55
  </div>
49
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
56
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
50
57
  <a href="http://www.doxygen.org/index.html">
51
58
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
52
59
  </body>
@@ -248,7 +248,7 @@
248
248
  <a name="l00254"></a>00254
249
249
  <a name="l00255"></a>00255 <span class="preprocessor">#endif</span>
250
250
  </pre></div></div>
251
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
251
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
252
252
  <a href="http://www.doxygen.org/index.html">
253
253
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
254
254
  </body>
@@ -67,7 +67,7 @@ const ByteOrder&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::othe
67
67
  Contains everything related to input and output.
68
68
  <p>
69
69
  </div>
70
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
70
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
71
71
  <a href="http://www.doxygen.org/index.html">
72
72
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
73
73
  </body>
@@ -55,7 +55,7 @@
55
55
  <a name="l00044"></a>00044
56
56
  <a name="l00045"></a>00045 <span class="preprocessor">#endif</span>
57
57
  </pre></div></div>
58
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
58
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
59
59
  <a href="http://www.doxygen.org/index.html">
60
60
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
61
61
  </body>
@@ -36,7 +36,7 @@
36
36
  Interface of the ImageData class.
37
37
  <p>
38
38
  </div>
39
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
39
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
40
40
  <a href="http://www.doxygen.org/index.html">
41
41
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
42
42
  </body>
@@ -119,7 +119,7 @@
119
119
  <a name="l00147"></a>00147
120
120
  <a name="l00148"></a>00148 <span class="preprocessor">#endif</span>
121
121
  </pre></div></div>
122
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
122
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
123
123
  <a href="http://www.doxygen.org/index.html">
124
124
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
125
125
  </body>
@@ -41,7 +41,7 @@
41
41
  Interface of the Image class and helper functions.
42
42
  <p>
43
43
  </div>
44
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
44
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
45
45
  <a href="http://www.doxygen.org/index.html">
46
46
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
47
47
  </body>
@@ -43,78 +43,88 @@
43
43
  <a name="l00027"></a>00027 <span class="preprocessor">#include &lt;<a class="code" href="Fwd_8hpp.html" title="Contains declarations of all of Gosu&amp;#39;s available classes.">Gosu/Fwd.hpp</a>&gt;</span>
44
44
  <a name="l00028"></a>00028 <span class="preprocessor">#include &lt;boost/function.hpp&gt;</span>
45
45
  <a name="l00029"></a>00029 <span class="preprocessor">#include &lt;boost/scoped_ptr.hpp&gt;</span>
46
- <a name="l00030"></a>00030
47
- <a name="l00031"></a>00031 <span class="keyword">namespace </span>Gosu
48
- <a name="l00032"></a>00032 {
49
- <a name="l00034"></a><a class="code" href="classGosu_1_1Button.html">00034</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a>
50
- <a name="l00035"></a>00035 {
51
- <a name="l00036"></a>00036 <span class="keywordtype">unsigned</span> id;
52
- <a name="l00037"></a>00037
53
- <a name="l00038"></a>00038 <span class="keyword">public</span>:
54
- <a name="l00040"></a><a class="code" href="classGosu_1_1Button.html#e32f254fdf87bd98cfaa2c1be62e5600">00040</a> <span class="keyword">explicit</span> <a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">id</span>) : id(id) {}
55
- <a name="l00042"></a><a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2">00042</a> <span class="keywordtype">unsigned</span> <a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
56
- <a name="l00043"></a>00043
57
- <a name="l00045"></a><a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254">00045</a> <a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>() : id(noButton) {}
58
- <a name="l00046"></a>00046
59
- <a name="l00048"></a><a class="code" href="classGosu_1_1Button.html#b0d53d357fa263d676d803c6c6baf843">00048</a> <a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>(<a class="code" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368" title="List of all the button ids that can be used with Gosu::Input.">ButtonName</a> name) : id(name) {}
60
- <a name="l00049"></a>00049 };
61
- <a name="l00050"></a>00050
62
- <a name="l00052"></a><a class="code" href="namespaceGosu.html#8abc916db977614382f04aef415c21c3">00052</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> lhs, <a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> rhs)
63
- <a name="l00053"></a>00053 {
64
- <a name="l00054"></a>00054 <span class="keywordflow">return</span> lhs.<a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>() == rhs.<a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>();
65
- <a name="l00055"></a>00055 }
66
- <a name="l00056"></a>00056 <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!=(Button lhs, Button rhs)
67
- <a name="l00057"></a>00057 {
68
- <a name="l00058"></a>00058 <span class="keywordflow">return</span> !(lhs == rhs);
69
- <a name="l00059"></a>00059 }
70
- <a name="l00060"></a>00060
71
- <a name="l00063"></a><a class="code" href="classGosu_1_1Input.html">00063</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>
72
- <a name="l00064"></a>00064 {
73
- <a name="l00065"></a>00065 <span class="keyword">struct </span>Impl;
74
- <a name="l00066"></a>00066 boost::scoped_ptr&lt;Impl&gt; pimpl;
75
- <a name="l00067"></a>00067
76
- <a name="l00068"></a>00068 <span class="keyword">public</span>:
77
- <a name="l00069"></a>00069 <span class="preprocessor"> #ifdef GOSU_IS_WIN</span>
78
- <a name="l00070"></a>00070 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>(HWND window);
79
- <a name="l00071"></a>00071 <span class="preprocessor"> #endif</span>
80
- <a name="l00072"></a>00072 <span class="preprocessor"></span>
81
- <a name="l00073"></a>00073 <span class="preprocessor"> #ifdef GOSU_IS_MAC</span>
82
- <a name="l00074"></a>00074 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>(<span class="keywordtype">void</span>* nswindow);
83
- <a name="l00075"></a>00075 <span class="keywordtype">bool</span> feedNSEvent(<span class="keywordtype">void</span>* event);
84
- <a name="l00076"></a>00076 <span class="preprocessor"> #endif</span>
85
- <a name="l00077"></a>00077 <span class="preprocessor"></span>
86
- <a name="l00078"></a>00078 <span class="preprocessor"> #ifdef GOSU_IS_X</span>
87
- <a name="l00079"></a>00079 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>(::Display* display, ::<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> window);
88
- <a name="l00080"></a>00080 <span class="keywordtype">bool</span> feedXEvent(::XEvent&amp; event);
89
- <a name="l00081"></a>00081 <span class="preprocessor"> #endif</span>
90
- <a name="l00082"></a>00082 <span class="preprocessor"></span>
91
- <a name="l00083"></a>00083 ~<a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>();
92
- <a name="l00084"></a>00084
93
- <a name="l00086"></a>00086 <span class="keyword">static</span> <span class="keywordtype">wchar_t</span> <a class="code" href="classGosu_1_1Input.html#fc9e732c19055c9f80afb147eac8414b" title="Returns the character a button usually produces, or 0.">idToChar</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn);
94
- <a name="l00089"></a>00089 <span class="keyword">static</span> <a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> <a class="code" href="classGosu_1_1Input.html#1cb42fd48c134fac5c2c8496b1e9f05a" title="Returns the button that has to be pressed to produce the given character, or noButton...">charToId</a>(<span class="keywordtype">wchar_t</span> ch);
95
- <a name="l00090"></a>00090
96
- <a name="l00092"></a>00092 <span class="keywordtype">bool</span> <a class="code" href="classGosu_1_1Input.html#b4645c1bf26bceea7f8cfc43680667f1" title="Returns true if a button is currently pressed.">down</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn) <span class="keyword">const</span>;
97
- <a name="l00093"></a>00093
98
- <a name="l00096"></a>00096 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Input.html#6849d640adfe2d576431ab2551c105c1" title="Returns the horizontal position of the mouse relative to the top left corner of the...">mouseX</a>() <span class="keyword">const</span>;
99
- <a name="l00098"></a>00098 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Input.html#5bedd5d599dfe530043b3b0f6e3bf2a4" title="See mouseX.">mouseY</a>() <span class="keyword">const</span>;
100
- <a name="l00099"></a>00099
101
- <a name="l00103"></a>00103 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Input.html#df5d807bd1cbac95bd4bd86dc5588dea" title="Immediately moves the mouse as far towards the desired position as possible.">setMousePosition</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
102
- <a name="l00104"></a>00104
103
- <a name="l00105"></a>00105 <span class="comment">// Undocumented for the moment.</span>
104
- <a name="l00106"></a>00106 <span class="keywordtype">void</span> setMouseFactors(<span class="keywordtype">double</span> factorX, <span class="keywordtype">double</span> factorY);
105
- <a name="l00107"></a>00107
106
- <a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Input.html#904cd360ad96838a61b408d5aa6729aa" title="Collects new information about which buttons are pressed, where the mouse is and...">update</a>();
107
- <a name="l00111"></a>00111
108
- <a name="l00114"></a><a class="code" href="classGosu_1_1Input.html#b8ea5dbbd08d812cb8d5efa399750e77">00114</a> boost::function&lt;void (Button)&gt; <a class="code" href="classGosu_1_1Input.html#b8ea5dbbd08d812cb8d5efa399750e77" title="Assignable events that are called by update.">onButtonDown</a>, onButtonUp;
109
- <a name="l00115"></a>00115
110
- <a name="l00116"></a>00116 <a class="code" href="classGosu_1_1TextInput.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* textInput() <span class="keyword">const</span>;
111
- <a name="l00117"></a>00117 <span class="keywordtype">void</span> setTextInput(<a class="code" href="classGosu_1_1TextInput.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* input);
112
- <a name="l00118"></a>00118 };
113
- <a name="l00119"></a>00119 }
114
- <a name="l00120"></a>00120
115
- <a name="l00121"></a>00121 <span class="preprocessor">#endif</span>
46
+ <a name="l00030"></a>00030 <span class="preprocessor">#include &lt;vector&gt;</span>
47
+ <a name="l00031"></a>00031
48
+ <a name="l00032"></a>00032 <span class="keyword">namespace </span>Gosu
49
+ <a name="l00033"></a>00033 {
50
+ <a name="l00035"></a><a class="code" href="classGosu_1_1Button.html">00035</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a>
51
+ <a name="l00036"></a>00036 {
52
+ <a name="l00037"></a>00037 <span class="keywordtype">unsigned</span> id;
53
+ <a name="l00038"></a>00038
54
+ <a name="l00039"></a>00039 <span class="keyword">public</span>:
55
+ <a name="l00041"></a><a class="code" href="classGosu_1_1Button.html#e32f254fdf87bd98cfaa2c1be62e5600">00041</a> <span class="keyword">explicit</span> <a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">id</span>) : id(id) {}
56
+ <a name="l00043"></a><a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2">00043</a> <span class="keywordtype">unsigned</span> <a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> id; }
57
+ <a name="l00044"></a>00044
58
+ <a name="l00046"></a><a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254">00046</a> <a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>() : id(noButton) {}
59
+ <a name="l00047"></a>00047
60
+ <a name="l00049"></a><a class="code" href="classGosu_1_1Button.html#b0d53d357fa263d676d803c6c6baf843">00049</a> <a class="code" href="classGosu_1_1Button.html#0277cb92caff494eb2b568101ada4254" title="Default constructor; == noButton.">Button</a>(<a class="code" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368" title="List of all the button ids that can be used with Gosu::Input.">ButtonName</a> name) : id(name) {}
61
+ <a name="l00050"></a>00050 };
62
+ <a name="l00051"></a>00051
63
+ <a name="l00052"></a>00052 <span class="comment">// Available even on non-iPhone platforms to make it easier to compile the</span>
64
+ <a name="l00053"></a>00053 <span class="comment">// same source for multiple platforms. To be moved to Input.hpp, though.</span>
65
+ <a name="l00054"></a>00054 <span class="keyword">struct </span>Touch { <span class="keywordtype">void</span>* id; <span class="keywordtype">double</span> x, y; };
66
+ <a name="l00055"></a>00055 <span class="keyword">typedef</span> std::vector&lt;Touch&gt; Touches;
67
+ <a name="l00056"></a>00056
68
+ <a name="l00058"></a><a class="code" href="namespaceGosu.html#8abc916db977614382f04aef415c21c3">00058</a> <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> lhs, <a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> rhs)
69
+ <a name="l00059"></a>00059 {
70
+ <a name="l00060"></a>00060 <span class="keywordflow">return</span> lhs.<a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>() == rhs.<a class="code" href="classGosu_1_1Button.html#b4427dd79ad56325fc5d0509b7ddaed2" title="For internal use.">getId</a>();
71
+ <a name="l00061"></a>00061 }
72
+ <a name="l00062"></a>00062 <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!=(Button lhs, Button rhs)
73
+ <a name="l00063"></a>00063 {
74
+ <a name="l00064"></a>00064 <span class="keywordflow">return</span> !(lhs == rhs);
75
+ <a name="l00065"></a>00065 }
76
+ <a name="l00066"></a>00066
77
+ <a name="l00069"></a><a class="code" href="classGosu_1_1Input.html">00069</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>
78
+ <a name="l00070"></a>00070 {
79
+ <a name="l00071"></a>00071 <span class="keyword">struct </span>Impl;
80
+ <a name="l00072"></a>00072 boost::scoped_ptr&lt;Impl&gt; pimpl;
81
+ <a name="l00073"></a>00073
82
+ <a name="l00074"></a>00074 <span class="keyword">public</span>:
83
+ <a name="l00075"></a>00075 <span class="preprocessor"> #ifdef GOSU_IS_WIN</span>
84
+ <a name="l00076"></a>00076 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>(HWND window);
85
+ <a name="l00077"></a>00077 <span class="preprocessor"> #endif</span>
86
+ <a name="l00078"></a>00078 <span class="preprocessor"></span>
87
+ <a name="l00079"></a>00079 <span class="preprocessor"> #ifdef GOSU_IS_MAC</span>
88
+ <a name="l00080"></a>00080 <span class="preprocessor"></span><span class="preprocessor"> #ifdef GOSU_IS_IPHONE</span>
89
+ <a name="l00081"></a>00081 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>();
90
+ <a name="l00082"></a>00082 <span class="preprocessor"> #else</span>
91
+ <a name="l00083"></a>00083 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>(<span class="keywordtype">void</span>* nswindow);
92
+ <a name="l00084"></a>00084 <span class="keywordtype">bool</span> feedNSEvent(<span class="keywordtype">void</span>* event);
93
+ <a name="l00085"></a>00085 <span class="preprocessor"> #endif</span>
94
+ <a name="l00086"></a>00086 <span class="preprocessor"></span><span class="preprocessor"> #endif</span>
95
+ <a name="l00087"></a>00087 <span class="preprocessor"></span>
96
+ <a name="l00088"></a>00088 <span class="preprocessor"> #ifdef GOSU_IS_X</span>
97
+ <a name="l00089"></a>00089 <span class="preprocessor"></span> <a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>(::Display* display, ::<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> window);
98
+ <a name="l00090"></a>00090 <span class="keywordtype">bool</span> feedXEvent(::XEvent&amp; event);
99
+ <a name="l00091"></a>00091 <span class="preprocessor"> #endif</span>
100
+ <a name="l00092"></a>00092 <span class="preprocessor"></span>
101
+ <a name="l00093"></a>00093 ~<a class="code" href="classGosu_1_1Input.html" title="Manages initialization and shutdown of the input system.">Input</a>();
102
+ <a name="l00094"></a>00094
103
+ <a name="l00096"></a>00096 <span class="keyword">static</span> <span class="keywordtype">wchar_t</span> <a class="code" href="classGosu_1_1Input.html#fc9e732c19055c9f80afb147eac8414b" title="Returns the character a button usually produces, or 0.">idToChar</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn);
104
+ <a name="l00099"></a>00099 <span class="keyword">static</span> <a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> <a class="code" href="classGosu_1_1Input.html#1cb42fd48c134fac5c2c8496b1e9f05a" title="Returns the button that has to be pressed to produce the given character, or noButton...">charToId</a>(<span class="keywordtype">wchar_t</span> ch);
105
+ <a name="l00100"></a>00100
106
+ <a name="l00102"></a>00102 <span class="keywordtype">bool</span> <a class="code" href="classGosu_1_1Input.html#b4645c1bf26bceea7f8cfc43680667f1" title="Returns true if a button is currently pressed.">down</a>(<a class="code" href="classGosu_1_1Button.html" title="Very lightweight class that identifies a button (keyboard, mouse or other device)...">Button</a> btn) <span class="keyword">const</span>;
107
+ <a name="l00103"></a>00103
108
+ <a name="l00106"></a>00106 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Input.html#6849d640adfe2d576431ab2551c105c1" title="Returns the horizontal position of the mouse relative to the top left corner of the...">mouseX</a>() <span class="keyword">const</span>;
109
+ <a name="l00108"></a>00108 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Input.html#5bedd5d599dfe530043b3b0f6e3bf2a4" title="See mouseX.">mouseY</a>() <span class="keyword">const</span>;
110
+ <a name="l00109"></a>00109
111
+ <a name="l00113"></a>00113 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Input.html#df5d807bd1cbac95bd4bd86dc5588dea" title="Immediately moves the mouse as far towards the desired position as possible.">setMousePosition</a>(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y);
112
+ <a name="l00114"></a>00114
113
+ <a name="l00115"></a>00115 <span class="comment">// Undocumented for the moment.</span>
114
+ <a name="l00116"></a>00116 <span class="keywordtype">void</span> setMouseFactors(<span class="keywordtype">double</span> factorX, <span class="keywordtype">double</span> factorY);
115
+ <a name="l00117"></a>00117
116
+ <a name="l00120"></a>00120 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Input.html#904cd360ad96838a61b408d5aa6729aa" title="Collects new information about which buttons are pressed, where the mouse is and...">update</a>();
117
+ <a name="l00121"></a>00121
118
+ <a name="l00124"></a><a class="code" href="classGosu_1_1Input.html#b8ea5dbbd08d812cb8d5efa399750e77">00124</a> boost::function&lt;void (Button)&gt; <a class="code" href="classGosu_1_1Input.html#b8ea5dbbd08d812cb8d5efa399750e77" title="Assignable events that are called by update.">onButtonDown</a>, onButtonUp;
119
+ <a name="l00125"></a>00125
120
+ <a name="l00126"></a>00126 <a class="code" href="classGosu_1_1TextInput.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* textInput() <span class="keyword">const</span>;
121
+ <a name="l00127"></a>00127 <span class="keywordtype">void</span> setTextInput(<a class="code" href="classGosu_1_1TextInput.html" title="TextInput instances are invisible objects that build a text string from input, using...">TextInput</a>* input);
122
+ <a name="l00128"></a>00128 };
123
+ <a name="l00129"></a>00129 }
124
+ <a name="l00130"></a>00130
125
+ <a name="l00131"></a>00131 <span class="preprocessor">#endif</span>
116
126
  </pre></div></div>
117
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
127
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
118
128
  <a href="http://www.doxygen.org/index.html">
119
129
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
120
130
  </body>
@@ -29,9 +29,15 @@
29
29
  <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Button.html">Gosu::Button</a></td></tr>
30
30
 
31
31
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Very lightweight class that identifies a button (keyboard, mouse or other device). <a href="classGosu_1_1Button.html#_details">More...</a><br></td></tr>
32
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::Touch</b></td></tr>
33
+
32
34
  <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGosu_1_1Input.html">Gosu::Input</a></td></tr>
33
35
 
34
36
  <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Manages initialization and shutdown of the input system. <a href="classGosu_1_1Input.html#_details">More...</a><br></td></tr>
37
+ <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
38
+ <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fb6633385bb7471380c0e621bfe605fb"></a><!-- doxytag: member="Input.hpp::Touches" ref="fb6633385bb7471380c0e621bfe605fb" args="" -->
39
+ typedef std::vector&lt; Touch &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::Touches</b></td></tr>
40
+
35
41
  <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
36
42
  <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceGosu.html#8abc916db977614382f04aef415c21c3">Gosu::operator==</a> (Button lhs, Button rhs)</td></tr>
37
43
 
@@ -43,7 +49,7 @@ bool&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::operator!=</b>
43
49
  Interface of the Input class.
44
50
  <p>
45
51
  </div>
46
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
52
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
47
53
  <a href="http://www.doxygen.org/index.html">
48
54
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
49
55
  </body>
@@ -94,7 +94,7 @@
94
94
  <a name="l00105"></a>00105
95
95
  <a name="l00106"></a>00106 <span class="preprocessor">#endif</span>
96
96
  </pre></div></div>
97
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
97
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
98
98
  <a href="http://www.doxygen.org/index.html">
99
99
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
100
100
  </body>
@@ -71,7 +71,7 @@ template&lt;typename T&gt; </td></tr>
71
71
  Contains simple math functionality.
72
72
  <p>
73
73
  </div>
74
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
74
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
75
75
  <a href="http://www.doxygen.org/index.html">
76
76
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
77
77
  </body>
@@ -78,7 +78,7 @@
78
78
  <a name="l00062"></a>00062 <span class="preprocessor"></span>
79
79
  <a name="l00063"></a>00063 <span class="preprocessor">#endif</span>
80
80
  </pre></div></div>
81
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
81
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
82
82
  <a href="http://www.doxygen.org/index.html">
83
83
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
84
84
  </body>
@@ -66,7 +66,7 @@ template&lt;typename T&gt; </td></tr>
66
66
  Macros and utility functions to facilitate programming on all of Gosu's supported platforms.
67
67
  <p>
68
68
  </div>
69
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
69
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
70
70
  <a href="http://www.doxygen.org/index.html">
71
71
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
72
72
  </body>
@@ -131,7 +131,7 @@
131
131
  <a name="l00115"></a>00115
132
132
  <a name="l00116"></a>00116 <span class="preprocessor">#endif</span>
133
133
  </pre></div></div>
134
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
134
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
135
135
  <a href="http://www.doxygen.org/index.html">
136
136
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
137
137
  </body>
@@ -70,7 +70,7 @@ void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::applyToPoint</b
70
70
  Interface of the undocumented RotFlip class.
71
71
  <p>
72
72
  </div>
73
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
73
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
74
74
  <a href="http://www.doxygen.org/index.html">
75
75
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
76
76
  </body>
@@ -123,7 +123,7 @@
123
123
  <a name="l00128"></a>00128
124
124
  <a name="l00129"></a>00129 <span class="preprocessor">#endif</span>
125
125
  </pre></div></div>
126
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
126
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
127
127
  <a href="http://www.doxygen.org/index.html">
128
128
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
129
129
  </body>
@@ -59,7 +59,7 @@ const SocketPort&nbsp;</td><td class="memItemRight" valign="bottom"><b>Gosu::any
59
59
  Interface of the three socket classes, MessageSocket, CommSocket and ListenerSocket.
60
60
  <p>
61
61
  </div>
62
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
62
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
63
63
  <a href="http://www.doxygen.org/index.html">
64
64
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
65
65
  </body>
@@ -57,7 +57,7 @@
57
57
  <a name="l00056"></a>00056
58
58
  <a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
59
59
  </pre></div></div>
60
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
60
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
61
61
  <a href="http://www.doxygen.org/index.html">
62
62
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
63
63
  </body>
@@ -34,7 +34,7 @@
34
34
  Interface of the TextInput class.
35
35
  <p>
36
36
  </div>
37
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
37
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
38
38
  <a href="http://www.doxygen.org/index.html">
39
39
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
40
40
  </body>
@@ -21,34 +21,35 @@
21
21
  <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_TEXT_HPP</span>
22
22
  <a name="l00006"></a>00006 <span class="preprocessor"></span>
23
23
  <a name="l00007"></a>00007 <span class="preprocessor">#include &lt;<a class="code" href="Fwd_8hpp.html" title="Contains declarations of all of Gosu&amp;#39;s available classes.">Gosu/Fwd.hpp</a>&gt;</span>
24
- <a name="l00008"></a>00008 <span class="preprocessor">#include &lt;<a class="code" href="GraphicsBase_8hpp.html" title="Contains general typedefs and enums related to graphics.">Gosu/GraphicsBase.hpp</a>&gt;</span>
25
- <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;string&gt;</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&amp; text,
32
- <a name="l00021"></a>00021 <span class="keyword">const</span> std::wstring&amp; 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&amp; bitmap, <span class="keyword">const</span> std::wstring&amp; 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&amp; 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="l00039"></a>00039 Bitmap <a class="code" href="namespaceGosu.html#66acd03b42a4902bf2aa2d2c0c526ee8" title="Creates a bitmap that is filled with a line of text given to the function.">createText</a>(<span class="keyword">const</span> std::wstring&amp; text,
40
- <a name="l00040"></a>00040 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
41
- <a name="l00041"></a>00041 <span class="keywordtype">unsigned</span> fontFlags = 0);
42
- <a name="l00042"></a>00042
43
- <a name="l00053"></a>00053 Bitmap <a class="code" href="namespaceGosu.html#66acd03b42a4902bf2aa2d2c0c526ee8" title="Creates a bitmap that is filled with a line of text given to the function.">createText</a>(<span class="keyword">const</span> std::wstring&amp; text,
44
- <a name="l00054"></a>00054 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
45
- <a name="l00055"></a>00055 <span class="keywordtype">unsigned</span> lineSpacing, <span class="keywordtype">unsigned</span> maxWidth, TextAlign align,
46
- <a name="l00056"></a>00056 <span class="keywordtype">unsigned</span> fontFlags = 0);
47
- <a name="l00057"></a>00057 }
48
- <a name="l00058"></a>00058
49
- <a name="l00059"></a>00059 <span class="preprocessor">#endif</span>
24
+ <a name="l00008"></a>00008 <span class="preprocessor">#include &lt;<a class="code" href="Color_8hpp.html" title="Interface of the Color class.">Gosu/Color.hpp</a>&gt;</span>
25
+ <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;<a class="code" href="GraphicsBase_8hpp.html" title="Contains general typedefs and enums related to graphics.">Gosu/GraphicsBase.hpp</a>&gt;</span>
26
+ <a name="l00010"></a>00010 <span class="preprocessor">#include &lt;string&gt;</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="l00016"></a>00016 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>();
31
+ <a name="l00017"></a>00017
32
+ <a name="l00021"></a>00021 <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&amp; text,
33
+ <a name="l00022"></a>00022 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
34
+ <a name="l00023"></a>00023 <span class="keywordtype">unsigned</span> fontFlags = 0);
35
+ <a name="l00024"></a>00024
36
+ <a name="l00030"></a>00030 <span class="keywordtype">void</span> <a class="code" href="namespaceGosu.html#ea254f5ef0d5cf99b31c4ae37dc62a73" title="Draws a line of text on a bitmap.">drawText</a>(Bitmap&amp; bitmap, <span class="keyword">const</span> std::wstring&amp; text, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y,
37
+ <a name="l00031"></a>00031 Color c, <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
38
+ <a name="l00032"></a>00032 <span class="keywordtype">unsigned</span> fontFlags = 0);
39
+ <a name="l00033"></a>00033
40
+ <a name="l00040"></a>00040 Bitmap <a class="code" href="namespaceGosu.html#66acd03b42a4902bf2aa2d2c0c526ee8" title="Creates a bitmap that is filled with a line of text given to the function.">createText</a>(<span class="keyword">const</span> std::wstring&amp; text,
41
+ <a name="l00041"></a>00041 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
42
+ <a name="l00042"></a>00042 <span class="keywordtype">unsigned</span> fontFlags = 0);
43
+ <a name="l00043"></a>00043
44
+ <a name="l00054"></a>00054 Bitmap <a class="code" href="namespaceGosu.html#66acd03b42a4902bf2aa2d2c0c526ee8" title="Creates a bitmap that is filled with a line of text given to the function.">createText</a>(<span class="keyword">const</span> std::wstring&amp; text,
45
+ <a name="l00055"></a>00055 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
46
+ <a name="l00056"></a>00056 <span class="keywordtype">unsigned</span> lineSpacing, <span class="keywordtype">unsigned</span> maxWidth, TextAlign align,
47
+ <a name="l00057"></a>00057 <span class="keywordtype">unsigned</span> fontFlags = 0);
48
+ <a name="l00058"></a>00058 }
49
+ <a name="l00059"></a>00059
50
+ <a name="l00060"></a>00060 <span class="preprocessor">#endif</span>
50
51
  </pre></div></div>
51
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
52
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
52
53
  <a href="http://www.doxygen.org/index.html">
53
54
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
54
55
  </body>
@@ -41,7 +41,7 @@
41
41
  Functions to output text on bitmaps.
42
42
  <p>
43
43
  </div>
44
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
44
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
45
45
  <a href="http://www.doxygen.org/index.html">
46
46
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
47
47
  </body>
@@ -29,7 +29,7 @@
29
29
  <a name="l00015"></a>00015
30
30
  <a name="l00016"></a>00016 <span class="preprocessor">#endif</span>
31
31
  </pre></div></div>
32
- <hr size="1"><address style="text-align: right;"><small>Generated on Sat Feb 7 22:34:53 2009 for Gosu by&nbsp;
32
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
33
33
  <a href="http://www.doxygen.org/index.html">
34
34
  <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
35
35
  </body>