gosu 0.7.13 → 0.7.13.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (312) hide show
  1. data/COPYING.txt +4 -2
  2. data/Gosu/Audio.hpp +8 -5
  3. data/Gosu/Font.hpp +5 -3
  4. data/Gosu/Gosu.hpp +6 -0
  5. data/Gosu/Graphics.hpp +6 -13
  6. data/Gosu/GraphicsBase.hpp +14 -3
  7. data/Gosu/IO.hpp +259 -255
  8. data/Gosu/Image.hpp +12 -12
  9. data/Gosu/ImageData.hpp +3 -0
  10. data/Gosu/Input.hpp +14 -2
  11. data/Gosu/Math.hpp +3 -2
  12. data/Gosu/RotFlip.hpp +125 -116
  13. data/Gosu/Sockets.hpp +139 -129
  14. data/Gosu/Text.hpp +4 -4
  15. data/Gosu/WinUtility.hpp +1 -1
  16. data/Gosu/Window.hpp +9 -5
  17. data/GosuImpl/Graphics/BitmapUtils.cpp +8 -8
  18. data/GosuImpl/Graphics/DrawOp.hpp +13 -14
  19. data/GosuImpl/Graphics/Graphics.cpp +3 -2
  20. data/GosuImpl/Graphics/Image.cpp +8 -8
  21. data/GosuImpl/Graphics/LargeImageData.cpp +8 -8
  22. data/GosuImpl/Graphics/Text.cpp +15 -3
  23. data/GosuImpl/{TextTTFWin.cpp → Graphics/TextTTFWin.cpp} +0 -0
  24. data/GosuImpl/Graphics/TextWin.cpp +36 -25
  25. data/GosuImpl/Graphics/Texture.cpp +2 -0
  26. data/GosuImpl/Iconv.hpp +1 -3
  27. data/GosuImpl/RubyGosu.swg +19 -10
  28. data/GosuImpl/RubyGosuStub.mm +40 -8
  29. data/GosuImpl/RubyGosu_SWIG_GC_PATCH.patch +126 -0
  30. data/GosuImpl/RubyGosu_wrap.cxx +1601 -247
  31. data/GosuImpl/RubyGosu_wrap.h +1 -1
  32. data/GosuImpl/WindowWin.cpp +18 -6
  33. data/README.txt +5 -5
  34. data/Rakefile +27 -7
  35. data/linux/Makefile.in +1 -1
  36. data/mac/Gosu.xcodeproj/jlnr.pbxuser +939 -350
  37. data/mac/Gosu.xcodeproj/jlnr.perspectivev3 +66 -61
  38. data/mac/Gosu.xcodeproj/project.pbxproj +474 -92
  39. data/mac/RubyGosu Template-Info.plist b/data/mac/RubyGosu → App-Info.plist +0 -0
  40. data/reference/cpp/_audio_8hpp-source.html +171 -0
  41. data/reference/cpp/_audio_8hpp.html +96 -0
  42. data/reference/cpp/_auto_link_8hpp-source.html +84 -0
  43. data/reference/cpp/_auto_link_8hpp.html +83 -0
  44. data/reference/cpp/_bitmap_8hpp-source.html +130 -0
  45. data/reference/cpp/_bitmap_8hpp.html +107 -0
  46. data/reference/{ButtonsMac_8hpp-source.html → cpp/_buttons_mac_8hpp-source.html} +60 -14
  47. data/reference/cpp/_buttons_mac_8hpp.html +233 -0
  48. data/reference/cpp/_color_8hpp-source.html +215 -0
  49. data/reference/cpp/_color_8hpp.html +119 -0
  50. data/reference/cpp/_directories_8hpp-source.html +88 -0
  51. data/reference/cpp/_directories_8hpp.html +96 -0
  52. data/reference/cpp/_font_8hpp-source.html +111 -0
  53. data/reference/cpp/_font_8hpp.html +87 -0
  54. data/reference/{Fwd_8hpp-source.html → cpp/_fwd_8hpp-source.html} +59 -13
  55. data/reference/cpp/_fwd_8hpp.html +83 -0
  56. data/reference/cpp/_gosu_8hpp-source.html +96 -0
  57. data/reference/cpp/_gosu_8hpp.html +83 -0
  58. data/reference/cpp/_graphics_8hpp-source.html +134 -0
  59. data/reference/cpp/_graphics_8hpp.html +94 -0
  60. data/reference/cpp/_graphics_base_8hpp-source.html +115 -0
  61. data/reference/cpp/_graphics_base_8hpp.html +120 -0
  62. data/reference/cpp/_i_o_8hpp-source.html +301 -0
  63. data/reference/cpp/_i_o_8hpp.html +122 -0
  64. data/reference/cpp/_image_8hpp-source.html +172 -0
  65. data/reference/cpp/_image_8hpp.html +96 -0
  66. data/reference/cpp/_image_data_8hpp-source.html +108 -0
  67. data/reference/cpp/_image_data_8hpp.html +90 -0
  68. data/reference/cpp/_input_8hpp-source.html +182 -0
  69. data/reference/cpp/_input_8hpp.html +102 -0
  70. data/reference/cpp/_math_8hpp-source.html +147 -0
  71. data/reference/cpp/_math_8hpp.html +139 -0
  72. data/reference/{Platform_8hpp-source.html → cpp/_platform_8hpp-source.html} +61 -15
  73. data/reference/cpp/_platform_8hpp.html +136 -0
  74. data/reference/cpp/_rot_flip_8hpp-source.html +184 -0
  75. data/reference/cpp/_rot_flip_8hpp.html +123 -0
  76. data/reference/cpp/_sockets_8hpp-source.html +174 -0
  77. data/reference/cpp/_sockets_8hpp.html +117 -0
  78. data/reference/cpp/_text_8hpp-source.html +102 -0
  79. data/reference/cpp/_text_8hpp.html +99 -0
  80. data/reference/cpp/_text_input_8hpp-source.html +110 -0
  81. data/reference/cpp/_text_input_8hpp.html +87 -0
  82. data/reference/cpp/_timing_8hpp-source.html +82 -0
  83. data/reference/cpp/_timing_8hpp.html +90 -0
  84. data/reference/cpp/_utility_8hpp-source.html +89 -0
  85. data/reference/cpp/_utility_8hpp.html +96 -0
  86. data/reference/cpp/_win_utility_8hpp-source.html +125 -0
  87. data/reference/cpp/_win_utility_8hpp.html +116 -0
  88. data/reference/cpp/_window_8hpp-source.html +157 -0
  89. data/reference/cpp/_window_8hpp.html +87 -0
  90. data/reference/cpp/annotated.html +98 -0
  91. data/reference/cpp/class_gosu_1_1_audio-members.html +74 -0
  92. data/reference/cpp/class_gosu_1_1_audio.html +132 -0
  93. data/reference/cpp/class_gosu_1_1_bitmap-members.html +85 -0
  94. data/reference/cpp/class_gosu_1_1_bitmap.html +501 -0
  95. data/reference/cpp/class_gosu_1_1_buffer-members.html +84 -0
  96. data/reference/cpp/class_gosu_1_1_buffer.html +346 -0
  97. data/reference/{classGosu_1_1Buffer.png → cpp/class_gosu_1_1_buffer.png} +0 -0
  98. data/reference/cpp/class_gosu_1_1_button-members.html +76 -0
  99. data/reference/cpp/class_gosu_1_1_button.html +195 -0
  100. data/reference/cpp/class_gosu_1_1_color-members.html +96 -0
  101. data/reference/cpp/class_gosu_1_1_color.html +758 -0
  102. data/reference/cpp/class_gosu_1_1_comm_socket-members.html +90 -0
  103. data/reference/cpp/class_gosu_1_1_comm_socket.html +505 -0
  104. data/reference/cpp/class_gosu_1_1_file-members.html +81 -0
  105. data/reference/cpp/class_gosu_1_1_file.html +275 -0
  106. data/reference/{classGosu_1_1File.png → cpp/class_gosu_1_1_file.png} +0 -0
  107. data/reference/cpp/class_gosu_1_1_font-members.html +79 -0
  108. data/reference/{classGosu_1_1Font.html → cpp/class_gosu_1_1_font.html} +207 -66
  109. data/reference/cpp/class_gosu_1_1_graphics-members.html +90 -0
  110. data/reference/cpp/class_gosu_1_1_graphics.html +768 -0
  111. data/reference/cpp/class_gosu_1_1_image-members.html +85 -0
  112. data/reference/cpp/class_gosu_1_1_image.html +771 -0
  113. data/reference/cpp/class_gosu_1_1_image_data-members.html +77 -0
  114. data/reference/cpp/class_gosu_1_1_image_data.html +281 -0
  115. data/reference/cpp/class_gosu_1_1_input-members.html +85 -0
  116. data/reference/cpp/class_gosu_1_1_input.html +417 -0
  117. data/reference/cpp/class_gosu_1_1_listener_socket-members.html +78 -0
  118. data/reference/cpp/class_gosu_1_1_listener_socket.html +221 -0
  119. data/reference/cpp/class_gosu_1_1_message_socket-members.html +80 -0
  120. data/reference/{classGosu_1_1MessageSocket.html → cpp/class_gosu_1_1_message_socket.html} +115 -43
  121. data/reference/cpp/class_gosu_1_1_reader-members.html +80 -0
  122. data/reference/cpp/class_gosu_1_1_reader.html +322 -0
  123. data/reference/cpp/class_gosu_1_1_resource-members.html +79 -0
  124. data/reference/cpp/class_gosu_1_1_resource.html +305 -0
  125. data/reference/{classGosu_1_1Resource.png → cpp/class_gosu_1_1_resource.png} +0 -0
  126. data/reference/cpp/class_gosu_1_1_rot_flip-members.html +83 -0
  127. data/reference/cpp/class_gosu_1_1_rot_flip.html +347 -0
  128. data/reference/cpp/class_gosu_1_1_sample-members.html +77 -0
  129. data/reference/{classGosu_1_1Sample.html → cpp/class_gosu_1_1_sample.html} +99 -32
  130. data/reference/cpp/class_gosu_1_1_sample_instance-members.html +81 -0
  131. data/reference/cpp/class_gosu_1_1_sample_instance.html +317 -0
  132. data/reference/cpp/class_gosu_1_1_song-members.html +86 -0
  133. data/reference/{classGosu_1_1Song.html → cpp/class_gosu_1_1_song.html} +152 -68
  134. data/reference/cpp/class_gosu_1_1_text_input-members.html +78 -0
  135. data/reference/cpp/class_gosu_1_1_text_input.html +227 -0
  136. data/reference/cpp/class_gosu_1_1_window-members.html +90 -0
  137. data/reference/cpp/class_gosu_1_1_window.html +533 -0
  138. data/reference/cpp/class_gosu_1_1_writer-members.html +79 -0
  139. data/reference/cpp/class_gosu_1_1_writer.html +292 -0
  140. data/reference/cpp/classes.html +86 -0
  141. data/reference/cpp/closed.gif +0 -0
  142. data/reference/cpp/cpp.css +155 -0
  143. data/reference/{doxygen.png → cpp/doxygen.png} +0 -0
  144. data/reference/cpp/files.html +97 -0
  145. data/reference/cpp/functions.html +127 -0
  146. data/reference/cpp/functions_0x62.html +137 -0
  147. data/reference/cpp/functions_0x63.html +140 -0
  148. data/reference/cpp/functions_0x64.html +142 -0
  149. data/reference/cpp/functions_0x65.html +119 -0
  150. data/reference/cpp/functions_0x66.html +137 -0
  151. data/reference/cpp/functions_0x67.html +131 -0
  152. data/reference/cpp/functions_0x68.html +121 -0
  153. data/reference/cpp/functions_0x69.html +123 -0
  154. data/reference/cpp/functions_0x6b.html +115 -0
  155. data/reference/cpp/functions_0x6c.html +117 -0
  156. data/reference/cpp/functions_0x6d.html +125 -0
  157. data/reference/cpp/functions_0x6e.html +117 -0
  158. data/reference/cpp/functions_0x6f.html +126 -0
  159. data/reference/cpp/functions_0x70.html +136 -0
  160. data/reference/cpp/functions_0x72.html +154 -0
  161. data/reference/cpp/functions_0x73.html +179 -0
  162. data/reference/cpp/functions_0x74.html +127 -0
  163. data/reference/cpp/functions_0x75.html +121 -0
  164. data/reference/cpp/functions_0x76.html +117 -0
  165. data/reference/cpp/functions_0x77.html +129 -0
  166. data/reference/cpp/functions_0x78.html +115 -0
  167. data/reference/cpp/functions_0x79.html +115 -0
  168. data/reference/cpp/functions_0x7e.html +143 -0
  169. data/reference/cpp/functions_enum.html +87 -0
  170. data/reference/cpp/functions_eval.html +89 -0
  171. data/reference/cpp/functions_func.html +125 -0
  172. data/reference/cpp/functions_func_0x62.html +133 -0
  173. data/reference/cpp/functions_func_0x63.html +136 -0
  174. data/reference/cpp/functions_func_0x64.html +140 -0
  175. data/reference/cpp/functions_func_0x65.html +117 -0
  176. data/reference/cpp/functions_func_0x66.html +135 -0
  177. data/reference/cpp/functions_func_0x67.html +129 -0
  178. data/reference/cpp/functions_func_0x68.html +119 -0
  179. data/reference/cpp/functions_func_0x69.html +119 -0
  180. data/reference/cpp/functions_func_0x6b.html +113 -0
  181. data/reference/cpp/functions_func_0x6c.html +113 -0
  182. data/reference/cpp/functions_func_0x6d.html +123 -0
  183. data/reference/cpp/functions_func_0x6e.html +115 -0
  184. data/reference/cpp/functions_func_0x6f.html +113 -0
  185. data/reference/cpp/functions_func_0x70.html +134 -0
  186. data/reference/cpp/functions_func_0x72.html +150 -0
  187. data/reference/cpp/functions_func_0x73.html +173 -0
  188. data/reference/cpp/functions_func_0x74.html +119 -0
  189. data/reference/cpp/functions_func_0x75.html +119 -0
  190. data/reference/cpp/functions_func_0x76.html +115 -0
  191. data/reference/cpp/functions_func_0x77.html +127 -0
  192. data/reference/cpp/functions_func_0x7e.html +141 -0
  193. data/reference/cpp/functions_type.html +87 -0
  194. data/reference/cpp/functions_vars.html +112 -0
  195. data/reference/cpp/globals.html +84 -0
  196. data/reference/cpp/globals_defs.html +84 -0
  197. data/reference/cpp/hierarchy.html +100 -0
  198. data/reference/cpp/index.html +66 -0
  199. data/reference/cpp/open.gif +0 -0
  200. data/reference/cpp/struct_gosu_1_1_g_l_tex_info-members.html +77 -0
  201. data/reference/cpp/struct_gosu_1_1_g_l_tex_info.html +185 -0
  202. data/reference/cpp/struct_gosu_1_1_touch-members.html +75 -0
  203. data/reference/cpp/struct_gosu_1_1_touch.html +153 -0
  204. data/reference/{tab_b.gif → cpp/tab_b.gif} +0 -0
  205. data/reference/{tab_l.gif → cpp/tab_l.gif} +0 -0
  206. data/reference/{tab_r.gif → cpp/tab_r.gif} +0 -0
  207. data/reference/{tabs.css → cpp/tabs.css} +5 -2
  208. data/windows/Gosu.sln +5 -0
  209. data/windows/Gosu.vcproj +3 -3
  210. data/windows/RubyGosu.vcproj +103 -1
  211. metadata +178 -176
  212. data/reference/Async_8hpp-source.html +0 -70
  213. data/reference/Audio_8hpp-source.html +0 -125
  214. data/reference/Audio_8hpp.html +0 -50
  215. data/reference/AutoLink_8hpp-source.html +0 -38
  216. data/reference/AutoLink_8hpp.html +0 -34
  217. data/reference/Bitmap_8hpp-source.html +0 -84
  218. data/reference/Bitmap_8hpp.html +0 -58
  219. data/reference/ButtonsWin_8hpp-source.html +0 -159
  220. data/reference/ButtonsX_8hpp-source.html +0 -160
  221. data/reference/Color_8hpp-source.html +0 -169
  222. data/reference/Color_8hpp.html +0 -85
  223. data/reference/Directories_8hpp-source.html +0 -42
  224. data/reference/Directories_8hpp.html +0 -46
  225. data/reference/Font_8hpp-source.html +0 -65
  226. data/reference/Font_8hpp.html +0 -41
  227. data/reference/Fwd_8hpp.html +0 -37
  228. data/reference/Gosu_8hpp-source.html +0 -49
  229. data/reference/Gosu_8hpp.html +0 -34
  230. data/reference/GraphicsBase_8hpp-source.html +0 -59
  231. data/reference/GraphicsBase_8hpp.html +0 -59
  232. data/reference/Graphics_8hpp-source.html +0 -99
  233. data/reference/Graphics_8hpp.html +0 -60
  234. data/reference/IO_8hpp-source.html +0 -255
  235. data/reference/IO_8hpp.html +0 -74
  236. data/reference/ImageData_8hpp-source.html +0 -62
  237. data/reference/ImageData_8hpp.html +0 -43
  238. data/reference/Image_8hpp-source.html +0 -126
  239. data/reference/Image_8hpp.html +0 -48
  240. data/reference/Input_8hpp-source.html +0 -131
  241. data/reference/Input_8hpp.html +0 -56
  242. data/reference/Math_8hpp-source.html +0 -101
  243. data/reference/Math_8hpp.html +0 -78
  244. data/reference/Platform_8hpp.html +0 -73
  245. data/reference/RotFlip_8hpp-source.html +0 -138
  246. data/reference/RotFlip_8hpp.html +0 -77
  247. data/reference/Sockets_8hpp-source.html +0 -130
  248. data/reference/Sockets_8hpp.html +0 -66
  249. data/reference/TextInput_8hpp-source.html +0 -64
  250. data/reference/TextInput_8hpp.html +0 -41
  251. data/reference/Text_8hpp-source.html +0 -56
  252. data/reference/Text_8hpp.html +0 -48
  253. data/reference/Timing_8hpp-source.html +0 -36
  254. data/reference/Timing_8hpp.html +0 -42
  255. data/reference/Utility_8hpp-source.html +0 -43
  256. data/reference/Utility_8hpp.html +0 -46
  257. data/reference/WinUtility_8hpp-source.html +0 -79
  258. data/reference/WinUtility_8hpp.html +0 -64
  259. data/reference/Window_8hpp-source.html +0 -110
  260. data/reference/Window_8hpp.html +0 -41
  261. data/reference/annotated.html +0 -51
  262. data/reference/classGosu_1_1Audio-members.html +0 -34
  263. data/reference/classGosu_1_1Audio.html +0 -46
  264. data/reference/classGosu_1_1Bitmap-members.html +0 -45
  265. data/reference/classGosu_1_1Bitmap.html +0 -266
  266. data/reference/classGosu_1_1Buffer-members.html +0 -44
  267. data/reference/classGosu_1_1Buffer.html +0 -78
  268. data/reference/classGosu_1_1Button-members.html +0 -36
  269. data/reference/classGosu_1_1Button.html +0 -143
  270. data/reference/classGosu_1_1Color-members.html +0 -56
  271. data/reference/classGosu_1_1Color.html +0 -387
  272. data/reference/classGosu_1_1File-members.html +0 -41
  273. data/reference/classGosu_1_1File.html +0 -69
  274. data/reference/classGosu_1_1Font-members.html +0 -39
  275. data/reference/classGosu_1_1Graphics-members.html +0 -50
  276. data/reference/classGosu_1_1Graphics.html +0 -234
  277. data/reference/classGosu_1_1Image-members.html +0 -45
  278. data/reference/classGosu_1_1Image.html +0 -518
  279. data/reference/classGosu_1_1ImageData-members.html +0 -37
  280. data/reference/classGosu_1_1ImageData.html +0 -60
  281. data/reference/classGosu_1_1Input-members.html +0 -45
  282. data/reference/classGosu_1_1Input.html +0 -256
  283. data/reference/classGosu_1_1MessageSocket-members.html +0 -40
  284. data/reference/classGosu_1_1Resource-members.html +0 -39
  285. data/reference/classGosu_1_1Resource.html +0 -116
  286. data/reference/classGosu_1_1Sample-members.html +0 -37
  287. data/reference/classGosu_1_1SampleInstance-members.html +0 -41
  288. data/reference/classGosu_1_1SampleInstance.html +0 -178
  289. data/reference/classGosu_1_1Song-members.html +0 -46
  290. data/reference/classGosu_1_1TextInput-members.html +0 -38
  291. data/reference/classGosu_1_1TextInput.html +0 -121
  292. data/reference/classGosu_1_1Window-members.html +0 -50
  293. data/reference/classGosu_1_1Window.html +0 -289
  294. data/reference/doxyfile +0 -233
  295. data/reference/doxygen.css +0 -433
  296. data/reference/files.html +0 -54
  297. data/reference/functions.html +0 -249
  298. data/reference/functions_enum.html +0 -45
  299. data/reference/functions_func.html +0 -240
  300. data/reference/functions_vars.html +0 -47
  301. data/reference/hierarchy.html +0 -53
  302. data/reference/index.html +0 -26
  303. data/reference/namespaceGosu.html +0 -3363
  304. data/reference/namespaceGosu_1_1Colors.html +0 -70
  305. data/reference/namespaceGosu_1_1Win.html +0 -275
  306. data/reference/namespacemembers.html +0 -229
  307. data/reference/namespacemembers_enum.html +0 -52
  308. data/reference/namespacemembers_eval.html +0 -54
  309. data/reference/namespacemembers_func.html +0 -196
  310. data/reference/namespacemembers_type.html +0 -46
  311. data/reference/namespacemembers_vars.html +0 -48
  312. data/reference/namespaces.html +0 -35
