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
@@ -1,159 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: ButtonsWin.hpp Source File</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- <h1>ButtonsWin.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef GOSU_BUTTONSWIN_HPP</span>
18
- <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_BUTTONSWIN_HPP</span>
19
- <a name="l00003"></a>00003 <span class="preprocessor"></span>
20
- <a name="l00004"></a>00004 <span class="keyword">namespace </span>Gosu
21
- <a name="l00005"></a>00005 {
22
- <a name="l00006"></a>00006 <span class="keyword">enum</span> <a class="code" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368" title="List of all the button ids that can be used with Gosu::Input.">ButtonName</a>
23
- <a name="l00007"></a>00007 {
24
- <a name="l00008"></a>00008 kbRangeBegin = 1,
25
- <a name="l00009"></a>00009 kbEscape = 0x01,
26
- <a name="l00010"></a>00010 kbF1 = 0x3b,
27
- <a name="l00011"></a>00011 kbF2 = 0x3c,
28
- <a name="l00012"></a>00012 kbF3 = 0x3d,
29
- <a name="l00013"></a>00013 kbF4 = 0x3e,
30
- <a name="l00014"></a>00014 kbF5 = 0x3f,
31
- <a name="l00015"></a>00015 kbF6 = 0x40,
32
- <a name="l00016"></a>00016 kbF7 = 0x41,
33
- <a name="l00017"></a>00017 kbF8 = 0x42,
34
- <a name="l00018"></a>00018 kbF9 = 0x43,
35
- <a name="l00019"></a>00019 kbF10 = 0x44,
36
- <a name="l00020"></a>00020 kbF11 = 0x57,
37
- <a name="l00021"></a>00021 kbF12 = 0x58,
38
- <a name="l00022"></a>00022 kb0 = 0x0b,
39
- <a name="l00023"></a>00023 kb1 = 0x02,
40
- <a name="l00024"></a>00024 kb2 = 0x03,
41
- <a name="l00025"></a>00025 kb3 = 0x04,
42
- <a name="l00026"></a>00026 kb4 = 0x05,
43
- <a name="l00027"></a>00027 kb5 = 0x06,
44
- <a name="l00028"></a>00028 kb6 = 0x07,
45
- <a name="l00029"></a>00029 kb7 = 0x08,
46
- <a name="l00030"></a>00030 kb8 = 0x09,
47
- <a name="l00031"></a>00031 kb9 = 0x0a,
48
- <a name="l00032"></a>00032 kbTab = 0x0f,
49
- <a name="l00033"></a>00033 kbReturn = 0x1c,
50
- <a name="l00034"></a>00034 kbSpace = 0x39,
51
- <a name="l00035"></a>00035 kbLeftShift = 0x2a,
52
- <a name="l00036"></a>00036 kbRightShift = 0x36,
53
- <a name="l00037"></a>00037 kbLeftControl = 0x1d,
54
- <a name="l00038"></a>00038 kbRightControl = 0x9d,
55
- <a name="l00039"></a>00039 kbLeftAlt = 0x38,
56
- <a name="l00040"></a>00040 kbRightAlt = 0xb8,
57
- <a name="l00041"></a>00041 kbLeftMeta = 0xdb,
58
- <a name="l00042"></a>00042 kbRightMeta = 0xdc,
59
- <a name="l00043"></a>00043 kbBackspace = 0x0e,
60
- <a name="l00044"></a>00044 kbLeft = 0xcb,
61
- <a name="l00045"></a>00045 kbRight = 0xcd,
62
- <a name="l00046"></a>00046 kbUp = 0xc8,
63
- <a name="l00047"></a>00047 kbDown = 0xd0,
64
- <a name="l00048"></a>00048 kbHome = 0xc7,
65
- <a name="l00049"></a>00049 kbEnd = 0xcf,
66
- <a name="l00050"></a>00050 kbInsert = 0xd2,
67
- <a name="l00051"></a>00051 kbDelete = 0xd3,
68
- <a name="l00052"></a>00052 kbPageUp = 0xc9,
69
- <a name="l00053"></a>00053 kbPageDown = 0xd1,
70
- <a name="l00054"></a>00054 kbEnter = 0x9c,
71
- <a name="l00055"></a>00055 kbA = 0x1e,
72
- <a name="l00056"></a>00056 kbB = 0x30,
73
- <a name="l00057"></a>00057 kbC = 0x2e,
74
- <a name="l00058"></a>00058 kbD = 0x20,
75
- <a name="l00059"></a>00059 kbE = 0x12,
76
- <a name="l00060"></a>00060 kbF = 0x21,
77
- <a name="l00061"></a>00061 kbG = 0x22,
78
- <a name="l00062"></a>00062 kbH = 0x23,
79
- <a name="l00063"></a>00063 kbI = 0x17,
80
- <a name="l00064"></a>00064 kbJ = 0x24,
81
- <a name="l00065"></a>00065 kbK = 0x25,
82
- <a name="l00066"></a>00066 kbL = 0x26,
83
- <a name="l00067"></a>00067 kbM = 0x32,
84
- <a name="l00068"></a>00068 kbN = 0x31,
85
- <a name="l00069"></a>00069 kbO = 0x18,
86
- <a name="l00070"></a>00070 kbP = 0x19,
87
- <a name="l00071"></a>00071 kbQ = 0x10,
88
- <a name="l00072"></a>00072 kbR = 0x13,
89
- <a name="l00073"></a>00073 kbS = 0x1f,
90
- <a name="l00074"></a>00074 kbT = 0x14,
91
- <a name="l00075"></a>00075 kbU = 0x16,
92
- <a name="l00076"></a>00076 kbV = 0x2f,
93
- <a name="l00077"></a>00077 kbW = 0x11,
94
- <a name="l00078"></a>00078 kbX = 0x2d,
95
- <a name="l00079"></a>00079 kbY = 0x15,
96
- <a name="l00080"></a>00080 kbZ = 0x2c,
97
- <a name="l00081"></a>00081 kbNumpad0 = 0x52,
98
- <a name="l00082"></a>00082 kbNumpad1 = 0x4f,
99
- <a name="l00083"></a>00083 kbNumpad2 = 0x50,
100
- <a name="l00084"></a>00084 kbNumpad3 = 0x51,
101
- <a name="l00085"></a>00085 kbNumpad4 = 0x4b,
102
- <a name="l00086"></a>00086 kbNumpad5 = 0x4c,
103
- <a name="l00087"></a>00087 kbNumpad6 = 0x4d,
104
- <a name="l00088"></a>00088 kbNumpad7 = 0x47,
105
- <a name="l00089"></a>00089 kbNumpad8 = 0x48,
106
- <a name="l00090"></a>00090 kbNumpad9 = 0x49,
107
- <a name="l00091"></a>00091 kbNumpadAdd = 0x4e,
108
- <a name="l00092"></a>00092 kbNumpadSubtract = 0x4a,
109
- <a name="l00093"></a>00093 kbNumpadMultiply = 0x37,
110
- <a name="l00094"></a>00094 kbNumpadDivide = 0xb5,
111
- <a name="l00095"></a>00095 kbRangeEnd = 0xff,
112
- <a name="l00096"></a>00096
113
- <a name="l00097"></a>00097 msRangeBegin,
114
- <a name="l00098"></a>00098 msLeft = msRangeBegin,
115
- <a name="l00099"></a>00099 msRight,
116
- <a name="l00100"></a>00100 msMiddle,
117
- <a name="l00101"></a>00101 msWheelUp,
118
- <a name="l00102"></a>00102 msWheelDown,
119
- <a name="l00103"></a>00103 msRangeEnd,
120
- <a name="l00104"></a>00104
121
- <a name="l00105"></a>00105 gpRangeBegin,
122
- <a name="l00106"></a>00106 gpLeft = gpRangeBegin,
123
- <a name="l00107"></a>00107 gpRight,
124
- <a name="l00108"></a>00108 gpUp,
125
- <a name="l00109"></a>00109 gpDown,
126
- <a name="l00110"></a>00110 gpButton0,
127
- <a name="l00111"></a>00111 gpButton1,
128
- <a name="l00112"></a>00112 gpButton2,
129
- <a name="l00113"></a>00113 gpButton3,
130
- <a name="l00114"></a>00114 gpButton4,
131
- <a name="l00115"></a>00115 gpButton5,
132
- <a name="l00116"></a>00116 gpButton6,
133
- <a name="l00117"></a>00117 gpButton7,
134
- <a name="l00118"></a>00118 gpButton8,
135
- <a name="l00119"></a>00119 gpButton9,
136
- <a name="l00120"></a>00120 gpButton10,
137
- <a name="l00121"></a>00121 gpButton11,
138
- <a name="l00122"></a>00122 gpButton12,
139
- <a name="l00123"></a>00123 gpButton13,
140
- <a name="l00124"></a>00124 gpButton14,
141
- <a name="l00125"></a>00125 gpButton15,
142
- <a name="l00126"></a>00126 gpRangeEnd = gpButton15,
143
- <a name="l00127"></a>00127
144
- <a name="l00128"></a>00128 kbNum = kbRangeEnd - kbRangeBegin + 1,
145
- <a name="l00129"></a>00129 msNum = msRangeEnd - msRangeBegin + 1,
146
- <a name="l00130"></a>00130 gpNum = gpRangeEnd - gpRangeBegin + 1,
147
- <a name="l00131"></a>00131
148
- <a name="l00132"></a>00132 numButtons = gpRangeEnd,
149
- <a name="l00133"></a>00133 noButton = 0xffffffff
150
- <a name="l00134"></a>00134 };
151
- <a name="l00135"></a>00135 }
152
- <a name="l00136"></a>00136
153
- <a name="l00137"></a>00137 <span class="preprocessor">#endif</span>
154
- </pre></div></div>
155
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
156
- <a href="http://www.doxygen.org/index.html">
157
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
158
- </body>
159
- </html>
@@ -1,160 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: ButtonsX.hpp Source File</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- <h1>ButtonsX.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef GOSU_BUTTONSX_HPP</span>
18
- <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_BUTTONSX_HPP</span>
19
- <a name="l00003"></a>00003 <span class="preprocessor"></span>
20
- <a name="l00004"></a>00004 <span class="keyword">namespace </span>Gosu
21
- <a name="l00005"></a>00005 {
22
- <a name="l00009"></a><a class="code" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368">00009</a> <span class="keyword">enum</span> <a class="code" href="namespaceGosu.html#b085b2dbdd533b49dadaf217dbcf8368" title="List of all the button ids that can be used with Gosu::Input.">ButtonName</a>
23
- <a name="l00010"></a>00010 {
24
- <a name="l00011"></a>00011 kbRangeBegin = 0x01,
25
- <a name="l00012"></a>00012 kbA = <span class="charliteral">'a'</span>,
26
- <a name="l00013"></a>00013 kbB = <span class="charliteral">'b'</span>,
27
- <a name="l00014"></a>00014 kbC = <span class="charliteral">'c'</span>,
28
- <a name="l00015"></a>00015 kbD = <span class="charliteral">'d'</span>,
29
- <a name="l00016"></a>00016 kbE = <span class="charliteral">'e'</span>,
30
- <a name="l00017"></a>00017 kbF = <span class="charliteral">'f'</span>,
31
- <a name="l00018"></a>00018 kbG = <span class="charliteral">'g'</span>,
32
- <a name="l00019"></a>00019 kbH = <span class="charliteral">'h'</span>,
33
- <a name="l00020"></a>00020 kbI = <span class="charliteral">'i'</span>,
34
- <a name="l00021"></a>00021 kbJ = <span class="charliteral">'j'</span>,
35
- <a name="l00022"></a>00022 kbK = <span class="charliteral">'k'</span>,
36
- <a name="l00023"></a>00023 kbL = <span class="charliteral">'l'</span>,
37
- <a name="l00024"></a>00024 kbM = <span class="charliteral">'m'</span>,
38
- <a name="l00025"></a>00025 kbN = <span class="charliteral">'n'</span>,
39
- <a name="l00026"></a>00026 kbO = <span class="charliteral">'o'</span>,
40
- <a name="l00027"></a>00027 kbP = <span class="charliteral">'p'</span>,
41
- <a name="l00028"></a>00028 kbQ = <span class="charliteral">'q'</span>,
42
- <a name="l00029"></a>00029 kbR = <span class="charliteral">'r'</span>,
43
- <a name="l00030"></a>00030 kbS = <span class="charliteral">'s'</span>,
44
- <a name="l00031"></a>00031 kbT = <span class="charliteral">'t'</span>,
45
- <a name="l00032"></a>00032 kbU = <span class="charliteral">'u'</span>,
46
- <a name="l00033"></a>00033 kbV = <span class="charliteral">'v'</span>,
47
- <a name="l00034"></a>00034 kbW = <span class="charliteral">'w'</span>,
48
- <a name="l00035"></a>00035 kbX = <span class="charliteral">'x'</span>,
49
- <a name="l00036"></a>00036 kbY = <span class="charliteral">'y'</span>,
50
- <a name="l00037"></a>00037 kbZ = <span class="charliteral">'z'</span>,
51
- <a name="l00038"></a>00038 kbEscape = XK_Escape,
52
- <a name="l00039"></a>00039 kbF1 = XK_F1,
53
- <a name="l00040"></a>00040 kbF2 = XK_F2,
54
- <a name="l00041"></a>00041 kbF3 = XK_F3,
55
- <a name="l00042"></a>00042 kbF4 = XK_F4,
56
- <a name="l00043"></a>00043 kbF5 = XK_F5,
57
- <a name="l00044"></a>00044 kbF6 = XK_F6,
58
- <a name="l00045"></a>00045 kbF7 = XK_F7,
59
- <a name="l00046"></a>00046 kbF8 = XK_F8,
60
- <a name="l00047"></a>00047 kbF9 = XK_F9,
61
- <a name="l00048"></a>00048 kbF10 = XK_F10,
62
- <a name="l00049"></a>00049 kbF11 = XK_F11,
63
- <a name="l00050"></a>00050 kbF12 = XK_F12,
64
- <a name="l00051"></a>00051 kb1 = XK_1,
65
- <a name="l00052"></a>00052 kb2 = XK_2,
66
- <a name="l00053"></a>00053 kb3 = XK_3,
67
- <a name="l00054"></a>00054 kb4 = XK_4,
68
- <a name="l00055"></a>00055 kb5 = XK_5,
69
- <a name="l00056"></a>00056 kb6 = XK_6,
70
- <a name="l00057"></a>00057 kb7 = XK_7,
71
- <a name="l00058"></a>00058 kb8 = XK_8,
72
- <a name="l00059"></a>00059 kb9 = XK_9,
73
- <a name="l00060"></a>00060 kb0 = XK_0,
74
- <a name="l00061"></a>00061 kbTab = XK_Tab,
75
- <a name="l00062"></a>00062 kbReturn = XK_Return,
76
- <a name="l00063"></a>00063 kbSpace = XK_space,
77
- <a name="l00064"></a>00064 kbLeftShift = XK_Shift_L,
78
- <a name="l00065"></a>00065 kbRightShift = XK_Shift_R,
79
- <a name="l00066"></a>00066 kbLeftControl = XK_Control_L,
80
- <a name="l00067"></a>00067 kbRightControl = XK_Control_R,
81
- <a name="l00068"></a>00068 kbLeftAlt = XK_Alt_L,
82
- <a name="l00069"></a>00069 kbRightAlt = XK_Alt_R,
83
- <a name="l00070"></a>00070 kbLeftMeta = 0, <span class="comment">// TODO?!</span>
84
- <a name="l00071"></a>00071 kbRightMeta = 0,
85
- <a name="l00072"></a>00072 kbBackspace = XK_BackSpace,
86
- <a name="l00073"></a>00073 kbLeft = XK_Left,
87
- <a name="l00074"></a>00074 kbRight = XK_Right,
88
- <a name="l00075"></a>00075 kbUp = XK_Up,
89
- <a name="l00076"></a>00076 kbDown = XK_Down,
90
- <a name="l00077"></a>00077 kbHome = XK_Home,
91
- <a name="l00078"></a>00078 kbEnd = XK_End,
92
- <a name="l00079"></a>00079 kbInsert = XK_Insert,
93
- <a name="l00080"></a>00080 kbDelete = XK_Delete,
94
- <a name="l00081"></a>00081 kbPageUp = XK_Prior,
95
- <a name="l00082"></a>00082 kbPageDown = XK_Next,
96
- <a name="l00083"></a>00083 kbEnter = XK_KP_Enter,
97
- <a name="l00084"></a>00084 kbNumpad1 = XK_KP_1,
98
- <a name="l00085"></a>00085 kbNumpad2 = XK_KP_2,
99
- <a name="l00086"></a>00086 kbNumpad3 = XK_KP_3,
100
- <a name="l00087"></a>00087 kbNumpad4 = XK_KP_4,
101
- <a name="l00088"></a>00088 kbNumpad5 = XK_KP_5,
102
- <a name="l00089"></a>00089 kbNumpad6 = XK_KP_6,
103
- <a name="l00090"></a>00090 kbNumpad7 = XK_KP_7,
104
- <a name="l00091"></a>00091 kbNumpad8 = XK_KP_8,
105
- <a name="l00092"></a>00092 kbNumpad9 = XK_KP_9,
106
- <a name="l00093"></a>00093 kbNumpad0 = XK_KP_0,
107
- <a name="l00094"></a>00094 kbNumpadAdd = XK_KP_Add,
108
- <a name="l00095"></a>00095 kbNumpadSubtract = XK_KP_Subtract,
109
- <a name="l00096"></a>00096 kbNumpadMultiply = XK_KP_Multiply,
110
- <a name="l00097"></a>00097 kbNumpadDivide = XK_KP_Divide,
111
- <a name="l00098"></a>00098 kbRangeEnd = 0xffff,
112
- <a name="l00099"></a>00099
113
- <a name="l00100"></a>00100 msRangeBegin,
114
- <a name="l00101"></a>00101 msLeft = msRangeBegin,
115
- <a name="l00102"></a>00102 msRight,
116
- <a name="l00103"></a>00103 msMiddle,
117
- <a name="l00104"></a>00104 msWheelUp,
118
- <a name="l00105"></a>00105 msWheelDown,
119
- <a name="l00106"></a>00106 msRangeEnd,
120
- <a name="l00107"></a>00107
121
- <a name="l00108"></a>00108 gpRangeBegin,
122
- <a name="l00109"></a>00109 gpLeft = gpRangeBegin,
123
- <a name="l00110"></a>00110 gpRight,
124
- <a name="l00111"></a>00111 gpUp,
125
- <a name="l00112"></a>00112 gpDown,
126
- <a name="l00113"></a>00113 gpButton0,
127
- <a name="l00114"></a>00114 gpButton1,
128
- <a name="l00115"></a>00115 gpButton2,
129
- <a name="l00116"></a>00116 gpButton3,
130
- <a name="l00117"></a>00117 gpButton4,
131
- <a name="l00118"></a>00118 gpButton5,
132
- <a name="l00119"></a>00119 gpButton6,
133
- <a name="l00120"></a>00120 gpButton7,
134
- <a name="l00121"></a>00121 gpButton8,
135
- <a name="l00122"></a>00122 gpButton9,
136
- <a name="l00123"></a>00123 gpButton10,
137
- <a name="l00124"></a>00124 gpButton11,
138
- <a name="l00125"></a>00125 gpButton12,
139
- <a name="l00126"></a>00126 gpButton13,
140
- <a name="l00127"></a>00127 gpButton14,
141
- <a name="l00128"></a>00128 gpButton15,
142
- <a name="l00129"></a>00129 gpRangeEnd = gpButton15,
143
- <a name="l00130"></a>00130
144
- <a name="l00131"></a>00131 kbNum = kbRangeEnd - kbRangeBegin + 1,
145
- <a name="l00132"></a>00132 msNum = msRangeEnd - msRangeBegin + 1,
146
- <a name="l00133"></a>00133 gpNum = gpRangeEnd - gpRangeBegin + 1,
147
- <a name="l00134"></a>00134
148
- <a name="l00135"></a>00135 numButtons = gpRangeEnd,
149
- <a name="l00136"></a>00136 noButton = 0xffffffff
150
- <a name="l00137"></a>00137 };
151
- <a name="l00138"></a>00138 }
152
- <a name="l00139"></a>00139
153
- <a name="l00140"></a>00140 <span class="preprocessor">#endif</span>
154
- <a name="l00141"></a>00141 <span class="preprocessor"></span>
155
- </pre></div></div>
156
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
157
- <a href="http://www.doxygen.org/index.html">
158
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
159
- </body>
160
- </html>
@@ -1,169 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
- <title>Gosu: Color.hpp Source File</title>
4
- <link href="doxygen.css" rel="stylesheet" type="text/css">
5
- <link href="tabs.css" rel="stylesheet" type="text/css">
6
- </head><body>
7
- <!-- Generated by Doxygen 1.5.5 -->
8
- <div class="navigation" id="top">
9
- <div class="tabs">
10
- <ul>
11
- <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
12
- <li><a href="namespaces.html"><span>Namespaces</span></a></li>
13
- <li><a href="annotated.html"><span>Classes</span></a></li>
14
- <li class="current"><a href="files.html"><span>Files</span></a></li>
15
- </ul>
16
- </div>
17
- <h1>Color.hpp</h1><a href="Color_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
18
- <a name="l00002"></a>00002
19
- <a name="l00003"></a>00003
20
- <a name="l00004"></a>00004 <span class="preprocessor">#ifndef GOSU_COLOR_HPP</span>
21
- <a name="l00005"></a>00005 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_COLOR_HPP</span>
22
- <a name="l00006"></a>00006 <span class="preprocessor"></span>
23
- <a name="l00007"></a>00007 <span class="preprocessor">#include &lt;boost/cstdint.hpp&gt;</span>
24
- <a name="l00008"></a>00008
25
- <a name="l00009"></a>00009 <span class="keyword">namespace </span>Gosu
26
- <a name="l00010"></a>00010 {
27
- <a name="l00014"></a><a class="code" href="classGosu_1_1Color.html">00014</a> <span class="keyword">class </span><a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a>
28
- <a name="l00015"></a>00015 {
29
- <a name="l00016"></a>00016 boost::uint32_t rep;
30
- <a name="l00017"></a>00017
31
- <a name="l00018"></a>00018 <span class="keyword">public</span>:
32
- <a name="l00019"></a>00019 <span class="keyword">typedef</span> boost::uint8_t Channel;
33
- <a name="l00020"></a>00020
34
- <a name="l00022"></a><a class="code" href="classGosu_1_1Color.html#10bae97d1c2f7482dff21f6b0fa4c533">00022</a> <a class="code" href="classGosu_1_1Color.html#10bae97d1c2f7482dff21f6b0fa4c533" title="The default constructor does not initialize the color to any value.">Color</a>()
35
- <a name="l00023"></a>00023 {
36
- <a name="l00024"></a>00024 }
37
- <a name="l00025"></a>00025
38
- <a name="l00028"></a><a class="code" href="classGosu_1_1Color.html#d3875fcbe68fb1fe608ab15f38129c6e">00028</a> <a class="code" href="classGosu_1_1Color.html#10bae97d1c2f7482dff21f6b0fa4c533" title="The default constructor does not initialize the color to any value.">Color</a>(boost::uint32_t <a class="code" href="classGosu_1_1Color.html#b079fa3b6b7ebef6a2cf432b0b38984a" title="Returns the color in 0xaarrggbb representation.">argb</a>)
39
- <a name="l00029"></a>00029 : rep(argb)
40
- <a name="l00030"></a>00030 {
41
- <a name="l00031"></a>00031 }
42
- <a name="l00032"></a>00032
43
- <a name="l00033"></a>00033 <a class="code" href="classGosu_1_1Color.html#10bae97d1c2f7482dff21f6b0fa4c533" title="The default constructor does not initialize the color to any value.">Color</a>(Channel red, Channel green, Channel blue)
44
- <a name="l00034"></a>00034 {
45
- <a name="l00035"></a>00035 rep = (0xff &lt;&lt; 24) | (red &lt;&lt; 16) | (green &lt;&lt; 8) | blue;
46
- <a name="l00036"></a>00036 }
47
- <a name="l00037"></a>00037
48
- <a name="l00038"></a>00038 <a class="code" href="classGosu_1_1Color.html#10bae97d1c2f7482dff21f6b0fa4c533" title="The default constructor does not initialize the color to any value.">Color</a>(Channel alpha, Channel red, Channel green, Channel blue)
49
- <a name="l00039"></a>00039 {
50
- <a name="l00040"></a>00040 rep = (alpha &lt;&lt; 24) | (red &lt;&lt; 16) | (green &lt;&lt; 8) | blue;
51
- <a name="l00041"></a>00041 }
52
- <a name="l00042"></a>00042
53
- <a name="l00047"></a>00047 <span class="keyword">static</span> <a class="code" href="classGosu_1_1Color.html#10bae97d1c2f7482dff21f6b0fa4c533" title="The default constructor does not initialize the color to any value.">Color</a> <a class="code" href="classGosu_1_1Color.html#f14484c5cff18b011f32e434fe13dfff" title="Constructs a color from the given hue/saturation/value triple.">fromHSV</a>(<span class="keywordtype">double</span> h, <span class="keywordtype">double</span> s, <span class="keywordtype">double</span> v);
54
- <a name="l00048"></a>00048 <span class="keyword">static</span> <a class="code" href="classGosu_1_1Color.html#10bae97d1c2f7482dff21f6b0fa4c533" title="The default constructor does not initialize the color to any value.">Color</a> fromAHSV(Channel alpha, <span class="keywordtype">double</span> h, <span class="keywordtype">double</span> s, <span class="keywordtype">double</span> v);
55
- <a name="l00049"></a>00049
56
- <a name="l00050"></a>00050 Channel alpha()<span class="keyword"> const</span>
57
- <a name="l00051"></a>00051 <span class="keyword"> </span>{
58
- <a name="l00052"></a>00052 <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>Channel<span class="keyword">&gt;</span>((rep &gt;&gt; 24) &amp; 0xff);
59
- <a name="l00053"></a>00053 }
60
- <a name="l00054"></a>00054
61
- <a name="l00055"></a>00055 Channel red()<span class="keyword"> const</span>
62
- <a name="l00056"></a>00056 <span class="keyword"> </span>{
63
- <a name="l00057"></a>00057 <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>Channel<span class="keyword">&gt;</span>((rep &gt;&gt; 16) &amp; 0xff);
64
- <a name="l00058"></a>00058 }
65
- <a name="l00059"></a>00059
66
- <a name="l00060"></a>00060 Channel green()<span class="keyword"> const</span>
67
- <a name="l00061"></a>00061 <span class="keyword"> </span>{
68
- <a name="l00062"></a>00062 <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>Channel<span class="keyword">&gt;</span>((rep &gt;&gt; 8) &amp; 0xff);
69
- <a name="l00063"></a>00063 }
70
- <a name="l00064"></a>00064
71
- <a name="l00065"></a>00065 Channel blue()<span class="keyword"> const</span>
72
- <a name="l00066"></a>00066 <span class="keyword"> </span>{
73
- <a name="l00067"></a>00067 <span class="keywordflow">return</span> <span class="keyword">static_cast&lt;</span>Channel<span class="keyword">&gt;</span>(rep &amp; 0xff);
74
- <a name="l00068"></a>00068 }
75
- <a name="l00069"></a>00069
76
- <a name="l00070"></a>00070 <span class="keywordtype">void</span> setAlpha(Channel <a class="code" href="classGosu_1_1Color.html#fa5e1b57786f25f93f8ef84acebfd82f" title="Returns the value (brightness) of the color, in the range of 0..1.">value</a>)
77
- <a name="l00071"></a>00071 {
78
- <a name="l00072"></a>00072 rep &amp;= 0x00ffffff;
79
- <a name="l00073"></a>00073 rep |= value &lt;&lt; 24;
80
- <a name="l00074"></a>00074 }
81
- <a name="l00075"></a>00075
82
- <a name="l00076"></a>00076 <span class="keywordtype">void</span> setRed(Channel <a class="code" href="classGosu_1_1Color.html#fa5e1b57786f25f93f8ef84acebfd82f" title="Returns the value (brightness) of the color, in the range of 0..1.">value</a>)
83
- <a name="l00077"></a>00077 {
84
- <a name="l00078"></a>00078 rep &amp;= 0xff00ffff;
85
- <a name="l00079"></a>00079 rep |= value &lt;&lt; 16;
86
- <a name="l00080"></a>00080 }
87
- <a name="l00081"></a>00081
88
- <a name="l00082"></a>00082 <span class="keywordtype">void</span> setGreen(Channel <a class="code" href="classGosu_1_1Color.html#fa5e1b57786f25f93f8ef84acebfd82f" title="Returns the value (brightness) of the color, in the range of 0..1.">value</a>)
89
- <a name="l00083"></a>00083 {
90
- <a name="l00084"></a>00084 rep &amp;= 0xffff00ff;
91
- <a name="l00085"></a>00085 rep |= value &lt;&lt; 8;
92
- <a name="l00086"></a>00086 }
93
- <a name="l00087"></a>00087
94
- <a name="l00088"></a>00088 <span class="keywordtype">void</span> setBlue(Channel <a class="code" href="classGosu_1_1Color.html#fa5e1b57786f25f93f8ef84acebfd82f" title="Returns the value (brightness) of the color, in the range of 0..1.">value</a>)
95
- <a name="l00089"></a>00089 {
96
- <a name="l00090"></a>00090 rep &amp;= 0xffffff00;
97
- <a name="l00091"></a>00091 rep |= value;
98
- <a name="l00092"></a>00092 }
99
- <a name="l00093"></a>00093
100
- <a name="l00095"></a>00095 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Color.html#e7dea29641a5e7c1a903f17c8f91ca41" title="Returns the hue of the color, in the usual range of 0..360.">hue</a>() <span class="keyword">const</span>;
101
- <a name="l00096"></a>00096
102
- <a name="l00098"></a>00098 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Color.html#ea1515be19da555c8beed681bd97e714" title="Changes the current color so hue() will return h.">setHue</a>(<span class="keywordtype">double</span> h);
103
- <a name="l00099"></a>00099
104
- <a name="l00101"></a>00101 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Color.html#50f84f148ae5676376f7ffab757ebe96" title="Returns the saturation of the color, in the range of 0..1.">saturation</a>() <span class="keyword">const</span>;
105
- <a name="l00102"></a>00102
106
- <a name="l00104"></a>00104 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Color.html#e5401d0533adc33bd2ce0d7d6bf360e6" title="Changes the current color so saturation() will return s.">setSaturation</a>(<span class="keywordtype">double</span> s);
107
- <a name="l00105"></a>00105
108
- <a name="l00107"></a>00107 <span class="keywordtype">double</span> <a class="code" href="classGosu_1_1Color.html#fa5e1b57786f25f93f8ef84acebfd82f" title="Returns the value (brightness) of the color, in the range of 0..1.">value</a>() <span class="keyword">const</span>;
109
- <a name="l00108"></a>00108
110
- <a name="l00110"></a>00110 <span class="keywordtype">void</span> <a class="code" href="classGosu_1_1Color.html#7c84051414c6044f5928920dca1ca2c5" title="Changes the current color so value() will return v.">setValue</a>(<span class="keywordtype">double</span> v);
111
- <a name="l00111"></a>00111
112
- <a name="l00113"></a><a class="code" href="classGosu_1_1Color.html#b079fa3b6b7ebef6a2cf432b0b38984a">00113</a> boost::uint32_t <a class="code" href="classGosu_1_1Color.html#b079fa3b6b7ebef6a2cf432b0b38984a" title="Returns the color in 0xaarrggbb representation.">argb</a>()<span class="keyword"> const</span>
113
- <a name="l00114"></a>00114 <span class="keyword"> </span>{
114
- <a name="l00115"></a>00115 <span class="keywordflow">return</span> rep;
115
- <a name="l00116"></a>00116 }
116
- <a name="l00117"></a>00117
117
- <a name="l00119"></a><a class="code" href="classGosu_1_1Color.html#629f55a6f636bc8d677bcca01eedf1c5">00119</a> boost::uint32_t <a class="code" href="classGosu_1_1Color.html#629f55a6f636bc8d677bcca01eedf1c5" title="Returns the color in 0x00bbggrr representation.">bgr</a>()<span class="keyword"> const</span>
118
- <a name="l00120"></a>00120 <span class="keyword"> </span>{
119
- <a name="l00121"></a>00121 <span class="keywordflow">return</span> red() | (rep &amp; 0x0000ff00) | blue() &lt;&lt; 16;
120
- <a name="l00122"></a>00122 }
121
- <a name="l00123"></a>00123
122
- <a name="l00125"></a><a class="code" href="classGosu_1_1Color.html#3ddd0323d5f1bf0d6dcf47ca6e80ca36">00125</a> boost::uint32_t <a class="code" href="classGosu_1_1Color.html#3ddd0323d5f1bf0d6dcf47ca6e80ca36" title="Returns the color in 0xaabbggrr representation.">abgr</a>()<span class="keyword"> const</span>
123
- <a name="l00126"></a>00126 <span class="keyword"> </span>{
124
- <a name="l00127"></a>00127 <span class="keywordflow">return</span> alpha() &lt;&lt; 24 | <a class="code" href="classGosu_1_1Color.html#629f55a6f636bc8d677bcca01eedf1c5" title="Returns the color in 0x00bbggrr representation.">bgr</a>();
125
- <a name="l00128"></a>00128 }
126
- <a name="l00129"></a>00129 };
127
- <a name="l00130"></a>00130
128
- <a name="l00131"></a>00131 <span class="comment">// Causes weird errors when included in the SWIG wrapping process.</span>
129
- <a name="l00132"></a>00132 <span class="comment">// If, with a future version of SWIG, this can be included and</span>
130
- <a name="l00133"></a>00133 <span class="comment">// require 'gosu'; include Gosu</span>
131
- <a name="l00134"></a>00134 <span class="comment">// works from within Ruby, the #ifndef guard can be removed.</span>
132
- <a name="l00135"></a>00135 <span class="preprocessor"> #ifndef SWIG</span>
133
- <a name="l00136"></a>00136 <span class="preprocessor"></span> <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator==(Color a, Color b)
134
- <a name="l00137"></a>00137 {
135
- <a name="l00138"></a>00138 <span class="keywordflow">return</span> a.argb() == b.argb();
136
- <a name="l00139"></a>00139 }
137
- <a name="l00140"></a>00140
138
- <a name="l00141"></a>00141 <span class="keyword">inline</span> <span class="keywordtype">bool</span> operator!=(Color a, Color b)
139
- <a name="l00142"></a>00142 {
140
- <a name="l00143"></a>00143 <span class="keywordflow">return</span> a.argb() != b.argb();
141
- <a name="l00144"></a>00144 }
142
- <a name="l00145"></a>00145 <span class="preprocessor"> #endif</span>
143
- <a name="l00146"></a>00146 <span class="preprocessor"></span>
144
- <a name="l00150"></a>00150 Color <a class="code" href="namespaceGosu.html#55c2cfa7575386d8eb6a8dc615e905ae" title="Interpolates linearly between two colors, with a given weight towards the second...">interpolate</a>(Color a, Color b, <span class="keywordtype">double</span> weight = 0.5);
145
- <a name="l00151"></a>00151
146
- <a name="l00154"></a>00154 Color <a class="code" href="namespaceGosu.html#bb85501ec3787bd0fc80187231788bea" title="Combines two colors as if their channels were mapped to the 0.">multiply</a>(Color a, Color b);
147
- <a name="l00155"></a>00155
148
- <a name="l00157"></a><a class="code" href="namespaceGosu_1_1Colors.html">00157</a> <span class="keyword">namespace </span>Colors
149
- <a name="l00158"></a>00158 {
150
- <a name="l00159"></a>00159 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> none = 0x00000000;
151
- <a name="l00160"></a>00160 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> black = 0xff000000;
152
- <a name="l00161"></a>00161 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> gray = 0xff808080;
153
- <a name="l00162"></a>00162 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> white = 0xffffffff;
154
- <a name="l00163"></a>00163 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> red = 0xffff0000;
155
- <a name="l00164"></a>00164 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> green = 0xff00ff00;
156
- <a name="l00165"></a>00165 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> blue = 0xff0000ff;
157
- <a name="l00166"></a>00166 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> yellow = 0xffffff00;
158
- <a name="l00167"></a>00167 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> fuchsia = 0xffff00ff;
159
- <a name="l00168"></a>00168 <span class="keyword">const</span> <a class="code" href="classGosu_1_1Color.html" title="Represents an ARGB color value with 8 bits for each channel.">Color</a> cyan = 0xff00ffff;
160
- <a name="l00169"></a>00169 }
161
- <a name="l00170"></a>00170 }
162
- <a name="l00171"></a>00171
163
- <a name="l00172"></a>00172 <span class="preprocessor">#endif</span>
164
- </pre></div></div>
165
- <hr size="1"><address style="text-align: right;"><small>Generated on Fri Apr 17 23:35:43 2009 for Gosu by&nbsp;
166
- <a href="http://www.doxygen.org/index.html">
167
- <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
168
- </body>
169
- </html>