@@ -0,0 +1,123 @@
1
+ <html>
2
+ <head>
3
+ <title>Gosu C++ Reference</title>
4
+ <link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
5
+ </head>
6
+ <body>
7
+ <div class="everything">
8
+ <!-- Generated by Doxygen 1.5.8 -->
9
+ <script type="text/javascript">
10
+ <!--
11
+ function changeDisplayState (e){
12
+ var num=this.id.replace(/[^[0-9]/g,'');
13
+ var button=this.firstChild;
14
+ var sectionDiv=document.getElementById('dynsection'+num);
15
+ if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
16
+ sectionDiv.style.display='block';
17
+ button.src='open.gif';
18
+ }else{
19
+ sectionDiv.style.display='none';
20
+ button.src='closed.gif';
21
+ }
22
+ }
23
+ function initDynSections(){
24
+ var divs=document.getElementsByTagName('div');
25
+ var sectionCounter=1;
26
+ for(var i=0;i<divs.length-1;i++){
27
+ if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
28
+ var header=divs[i];
29
+ var section=divs[i+1];
30
+ var button=header.firstChild;
31
+ if (button!='IMG'){
32
+ divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
33
+ button=document.createElement('img');
34
+ divs[i].insertBefore(button,divs[i].firstChild);
35
+ }
36
+ header.style.cursor='pointer';
37
+ header.onclick=changeDisplayState;
38
+ header.id='dynheader'+sectionCounter;
39
+ button.src='closed.gif';
40
+ section.id='dynsection'+sectionCounter;
41
+ section.style.display='none';
42
+ section.style.marginLeft='14px';
43
+ sectionCounter++;
44
+ }
45
+ }
46
+ }
47
+ window.onload = initDynSections;
48
+ -->
49
+ </script>
50
+ <div class="navigation" id="top">
51
+ <div class="tabs">
52
+ <ul>
53
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
54
+ <li><a href="annotated.html"><span>Classes</span></a></li>
55
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
56
+ </ul>
57
+ </div>
58
+ <div class="tabs">
59
+ <ul>
60
+ <li><a href="files.html"><span>File&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ </div>
65
+ <div class="contents">
66
+ <h1>RotFlip.hpp File Reference</h1>Interface of the RotFlip class.
67
+ <a href="#_details">More...</a>
68
+ <p>
69
+
70
+ <p>
71
+ <a href="_rot_flip_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
72
+ <tr><td></td></tr>
73
+ <tr><td colspan="2"><br><h2>Classes</h2></td></tr>
74
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_rot_flip.html">Gosu::RotFlip</a></td></tr>
75
+
76
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Light-weight class that encodes a rotation by 0, 90, 180, or 270 degrees as well as optional horizontal and/or vertical flips. <a href="class_gosu_1_1_rot_flip.html#_details">More...</a><br></td></tr>
77
+ <tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
78
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>RotFlipName</b> { <br>
79
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668cf4d5639ae78c456489b6e5b9dc2396f">Gosu::rfDefault</a>,
80
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668fbcbc584e7851f717c4a70c5d229c418">Gosu::rfRotate90</a>,
81
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668c45c928f38e0a7551d5263dae4d0152a">Gosu::rfRotate180</a>,
82
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668beab954d390a904b3558bfc36cbb5c72">Gosu::rfRotate270</a>,
83
+ <br>
84
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b3266830029e8e6f855502d3299887bbec218d">Gosu::rfFlipX</a>,
85
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668a8725397ea4c8bf6e9b18284a9cb3007">Gosu::rfRotate90FlipX</a>,
86
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b326685fc90df8254501718e6cb570fa09fb69">Gosu::rfRotate180FlipX</a>,
87
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b3266828421018e513c29f544a09261ad5f1a9">Gosu::rfRotate270FlipX</a>,
88
+ <br>
89
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668d2084cbcf1c240e2363ba038114a2d2c">Gosu::rfFlipY</a> = rfRotate180FlipX,
90
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b326688c55ec082d5b2e99dfeba304a3042733">Gosu::rfRotate90FlipY</a> = rfRotate270FlipX,
91
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668a89e8b0726bf15acce3a827529d3c3df">Gosu::rfRotate180FlipY</a> = rfFlipX,
92
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b326680bbe76f0975c728121f9053569ce2d31">Gosu::rfRotate270FlipY</a> = rfRotate90FlipX,
93
+ <br>
94
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668d5bc273b1fca8df803d57c847156e4c2">Gosu::rfFlipXRotate90</a> = rfRotate270FlipX,
95
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b326680bbb94f3594e30a591e8717b1de071fd">Gosu::rfFlipXRotate180</a> = rfRotate180FlipX,
96
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b326687994b9ebe1995cea43ad29e6cb322cce">Gosu::rfFlipXRotate270</a> = rfRotate90FlipX,
97
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668883cde5aeda6eddc0ce28c189a69889f">Gosu::rfFlipYRotate90</a> = rfRotate90FlipX,
98
+ <br>
99
+ &nbsp;&nbsp;<a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668ac5fd6e2abb727476d3e3bdf4c25c2bd">Gosu::rfFlipYRotate180</a> = rfFlipX,
100
+ <a class="el" href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668239ab8e1a88233a52e3efde424313db1">Gosu::rfFlipYRotate270</a> = rfRotate270FlipX
101
+ <br>
102
+ }</td></tr>
103
+
104
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Human-understandable descriptions of the variants of rotations and flips that can be constructed. <a href="namespace_gosu.html#3e38c3caeab9b4ac1556d62237b32668">More...</a><br></td></tr>
105
+ <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
106
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#f95982a20bba047a1d7a8accb82a7758">Gosu::operator==</a> (RotFlip a, RotFlip b)</td></tr>
107
+
108
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#d2860d74f086dc0ed96a25df359494ed">Gosu::operator!=</a> (RotFlip a, RotFlip b)</td></tr>
109
+
110
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#621eb7d0e3c347461dcc298903fe18a4">Gosu::applyToPoint</a> (RotFlip rotFlip, int &amp;x, int &amp;y, int max)</td></tr>
111
+
112
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Applies a <a class="el" href="class_gosu_1_1_rot_flip.html" title="Light-weight class that encodes a rotation by 0, 90, 180, or 270 degrees as well...">RotFlip</a> to a point x/y in a square of side length max. <a href="#621eb7d0e3c347461dcc298903fe18a4"></a><br></td></tr>
113
+ </table>
114
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
115
+ Interface of the RotFlip class.
116
+ <p>
117
+
118
+ <p>Definition in file <a class="el" href="_rot_flip_8hpp-source.html">RotFlip.hpp</a>.</p>
119
+ </div>
120
+ <p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
121
+ </div>
122
+ </body>
123
+ </html>
@@ -0,0 +1,174 @@
1
+ <html>
2
+ <head>
3
+ <title>Gosu C++ Reference</title>
4
+ <link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
5
+ </head>
6
+ <body>
7
+ <div class="everything">
8
+ <!-- Generated by Doxygen 1.5.8 -->
9
+ <script type="text/javascript">
10
+ <!--
11
+ function changeDisplayState (e){
12
+ var num=this.id.replace(/[^[0-9]/g,'');
13
+ var button=this.firstChild;
14
+ var sectionDiv=document.getElementById('dynsection'+num);
15
+ if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
16
+ sectionDiv.style.display='block';
17
+ button.src='open.gif';
18
+ }else{
19
+ sectionDiv.style.display='none';
20
+ button.src='closed.gif';
21
+ }
22
+ }
23
+ function initDynSections(){
24
+ var divs=document.getElementsByTagName('div');
25
+ var sectionCounter=1;
26
+ for(var i=0;i<divs.length-1;i++){
27
+ if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
28
+ var header=divs[i];
29
+ var section=divs[i+1];
30
+ var button=header.firstChild;
31
+ if (button!='IMG'){
32
+ divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
33
+ button=document.createElement('img');
34
+ divs[i].insertBefore(button,divs[i].firstChild);
35
+ }
36
+ header.style.cursor='pointer';
37
+ header.onclick=changeDisplayState;
38
+ header.id='dynheader'+sectionCounter;
39
+ button.src='closed.gif';
40
+ section.id='dynsection'+sectionCounter;
41
+ section.style.display='none';
42
+ section.style.marginLeft='14px';
43
+ sectionCounter++;
44
+ }
45
+ }
46
+ }
47
+ window.onload = initDynSections;
48
+ -->
49
+ </script>
50
+ <div class="navigation" id="top">
51
+ <div class="tabs">
52
+ <ul>
53
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
54
+ <li><a href="annotated.html"><span>Classes</span></a></li>
55
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
56
+ </ul>
57
+ </div>
58
+ <div class="tabs">
59
+ <ul>
60
+ <li><a href="files.html"><span>File&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ <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
65
+ <a name="l00002"></a>00002
66
+ <a name="l00003"></a>00003
67
+ <a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_SOCKETS_HPP</span>
68
+ <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_SOCKETS_HPP</span>
69
+ <a name="l00006"></a>00006 <span class="preprocessor"></span>
70
+ <a name="l00007"></a>00007 <span class="preprocessor">#include &lt;boost/cstdint.hpp&gt;</span>
71
+ <a name="l00008"></a>00008 <span class="preprocessor">#include &lt;boost/function.hpp&gt;</span>
72
+ <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;boost/scoped_ptr.hpp&gt;</span>
73
+ <a name="l00010"></a>00010 <span class="preprocessor">#include &lt;cstddef&gt;</span>
74
+ <a name="l00011"></a>00011 <span class="preprocessor">#include &lt;string&gt;</span>
75
+ <a name="l00012"></a>00012
76
+ <a name="l00013"></a>00013 <span class="keyword">namespace </span>Gosu
77
+ <a name="l00014"></a>00014 {
78
+ <a name="l00016"></a>00016 <span class="keyword">typedef</span> boost::uint32_t SocketAddress;
79
+ <a name="l00017"></a>00017
80
+ <a name="l00019"></a>00019 <span class="keyword">typedef</span> boost::uint16_t SocketPort;
81
+ <a name="l00020"></a>00020
82
+ <a name="l00023"></a>00023 <span class="keyword">const</span> SocketPort anyPort = 0;
83
+ <a name="l00024"></a>00024
84
+ <a name="l00029"></a>00029 SocketAddress stringToAddress(<span class="keyword">const</span> std::string&amp; s);
85
+ <a name="l00031"></a>00031 std::string addressToString(SocketAddress address);
86
+ <a name="l00032"></a>00032
87
+ <a name="l00037"></a><a class="code" href="class_gosu_1_1_message_socket.html">00037</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_message_socket.html" title="Wraps an UDP socket.">MessageSocket</a>
88
+ <a name="l00038"></a>00038 {
89
+ <a name="l00039"></a>00039 <span class="keyword">struct </span>Impl;
90
+ <a name="l00040"></a>00040 boost::scoped_ptr&lt;Impl&gt; pimpl;
91
+ <a name="l00041"></a>00041
92
+ <a name="l00042"></a>00042 <span class="keyword">public</span>:
93
+ <a name="l00046"></a>00046 <span class="keyword">explicit</span> <a class="code" href="class_gosu_1_1_message_socket.html#7894acdea2e7dc85c671ca0f6732ccaf" title="Opens a message socket for listening at the specified port.">MessageSocket</a>(SocketPort <a class="code" href="class_gosu_1_1_message_socket.html#38999d7a0fee723adcb21bf3a036be91" title="Returns the local port of the socket.">port</a>);
94
+ <a name="l00047"></a>00047 <a class="code" href="class_gosu_1_1_message_socket.html#19af8fa567af04eb7fe41b704521a595">~MessageSocket</a>();
95
+ <a name="l00048"></a>00048
96
+ <a name="l00050"></a>00050 SocketAddress <a class="code" href="class_gosu_1_1_message_socket.html#eadfbf7bbdcc2544a5aaa0d16efa2851" title="Returns the local address of the socket.">address</a>() <span class="keyword">const</span>;
97
+ <a name="l00052"></a>00052 SocketPort <a class="code" href="class_gosu_1_1_message_socket.html#38999d7a0fee723adcb21bf3a036be91" title="Returns the local port of the socket.">port</a>() <span class="keyword">const</span>;
98
+ <a name="l00055"></a>00055 std::size_t <a class="code" href="class_gosu_1_1_message_socket.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>;
99
+ <a name="l00056"></a>00056
100
+ <a name="l00059"></a>00059 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_message_socket.html#3e642630d8b17d9336e3eb7112fa14dd" title="Collects all the packets that were sent to this socket and calls onReceive for each...">update</a>();
101
+ <a name="l00060"></a>00060
102
+ <a name="l00063"></a>00063 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_message_socket.html#994ac62dc770243d65f88db89c1dc8e6" title="Sends something to the given port of the computer identified by the address.">send</a>(SocketAddress address, SocketPort port,
103
+ <a name="l00064"></a>00064 <span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, std::size_t size);
104
+ <a name="l00065"></a>00065 <span class="comment">/*void broadcast(SocketPort port, const void* buffer,</span>
105
+ <a name="l00066"></a>00066 <span class="comment"> std::size_t size);*/</span>
106
+ <a name="l00067"></a>00067
107
+ <a name="l00069"></a>00069 boost::function&lt;void (SocketAddress, SocketPort, <span class="keyword">const</span> <span class="keywordtype">void</span>*,
108
+ <a name="l00070"></a><a class="code" href="class_gosu_1_1_message_socket.html#946bf3cb838b105842ca86938c3a86ae">00070</a> std::size_t)&gt; <a class="code" href="class_gosu_1_1_message_socket.html#946bf3cb838b105842ca86938c3a86ae" title="If assigned, will be called by update for every packet received.">onReceive</a>;
109
+ <a name="l00071"></a>00071 };
110
+ <a name="l00072"></a>00072
111
+ <a name="l00075"></a>00075 <span class="keyword">enum</span> CommMode
112
+ <a name="l00076"></a>00076 {
113
+ <a name="l00077"></a>00077 cmRaw,
114
+ <a name="l00078"></a>00078 <span class="comment">//cmLines,</span>
115
+ <a name="l00079"></a>00079 cmManaged
116
+ <a name="l00080"></a>00080 };
117
+ <a name="l00081"></a>00081
118
+ <a name="l00082"></a>00082 <span class="keyword">class </span>Socket;
119
+ <a name="l00083"></a>00083
120
+ <a name="l00086"></a><a class="code" href="class_gosu_1_1_comm_socket.html">00086</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_comm_socket.html" title="Wraps a TCP socket that is used for one part of bi-directional communication.">CommSocket</a>
121
+ <a name="l00087"></a>00087 {
122
+ <a name="l00088"></a>00088 <span class="keyword">struct </span>Impl;
123
+ <a name="l00089"></a>00089 boost::scoped_ptr&lt;Impl&gt; pimpl;
124
+ <a name="l00090"></a>00090
125
+ <a name="l00091"></a>00091 <span class="keyword">public</span>:
126
+ <a name="l00092"></a>00092 <a class="code" href="class_gosu_1_1_comm_socket.html#e94272e4f4f172f94f076caf31741b03">CommSocket</a>(CommMode <a class="code" href="class_gosu_1_1_comm_socket.html#5d1b6ec9ee13ae771a9f797082cd0d84">mode</a>, SocketAddress targetAddress,
127
+ <a name="l00093"></a>00093 SocketPort targetPort);
128
+ <a name="l00094"></a>00094 <a class="code" href="class_gosu_1_1_comm_socket.html#e94272e4f4f172f94f076caf31741b03">CommSocket</a>(CommMode mode, Socket&amp; socket);
129
+ <a name="l00095"></a>00095 <a class="code" href="class_gosu_1_1_comm_socket.html#fb9d93bd74197ac475f92bd5684ced65">~CommSocket</a>();
130
+ <a name="l00096"></a>00096
131
+ <a name="l00097"></a>00097 SocketAddress <a class="code" href="class_gosu_1_1_comm_socket.html#1c1993e15b47b7b5ce578c84d5fc9133">address</a>() <span class="keyword">const</span>;
132
+ <a name="l00098"></a>00098 SocketPort <a class="code" href="class_gosu_1_1_comm_socket.html#e24fc55bf8bb843fdec1363699d87058">port</a>() <span class="keyword">const</span>;
133
+ <a name="l00099"></a>00099 SocketAddress <a class="code" href="class_gosu_1_1_comm_socket.html#be1f2b3ea86a08abf4045adc75284579">remoteAddress</a>() <span class="keyword">const</span>;
134
+ <a name="l00100"></a>00100 SocketPort <a class="code" href="class_gosu_1_1_comm_socket.html#a7e7ad8b5b0a4bbf2727e8c43a6e54db">remotePort</a>() <span class="keyword">const</span>;
135
+ <a name="l00101"></a>00101 CommMode <a class="code" href="class_gosu_1_1_comm_socket.html#5d1b6ec9ee13ae771a9f797082cd0d84">mode</a>() <span class="keyword">const</span>;
136
+ <a name="l00102"></a>00102
137
+ <a name="l00103"></a>00103 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_comm_socket.html#11fb9bca9287c2451af1b3438e06b695">connected</a>() <span class="keyword">const</span>;
138
+ <a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_comm_socket.html#8d44b126ebb1a4868cad6fa17c9f9149">disconnect</a>();
139
+ <a name="l00105"></a>00105 <span class="keywordtype">bool</span> <a class="code" href="class_gosu_1_1_comm_socket.html#ecf4076140ed2be91607f8a8099f72f0">keepAlive</a>() <span class="keyword">const</span>;
140
+ <a name="l00106"></a>00106 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_comm_socket.html#98c80f7b2d7155e2e4637ac2451a5069">setKeepAlive</a>(<span class="keywordtype">bool</span> value);
141
+ <a name="l00107"></a>00107
142
+ <a name="l00108"></a>00108 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_comm_socket.html#974f25e5636374ff0101c49fd596067f">update</a>();
143
+ <a name="l00109"></a>00109 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_comm_socket.html#351e4619815ff2dee7dde5921d64424f">send</a>(<span class="keyword">const</span> <span class="keywordtype">void</span>* buffer, std::size_t size);
144
+ <a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_comm_socket.html#4978a857431eac3906e8306e60bfb8d5">sendPendingData</a>();
145
+ <a name="l00111"></a>00111 std::size_t <a class="code" href="class_gosu_1_1_comm_socket.html#94961a26865debd2d3a1c034112e0d6e">pendingBytes</a>() <span class="keyword">const</span>;
146
+ <a name="l00112"></a>00112
147
+ <a name="l00113"></a><a class="code" href="class_gosu_1_1_comm_socket.html#3c153fbe66968e72f436c8fb2030f40c">00113</a> boost::function&lt;void (const void*, std::size_t)&gt; <a class="code" href="class_gosu_1_1_comm_socket.html#3c153fbe66968e72f436c8fb2030f40c">onReceive</a>;
148
+ <a name="l00114"></a><a class="code" href="class_gosu_1_1_comm_socket.html#7a4cae80c492169c35fbfc5ace3fdf3f">00114</a> boost::function&lt;void ()&gt; <a class="code" href="class_gosu_1_1_comm_socket.html#7a4cae80c492169c35fbfc5ace3fdf3f">onDisconnection</a>;
149
+ <a name="l00115"></a>00115 };
150
+ <a name="l00116"></a>00116
151
+ <a name="l00119"></a><a class="code" href="class_gosu_1_1_listener_socket.html">00119</a> <span class="keyword">class </span><a class="code" href="class_gosu_1_1_listener_socket.html" title="Wraps a TCP socket that waits on a specific port and can create CommSocket instances...">ListenerSocket</a>
152
+ <a name="l00120"></a>00120 {
153
+ <a name="l00121"></a>00121 <span class="keyword">struct </span>Impl;
154
+ <a name="l00122"></a>00122 boost::scoped_ptr&lt;Impl&gt; pimpl;
155
+ <a name="l00123"></a>00123
156
+ <a name="l00124"></a>00124 <span class="keyword">public</span>:
157
+ <a name="l00125"></a>00125 <a class="code" href="class_gosu_1_1_listener_socket.html#62c238f846821aa8128a88012d9f0fa8">ListenerSocket</a>(SocketPort <a class="code" href="class_gosu_1_1_listener_socket.html#cbdb21800f7648220484d2024b884219">port</a>);
158
+ <a name="l00126"></a>00126 <a class="code" href="class_gosu_1_1_listener_socket.html#99e365e2e69e4df39776b1514d28e079">~ListenerSocket</a>();
159
+ <a name="l00127"></a>00127
160
+ <a name="l00128"></a>00128 SocketAddress <a class="code" href="class_gosu_1_1_listener_socket.html#272a05b9d99da78a0dd3143db25ace8a">address</a>() <span class="keyword">const</span>;
161
+ <a name="l00129"></a>00129 SocketPort <a class="code" href="class_gosu_1_1_listener_socket.html#cbdb21800f7648220484d2024b884219">port</a>() <span class="keyword">const</span>;
162
+ <a name="l00130"></a>00130
163
+ <a name="l00131"></a>00131 <span class="keywordtype">void</span> <a class="code" href="class_gosu_1_1_listener_socket.html#d75c881ff327dd9a63acbbcbfc4cb9c0">update</a>();
164
+ <a name="l00132"></a>00132
165
+ <a name="l00135"></a><a class="code" href="class_gosu_1_1_listener_socket.html#10650392418b684333d570d31ad5ba66">00135</a> boost::function&lt;void (Socket&amp;)&gt; <a class="code" href="class_gosu_1_1_listener_socket.html#10650392418b684333d570d31ad5ba66" title="This signal is fired by update() whenever someone connects to the port which is currently...">onConnection</a>;
166
+ <a name="l00136"></a>00136 };
167
+ <a name="l00137"></a>00137 }
168
+ <a name="l00138"></a>00138
169
+ <a name="l00139"></a>00139 <span class="preprocessor">#endif</span>
170
+ </pre></div></div>
171
+ <p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
172
+ </div>
173
+ </body>
174
+ </html>
@@ -0,0 +1,117 @@
1
+ <html>
2
+ <head>
3
+ <title>Gosu C++ Reference</title>
4
+ <link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
5
+ </head>
6
+ <body>
7
+ <div class="everything">
8
+ <!-- Generated by Doxygen 1.5.8 -->
9
+ <script type="text/javascript">
10
+ <!--
11
+ function changeDisplayState (e){
12
+ var num=this.id.replace(/[^[0-9]/g,'');
13
+ var button=this.firstChild;
14
+ var sectionDiv=document.getElementById('dynsection'+num);
15
+ if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
16
+ sectionDiv.style.display='block';
17
+ button.src='open.gif';
18
+ }else{
19
+ sectionDiv.style.display='none';
20
+ button.src='closed.gif';
21
+ }
22
+ }
23
+ function initDynSections(){
24
+ var divs=document.getElementsByTagName('div');
25
+ var sectionCounter=1;
26
+ for(var i=0;i<divs.length-1;i++){
27
+ if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
28
+ var header=divs[i];
29
+ var section=divs[i+1];
30
+ var button=header.firstChild;
31
+ if (button!='IMG'){
32
+ divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
33
+ button=document.createElement('img');
34
+ divs[i].insertBefore(button,divs[i].firstChild);
35
+ }
36
+ header.style.cursor='pointer';
37
+ header.onclick=changeDisplayState;
38
+ header.id='dynheader'+sectionCounter;
39
+ button.src='closed.gif';
40
+ section.id='dynsection'+sectionCounter;
41
+ section.style.display='none';
42
+ section.style.marginLeft='14px';
43
+ sectionCounter++;
44
+ }
45
+ }
46
+ }
47
+ window.onload = initDynSections;
48
+ -->
49
+ </script>
50
+ <div class="navigation" id="top">
51
+ <div class="tabs">
52
+ <ul>
53
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
54
+ <li><a href="annotated.html"><span>Classes</span></a></li>
55
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
56
+ </ul>
57
+ </div>
58
+ <div class="tabs">
59
+ <ul>
60
+ <li><a href="files.html"><span>File&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ </div>
65
+ <div class="contents">
66
+ <h1>Sockets.hpp File Reference</h1>Interface of the three socket classes, MessageSocket, CommSocket and ListenerSocket.
67
+ <a href="#_details">More...</a>
68
+ <p>
69
+
70
+ <p>
71
+ <a href="_sockets_8hpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
72
+ <tr><td></td></tr>
73
+ <tr><td colspan="2"><br><h2>Classes</h2></td></tr>
74
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_message_socket.html">Gosu::MessageSocket</a></td></tr>
75
+
76
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wraps an UDP socket. <a href="class_gosu_1_1_message_socket.html#_details">More...</a><br></td></tr>
77
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_comm_socket.html">Gosu::CommSocket</a></td></tr>
78
+
79
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wraps a TCP socket that is used for one part of bi-directional communication. <a href="class_gosu_1_1_comm_socket.html#_details">More...</a><br></td></tr>
80
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_gosu_1_1_listener_socket.html">Gosu::ListenerSocket</a></td></tr>
81
+
82
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Wraps a TCP socket that waits on a specific port and can create <a class="el" href="class_gosu_1_1_comm_socket.html" title="Wraps a TCP socket that is used for one part of bi-directional communication.">CommSocket</a> instances via its onConnection event. <a href="class_gosu_1_1_listener_socket.html#_details">More...</a><br></td></tr>
83
+ <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
84
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef boost::uint32_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#e32efd2c73c3884c91c05d5c136d5485">Gosu::SocketAddress</a></td></tr>
85
+
86
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Addresses are returned from and given to Gosu functions in host byte order. <a href="#e32efd2c73c3884c91c05d5c136d5485"></a><br></td></tr>
87
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef boost::uint16_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#ee6ccc5c098c8e63f50d9b4d2cea4e30">Gosu::SocketPort</a></td></tr>
88
+
89
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ports are returned from and given to Gosu functions in host byte order. <a href="#ee6ccc5c098c8e63f50d9b4d2cea4e30"></a><br></td></tr>
90
+ <tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
91
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><b>CommMode</b> { <a class="el" href="namespace_gosu.html#b3663b1e82f7e3aaa65081e06f8f5871c5eac1ae7fa89b9a53d6c387e5ea74e1">Gosu::cmRaw</a>,
92
+ <a class="el" href="namespace_gosu.html#b3663b1e82f7e3aaa65081e06f8f58718da4ddc0cf3385c1a9c450d3c1ef89d3">Gosu::cmManaged</a>
93
+ }</td></tr>
94
+
95
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Defines the way in which data is collected until the onReceive event is called for CommSockets. <a href="namespace_gosu.html#b3663b1e82f7e3aaa65081e06f8f5871">More...</a><br></td></tr>
96
+ <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
97
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">SocketAddress&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#c2c5b3cca9903139efbd2d601a631ee6">Gosu::stringToAddress</a> (const std::string &amp;s)</td></tr>
98
+
99
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Tries to convert a dotted IP4 string into an address suitable for socket functions. <a href="#c2c5b3cca9903139efbd2d601a631ee6"></a><br></td></tr>
100
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#aae23447cebfab874d7657fbe0a8150e">Gosu::addressToString</a> (SocketAddress address)</td></tr>
101
+
102
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Converts an address into a dotted IP4 string. <a href="#aae23447cebfab874d7657fbe0a8150e"></a><br></td></tr>
103
+ <tr><td colspan="2"><br><h2>Variables</h2></td></tr>
104
+ <tr><td class="memItemLeft" nowrap align="right" valign="top">const SocketPort&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_gosu.html#ef707f47e12343f1cc2fbfe70a1143cf">Gosu::anyPort</a> = 0</td></tr>
105
+
106
+ <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constant that can be used as a placeholder for an arbitrary port, e.g. <a href="#ef707f47e12343f1cc2fbfe70a1143cf"></a><br></td></tr>
107
+ </table>
108
+ <hr><a name="_details"></a><h2>Detailed Description</h2>
109
+ Interface of the three socket classes, MessageSocket, CommSocket and ListenerSocket.
110
+ <p>
111
+
112
+ <p>Definition in file <a class="el" href="_sockets_8hpp-source.html">Sockets.hpp</a>.</p>
113
+ </div>
114
+ <p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
115
+ </div>
116
+ </body>
117
+ </html>
@@ -0,0 +1,102 @@
1
+ <html>
2
+ <head>
3
+ <title>Gosu C++ Reference</title>
4
+ <link rel="stylesheet" href="cpp.css" type="text/css" charset="utf-8">
5
+ </head>
6
+ <body>
7
+ <div class="everything">
8
+ <!-- Generated by Doxygen 1.5.8 -->
9
+ <script type="text/javascript">
10
+ <!--
11
+ function changeDisplayState (e){
12
+ var num=this.id.replace(/[^[0-9]/g,'');
13
+ var button=this.firstChild;
14
+ var sectionDiv=document.getElementById('dynsection'+num);
15
+ if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
16
+ sectionDiv.style.display='block';
17
+ button.src='open.gif';
18
+ }else{
19
+ sectionDiv.style.display='none';
20
+ button.src='closed.gif';
21
+ }
22
+ }
23
+ function initDynSections(){
24
+ var divs=document.getElementsByTagName('div');
25
+ var sectionCounter=1;
26
+ for(var i=0;i<divs.length-1;i++){
27
+ if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
28
+ var header=divs[i];
29
+ var section=divs[i+1];
30
+ var button=header.firstChild;
31
+ if (button!='IMG'){
32
+ divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
33
+ button=document.createElement('img');
34
+ divs[i].insertBefore(button,divs[i].firstChild);
35
+ }
36
+ header.style.cursor='pointer';
37
+ header.onclick=changeDisplayState;
38
+ header.id='dynheader'+sectionCounter;
39
+ button.src='closed.gif';
40
+ section.id='dynsection'+sectionCounter;
41
+ section.style.display='none';
42
+ section.style.marginLeft='14px';
43
+ sectionCounter++;
44
+ }
45
+ }
46
+ }
47
+ window.onload = initDynSections;
48
+ -->
49
+ </script>
50
+ <div class="navigation" id="top">
51
+ <div class="tabs">
52
+ <ul>
53
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
54
+ <li><a href="annotated.html"><span>Classes</span></a></li>
55
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
56
+ </ul>
57
+ </div>
58
+ <div class="tabs">
59
+ <ul>
60
+ <li><a href="files.html"><span>File&nbsp;List</span></a></li>
61
+ <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
62
+ </ul>
63
+ </div>
64
+ <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
65
+ <a name="l00002"></a>00002
66
+ <a name="l00003"></a>00003
67
+ <a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_TEXT_HPP</span>
68
+ <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_TEXT_HPP</span>
69
+ <a name="l00006"></a>00006 <span class="preprocessor"></span>
70
+ <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>
71
+ <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>
72
+ <a name="l00009"></a>00009 <span class="preprocessor">#include &lt;<a class="code" href="_graphics_base_8hpp.html" title="Contains general typedefs and enums related to graphics.">Gosu/GraphicsBase.hpp</a>&gt;</span>
73
+ <a name="l00010"></a>00010 <span class="preprocessor">#include &lt;string&gt;</span>
74
+ <a name="l00011"></a>00011
75
+ <a name="l00012"></a>00012 <span class="keyword">namespace </span>Gosu
76
+ <a name="l00013"></a>00013 {
77
+ <a name="l00016"></a>00016 std::wstring defaultFontName();
78
+ <a name="l00017"></a>00017
79
+ <a name="l00021"></a>00021 <span class="keywordtype">unsigned</span> textWidth(<span class="keyword">const</span> std::wstring&amp; text,
80
+ <a name="l00022"></a>00022 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
81
+ <a name="l00023"></a>00023 <span class="keywordtype">unsigned</span> fontFlags = 0);
82
+ <a name="l00024"></a>00024
83
+ <a name="l00030"></a>00030 <span class="keywordtype">void</span> drawText(Bitmap&amp; bitmap, <span class="keyword">const</span> std::wstring&amp; text, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y,
84
+ <a name="l00031"></a>00031 Color c, <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
85
+ <a name="l00032"></a>00032 <span class="keywordtype">unsigned</span> fontFlags = 0);
86
+ <a name="l00033"></a>00033
87
+ <a name="l00040"></a>00040 Bitmap createText(<span class="keyword">const</span> std::wstring&amp; text,
88
+ <a name="l00041"></a>00041 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
89
+ <a name="l00042"></a>00042 <span class="keywordtype">unsigned</span> fontFlags = 0);
90
+ <a name="l00043"></a>00043
91
+ <a name="l00054"></a>00054 Bitmap createText(<span class="keyword">const</span> std::wstring&amp; text,
92
+ <a name="l00055"></a>00055 <span class="keyword">const</span> std::wstring&amp; fontName, <span class="keywordtype">unsigned</span> fontHeight,
93
+ <a name="l00056"></a>00056 <span class="keywordtype">unsigned</span> lineSpacing, <span class="keywordtype">unsigned</span> maxWidth, TextAlign align,
94
+ <a name="l00057"></a>00057 <span class="keywordtype">unsigned</span> fontFlags = 0);
95
+ <a name="l00058"></a>00058 }
96
+ <a name="l00059"></a>00059
97
+ <a name="l00060"></a>00060 <span class="preprocessor">#endif</span>
98
+ </pre></div></div>
99
+ <p class="footer">Documentation not clear enough? Please go to one of the places listed on <a href="http://www.libgosu.org/">http://www.libgosu.org/</a> and leave feedback. Thanks!</p>
100
+ </div>
101
+ </body>
102
+ </html>