gosu 0.7.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. data/COPYING.txt +29 -0
  2. data/Gosu/Async.hpp +48 -0
  3. data/Gosu/Audio.hpp +145 -0
  4. data/Gosu/AutoLink.hpp +16 -0
  5. data/Gosu/Bitmap.hpp +85 -0
  6. data/Gosu/ButtonsMac.hpp +114 -0
  7. data/Gosu/ButtonsWin.hpp +111 -0
  8. data/Gosu/ButtonsX.hpp +115 -0
  9. data/Gosu/Color.hpp +172 -0
  10. data/Gosu/Directories.hpp +36 -0
  11. data/Gosu/Font.hpp +59 -0
  12. data/Gosu/Fwd.hpp +31 -0
  13. data/Gosu/Gosu.hpp +26 -0
  14. data/Gosu/Graphics.hpp +86 -0
  15. data/Gosu/GraphicsBase.hpp +45 -0
  16. data/Gosu/IO.hpp +255 -0
  17. data/Gosu/Image.hpp +148 -0
  18. data/Gosu/ImageData.hpp +45 -0
  19. data/Gosu/Input.hpp +116 -0
  20. data/Gosu/Math.hpp +95 -0
  21. data/Gosu/Platform.hpp +61 -0
  22. data/Gosu/RotFlip.hpp +116 -0
  23. data/Gosu/Sockets.hpp +129 -0
  24. data/Gosu/Text.hpp +47 -0
  25. data/Gosu/TextInput.hpp +57 -0
  26. data/Gosu/Timing.hpp +16 -0
  27. data/Gosu/Utility.hpp +24 -0
  28. data/Gosu/WinUtility.hpp +76 -0
  29. data/Gosu/Window.hpp +84 -0
  30. data/GosuImpl/Async.cpp +37 -0
  31. data/GosuImpl/AudioFmod.cpp +417 -0
  32. data/GosuImpl/AudioSDL.cpp +255 -0
  33. data/GosuImpl/DirectoriesMac.mm +38 -0
  34. data/GosuImpl/DirectoriesUnix.cpp +48 -0
  35. data/GosuImpl/DirectoriesWin.cpp +42 -0
  36. data/GosuImpl/FileUnix.cpp +100 -0
  37. data/GosuImpl/FileWin.cpp +83 -0
  38. data/GosuImpl/Graphics/Bitmap.cpp +116 -0
  39. data/GosuImpl/Graphics/BitmapBMP.cpp +232 -0
  40. data/GosuImpl/Graphics/BitmapColorKey.cpp +39 -0
  41. data/GosuImpl/Graphics/BitmapPNG.cpp +276 -0
  42. data/GosuImpl/Graphics/BitmapUtils.cpp +67 -0
  43. data/GosuImpl/Graphics/BlockAllocator.cpp +127 -0
  44. data/GosuImpl/Graphics/BlockAllocator.hpp +34 -0
  45. data/GosuImpl/Graphics/Color.cpp +126 -0
  46. data/GosuImpl/Graphics/Common.hpp +21 -0
  47. data/GosuImpl/Graphics/DrawOp.hpp +154 -0
  48. data/GosuImpl/Graphics/Font.cpp +110 -0
  49. data/GosuImpl/Graphics/Graphics.cpp +295 -0
  50. data/GosuImpl/Graphics/Image.cpp +159 -0
  51. data/GosuImpl/Graphics/LargeImageData.cpp +115 -0
  52. data/GosuImpl/Graphics/LargeImageData.hpp +37 -0
  53. data/GosuImpl/Graphics/RotFlip.cpp +184 -0
  54. data/GosuImpl/Graphics/TexChunk.cpp +77 -0
  55. data/GosuImpl/Graphics/TexChunk.hpp +40 -0
  56. data/GosuImpl/Graphics/Text.cpp +223 -0
  57. data/GosuImpl/Graphics/TextMac.cpp +242 -0
  58. data/GosuImpl/Graphics/TextPangoFT.cpp +186 -0
  59. data/GosuImpl/Graphics/TextWin.cpp +172 -0
  60. data/GosuImpl/Graphics/Texture.cpp +104 -0
  61. data/GosuImpl/Graphics/Texture.hpp +34 -0
  62. data/GosuImpl/IO.cpp +48 -0
  63. data/GosuImpl/InputMac.mm +677 -0
  64. data/GosuImpl/InputWin.cpp +444 -0
  65. data/GosuImpl/InputX.cpp +158 -0
  66. data/GosuImpl/MacUtility.hpp +48 -0
  67. data/GosuImpl/Math.cpp +49 -0
  68. data/GosuImpl/RubyGosu.swg +474 -0
  69. data/GosuImpl/RubyGosuStub.mm +17 -0
  70. data/GosuImpl/RubyGosu_DllMain.cxx +30 -0
  71. data/GosuImpl/RubyGosu_wrap.cxx +8521 -0
  72. data/GosuImpl/RubyGosu_wrap.h +31 -0
  73. data/GosuImpl/Sockets/CommSocket.cpp +304 -0
  74. data/GosuImpl/Sockets/ListenerSocket.cpp +60 -0
  75. data/GosuImpl/Sockets/MessageSocket.cpp +136 -0
  76. data/GosuImpl/Sockets/Socket.cpp +145 -0
  77. data/GosuImpl/Sockets/Sockets.hpp +66 -0
  78. data/GosuImpl/TextInputMac.mm +207 -0
  79. data/GosuImpl/TextInputWin.cpp +197 -0
  80. data/GosuImpl/TextInputX.cpp +201 -0
  81. data/GosuImpl/TextTTFWin.cpp +247 -0
  82. data/GosuImpl/TimingUnix.cpp +17 -0
  83. data/GosuImpl/TimingWin.cpp +28 -0
  84. data/GosuImpl/Utility.cpp +140 -0
  85. data/GosuImpl/WinMain.cpp +69 -0
  86. data/GosuImpl/WinUtility.cpp +137 -0
  87. data/GosuImpl/WindowMac.mm +466 -0
  88. data/GosuImpl/WindowWin.cpp +447 -0
  89. data/GosuImpl/WindowX.cpp +392 -0
  90. data/GosuImpl/X11vroot.h +118 -0
  91. data/README.txt +13 -0
  92. data/Rakefile +178 -0
  93. data/examples/ChipmunkIntegration.rb +275 -0
  94. data/examples/CptnRuby.rb +231 -0
  95. data/examples/MoreChipmunkAndRMagick.rb +155 -0
  96. data/examples/OpenGLIntegration.rb +232 -0
  97. data/examples/RMagickIntegration.rb +449 -0
  98. data/examples/TextInput.cpp +170 -0
  99. data/examples/TextInput.rb +139 -0
  100. data/examples/Tutorial.cpp +215 -0
  101. data/examples/Tutorial.rb +137 -0
  102. data/examples/media/Beep.wav +0 -0
  103. data/examples/media/CptnRuby Gem.png +0 -0
  104. data/examples/media/CptnRuby Map.txt +25 -0
  105. data/examples/media/CptnRuby Tileset.png +0 -0
  106. data/examples/media/CptnRuby.png +0 -0
  107. data/examples/media/Cursor.png +0 -0
  108. data/examples/media/Earth.png +0 -0
  109. data/examples/media/Explosion.wav +0 -0
  110. data/examples/media/LargeStar.png +0 -0
  111. data/examples/media/Sky.jpg +0 -0
  112. data/examples/media/Smoke.png +0 -0
  113. data/examples/media/Soldier.png +0 -0
  114. data/examples/media/Space.png +0 -0
  115. data/examples/media/Star.png +0 -0
  116. data/examples/media/Starfighter.bmp +0 -0
  117. data/linux/Makefile.in +98 -0
  118. data/linux/configure +5658 -0
  119. data/linux/configure.ac +126 -0
  120. data/linux/extconf.rb +11 -0
  121. data/mac/English.lproj/InfoPlist.strings +0 -0
  122. data/mac/Gosu-Info.plist +26 -0
  123. data/mac/Gosu.xcodeproj/project.pbxproj +1194 -0
  124. data/mac/RubyGosu Template-Info.plist +26 -0
  125. data/mac/libboost_thread_1_34_1_universal.a +0 -0
  126. data/mac/libboost_thread_d_1_34_1_universal.a +0 -0
  127. data/mac/libfmod_universal.a +0 -0
  128. data/mac/libpng_universal.a +0 -0
  129. data/mac/libz_universal.a +0 -0
  130. data/reference/Async_8hpp-source.html +70 -0
  131. data/reference/Audio_8hpp-source.html +114 -0
  132. data/reference/Audio_8hpp.html +50 -0
  133. data/reference/AutoLink_8hpp-source.html +38 -0
  134. data/reference/AutoLink_8hpp.html +34 -0
  135. data/reference/Bitmap_8hpp-source.html +85 -0
  136. data/reference/Bitmap_8hpp.html +58 -0
  137. data/reference/ButtonsMac_8hpp-source.html +133 -0
  138. data/reference/ButtonsWin_8hpp-source.html +133 -0
  139. data/reference/ButtonsX_8hpp-source.html +134 -0
  140. data/reference/Color_8hpp-source.html +169 -0
  141. data/reference/Color_8hpp.html +85 -0
  142. data/reference/Directories_8hpp-source.html +42 -0
  143. data/reference/Directories_8hpp.html +46 -0
  144. data/reference/Font_8hpp-source.html +65 -0
  145. data/reference/Font_8hpp.html +41 -0
  146. data/reference/Fwd_8hpp-source.html +52 -0
  147. data/reference/Fwd_8hpp.html +37 -0
  148. data/reference/Gosu_8hpp-source.html +48 -0
  149. data/reference/Gosu_8hpp.html +34 -0
  150. data/reference/GraphicsBase_8hpp-source.html +57 -0
  151. data/reference/GraphicsBase_8hpp.html +56 -0
  152. data/reference/Graphics_8hpp-source.html +96 -0
  153. data/reference/Graphics_8hpp.html +53 -0
  154. data/reference/IO_8hpp-source.html +255 -0
  155. data/reference/IO_8hpp.html +74 -0
  156. data/reference/ImageData_8hpp-source.html +62 -0
  157. data/reference/ImageData_8hpp.html +43 -0
  158. data/reference/Image_8hpp-source.html +126 -0
  159. data/reference/Image_8hpp.html +48 -0
  160. data/reference/Input_8hpp-source.html +118 -0
  161. data/reference/Input_8hpp.html +50 -0
  162. data/reference/Math_8hpp-source.html +92 -0
  163. data/reference/Math_8hpp.html +74 -0
  164. data/reference/Platform_8hpp-source.html +83 -0
  165. data/reference/Platform_8hpp.html +73 -0
  166. data/reference/RotFlip_8hpp-source.html +138 -0
  167. data/reference/RotFlip_8hpp.html +77 -0
  168. data/reference/Sockets_8hpp-source.html +130 -0
  169. data/reference/Sockets_8hpp.html +66 -0
  170. data/reference/TextInput_8hpp-source.html +64 -0
  171. data/reference/TextInput_8hpp.html +41 -0
  172. data/reference/Text_8hpp-source.html +51 -0
  173. data/reference/Text_8hpp.html +46 -0
  174. data/reference/Timing_8hpp-source.html +36 -0
  175. data/reference/Timing_8hpp.html +42 -0
  176. data/reference/Utility_8hpp-source.html +44 -0
  177. data/reference/Utility_8hpp.html +48 -0
  178. data/reference/WinUtility_8hpp-source.html +79 -0
  179. data/reference/WinUtility_8hpp.html +64 -0
  180. data/reference/Window_8hpp-source.html +91 -0
  181. data/reference/Window_8hpp.html +41 -0
  182. data/reference/annotated.html +51 -0
  183. data/reference/classGosu_1_1Audio-members.html +34 -0
  184. data/reference/classGosu_1_1Audio.html +46 -0
  185. data/reference/classGosu_1_1Bitmap-members.html +44 -0
  186. data/reference/classGosu_1_1Bitmap.html +263 -0
  187. data/reference/classGosu_1_1Buffer-members.html +44 -0
  188. data/reference/classGosu_1_1Buffer.html +78 -0
  189. data/reference/classGosu_1_1Buffer.png +0 -0
  190. data/reference/classGosu_1_1Button-members.html +36 -0
  191. data/reference/classGosu_1_1Button.html +143 -0
  192. data/reference/classGosu_1_1Color-members.html +56 -0
  193. data/reference/classGosu_1_1Color.html +387 -0
  194. data/reference/classGosu_1_1File-members.html +41 -0
  195. data/reference/classGosu_1_1File.html +69 -0
  196. data/reference/classGosu_1_1File.png +0 -0
  197. data/reference/classGosu_1_1Font-members.html +39 -0
  198. data/reference/classGosu_1_1Font.html +309 -0
  199. data/reference/classGosu_1_1Graphics-members.html +50 -0
  200. data/reference/classGosu_1_1Graphics.html +234 -0
  201. data/reference/classGosu_1_1Image-members.html +45 -0
  202. data/reference/classGosu_1_1Image.html +518 -0
  203. data/reference/classGosu_1_1ImageData-members.html +37 -0
  204. data/reference/classGosu_1_1ImageData.html +60 -0
  205. data/reference/classGosu_1_1Input-members.html +44 -0
  206. data/reference/classGosu_1_1Input.html +223 -0
  207. data/reference/classGosu_1_1MessageSocket-members.html +40 -0
  208. data/reference/classGosu_1_1MessageSocket.html +233 -0
  209. data/reference/classGosu_1_1Resource-members.html +39 -0
  210. data/reference/classGosu_1_1Resource.html +116 -0
  211. data/reference/classGosu_1_1Resource.png +0 -0
  212. data/reference/classGosu_1_1Sample-members.html +37 -0
  213. data/reference/classGosu_1_1Sample.html +200 -0
  214. data/reference/classGosu_1_1SampleInstance-members.html +38 -0
  215. data/reference/classGosu_1_1SampleInstance.html +169 -0
  216. data/reference/classGosu_1_1Song-members.html +43 -0
  217. data/reference/classGosu_1_1Song.html +260 -0
  218. data/reference/classGosu_1_1TextInput-members.html +38 -0
  219. data/reference/classGosu_1_1TextInput.html +121 -0
  220. data/reference/classGosu_1_1Window-members.html +50 -0
  221. data/reference/classGosu_1_1Window.html +271 -0
  222. data/reference/doxyfile +233 -0
  223. data/reference/doxygen.css +433 -0
  224. data/reference/doxygen.png +0 -0
  225. data/reference/files.html +54 -0
  226. data/reference/functions.html +236 -0
  227. data/reference/functions_enum.html +45 -0
  228. data/reference/functions_func.html +227 -0
  229. data/reference/functions_vars.html +47 -0
  230. data/reference/hierarchy.html +53 -0
  231. data/reference/index.html +26 -0
  232. data/reference/namespaceGosu.html +2890 -0
  233. data/reference/namespaceGosu_1_1Colors.html +70 -0
  234. data/reference/namespaceGosu_1_1Win.html +275 -0
  235. data/reference/namespacemembers.html +216 -0
  236. data/reference/namespacemembers_enum.html +52 -0
  237. data/reference/namespacemembers_eval.html +54 -0
  238. data/reference/namespacemembers_func.html +185 -0
  239. data/reference/namespacemembers_type.html +46 -0
  240. data/reference/namespacemembers_vars.html +46 -0
  241. data/reference/namespaces.html +35 -0
  242. data/reference/tab_b.gif +0 -0
  243. data/reference/tab_l.gif +0 -0
  244. data/reference/tab_r.gif +0 -0
  245. data/reference/tabs.css +102 -0
  246. data/windows/Gosu.sln +29 -0
  247. data/windows/Gosu.vcproj +553 -0
  248. data/windows/RubyGosu.vcproj +138 -0
  249. metadata +305 -0
@@ -0,0 +1,133 @@
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: ButtonsMac.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>ButtonsMac.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef GOSU_BUTTONSMAC_HPP</span>
18
+ <a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define GOSU_BUTTONSMAC_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 kbEscape = 0x35,
26
+ <a name="l00013"></a>00013 kbF1 = 0x7a,
27
+ <a name="l00014"></a>00014 kbF2 = 0x78,
28
+ <a name="l00015"></a>00015 kbF3 = 0x63,
29
+ <a name="l00016"></a>00016 kbF4 = 0x76,
30
+ <a name="l00017"></a>00017 kbF5 = 0x60,
31
+ <a name="l00018"></a>00018 kbF6 = 0x61,
32
+ <a name="l00019"></a>00019 kbF7 = 0x62,
33
+ <a name="l00020"></a>00020 kbF8 = 0x64,
34
+ <a name="l00021"></a>00021 kbF9 = 0x65,
35
+ <a name="l00022"></a>00022 kbF10 = 0x6d,
36
+ <a name="l00023"></a>00023 kbF11 = 0x67,
37
+ <a name="l00024"></a>00024 kbF12 = 0x6f,
38
+ <a name="l00025"></a>00025 kb1 = 0x12,
39
+ <a name="l00026"></a>00026 kb2 = 0x13,
40
+ <a name="l00027"></a>00027 kb3 = 0x14,
41
+ <a name="l00028"></a>00028 kb4 = 0x15,
42
+ <a name="l00029"></a>00029 kb5 = 0x17,
43
+ <a name="l00030"></a>00030 kb6 = 0x16,
44
+ <a name="l00031"></a>00031 kb7 = 0x1a,
45
+ <a name="l00032"></a>00032 kb8 = 0x1c,
46
+ <a name="l00033"></a>00033 kb9 = 0x19,
47
+ <a name="l00034"></a>00034 kb0 = 0x1d,
48
+ <a name="l00035"></a>00035 kbTab = 0x30,
49
+ <a name="l00036"></a>00036 kbReturn = 0x24,
50
+ <a name="l00037"></a>00037 kbSpace = 0x31,
51
+ <a name="l00038"></a>00038 kbLeftShift = 0x38,
52
+ <a name="l00039"></a>00039 kbRightShift = 0x3c,
53
+ <a name="l00040"></a>00040 kbLeftControl = 0x3b,
54
+ <a name="l00041"></a>00041 kbRightControl = 0x3e,
55
+ <a name="l00042"></a>00042 kbLeftAlt = 0x3a,
56
+ <a name="l00043"></a>00043 kbRightAlt = 0x3d,
57
+ <a name="l00044"></a>00044 kbLeftMeta = 0x37,
58
+ <a name="l00045"></a>00045 kbRightMeta = 0x36,
59
+ <a name="l00046"></a>00046 kbBackspace = 0x33,
60
+ <a name="l00047"></a>00047 kbLeft = 0x7b,
61
+ <a name="l00048"></a>00048 kbRight = 0x7c,
62
+ <a name="l00049"></a>00049 kbUp = 0x7e,
63
+ <a name="l00050"></a>00050 kbDown = 0x7d,
64
+ <a name="l00051"></a>00051 kbHome = 0x73,
65
+ <a name="l00052"></a>00052 kbEnd = 0x77,
66
+ <a name="l00053"></a>00053 kbInsert = 0x72,
67
+ <a name="l00054"></a>00054 kbDelete = 0x75,
68
+ <a name="l00055"></a>00055 kbPageUp = 0x74,
69
+ <a name="l00056"></a>00056 kbPageDown = 0x79,
70
+ <a name="l00057"></a>00057 kbEnter = 0x4c,
71
+ <a name="l00058"></a>00058 kbNumpad1 = 0x53,
72
+ <a name="l00059"></a>00059 kbNumpad2 = 0x54,
73
+ <a name="l00060"></a>00060 kbNumpad3 = 0x55,
74
+ <a name="l00061"></a>00061 kbNumpad4 = 0x56,
75
+ <a name="l00062"></a>00062 kbNumpad5 = 0x57,
76
+ <a name="l00063"></a>00063 kbNumpad6 = 0x58,
77
+ <a name="l00064"></a>00064 kbNumpad7 = 0x59,
78
+ <a name="l00065"></a>00065 kbNumpad8 = 0x5b,
79
+ <a name="l00066"></a>00066 kbNumpad9 = 0x5c,
80
+ <a name="l00067"></a>00067 kbNumpad0 = 0x52,
81
+ <a name="l00068"></a>00068 kbNumpadAdd = 0x45,
82
+ <a name="l00069"></a>00069 kbNumpadSubtract = 0x4e,
83
+ <a name="l00070"></a>00070 kbNumpadMultiply = 0x43,
84
+ <a name="l00071"></a>00071 kbNumpadDivide = 0x4b,
85
+ <a name="l00072"></a>00072 kbRangeEnd = 0xffff,
86
+ <a name="l00073"></a>00073
87
+ <a name="l00074"></a>00074 msRangeBegin,
88
+ <a name="l00075"></a>00075 msLeft = msRangeBegin,
89
+ <a name="l00076"></a>00076 msRight,
90
+ <a name="l00077"></a>00077 msMiddle,
91
+ <a name="l00078"></a>00078 msWheelUp,
92
+ <a name="l00079"></a>00079 msWheelDown,
93
+ <a name="l00080"></a>00080 msRangeEnd,
94
+ <a name="l00081"></a>00081
95
+ <a name="l00082"></a>00082 gpRangeBegin,
96
+ <a name="l00083"></a>00083 gpLeft = gpRangeBegin,
97
+ <a name="l00084"></a>00084 gpRight,
98
+ <a name="l00085"></a>00085 gpUp,
99
+ <a name="l00086"></a>00086 gpDown,
100
+ <a name="l00087"></a>00087 gpButton0,
101
+ <a name="l00088"></a>00088 gpButton1,
102
+ <a name="l00089"></a>00089 gpButton2,
103
+ <a name="l00090"></a>00090 gpButton3,
104
+ <a name="l00091"></a>00091 gpButton4,
105
+ <a name="l00092"></a>00092 gpButton5,
106
+ <a name="l00093"></a>00093 gpButton6,
107
+ <a name="l00094"></a>00094 gpButton7,
108
+ <a name="l00095"></a>00095 gpButton8,
109
+ <a name="l00096"></a>00096 gpButton9,
110
+ <a name="l00097"></a>00097 gpButton10,
111
+ <a name="l00098"></a>00098 gpButton11,
112
+ <a name="l00099"></a>00099 gpButton12,
113
+ <a name="l00100"></a>00100 gpButton13,
114
+ <a name="l00101"></a>00101 gpButton14,
115
+ <a name="l00102"></a>00102 gpButton15,
116
+ <a name="l00103"></a>00103 gpRangeEnd = gpButton15,
117
+ <a name="l00104"></a>00104
118
+ <a name="l00105"></a>00105 kbNum = kbRangeEnd - kbRangeBegin + 1,
119
+ <a name="l00106"></a>00106 msNum = msRangeEnd - msRangeBegin + 1,
120
+ <a name="l00107"></a>00107 gpNum = gpRangeEnd - gpRangeBegin + 1,
121
+ <a name="l00108"></a>00108
122
+ <a name="l00109"></a>00109 numButtons = gpRangeEnd + 1,
123
+ <a name="l00110"></a>00110 noButton = 0xffffffff
124
+ <a name="l00111"></a>00111 };
125
+ <a name="l00112"></a>00112 }
126
+ <a name="l00113"></a>00113
127
+ <a name="l00114"></a>00114 <span class="preprocessor">#endif</span>
128
+ </pre></div></div>
129
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by&nbsp;
130
+ <a href="http://www.doxygen.org/index.html">
131
+ <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
132
+ </body>
133
+ </html>
@@ -0,0 +1,133 @@
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 kbNumpad0 = 0x52,
72
+ <a name="l00056"></a>00056 kbNumpad1 = 0x4f,
73
+ <a name="l00057"></a>00057 kbNumpad2 = 0x50,
74
+ <a name="l00058"></a>00058 kbNumpad3 = 0x51,
75
+ <a name="l00059"></a>00059 kbNumpad4 = 0x4b,
76
+ <a name="l00060"></a>00060 kbNumpad5 = 0x4c,
77
+ <a name="l00061"></a>00061 kbNumpad6 = 0x4d,
78
+ <a name="l00062"></a>00062 kbNumpad7 = 0x47,
79
+ <a name="l00063"></a>00063 kbNumpad8 = 0x48,
80
+ <a name="l00064"></a>00064 kbNumpad9 = 0x49,
81
+ <a name="l00065"></a>00065 kbNumpadAdd = 0x4e,
82
+ <a name="l00066"></a>00066 kbNumpadSubtract = 0x4a,
83
+ <a name="l00067"></a>00067 kbNumpadMultiply = 0x37,
84
+ <a name="l00068"></a>00068 kbNumpadDivide = 0xb5,
85
+ <a name="l00069"></a>00069 kbRangeEnd = 0xff,
86
+ <a name="l00070"></a>00070
87
+ <a name="l00071"></a>00071 msRangeBegin,
88
+ <a name="l00072"></a>00072 msLeft = msRangeBegin,
89
+ <a name="l00073"></a>00073 msRight,
90
+ <a name="l00074"></a>00074 msMiddle,
91
+ <a name="l00075"></a>00075 msWheelUp,
92
+ <a name="l00076"></a>00076 msWheelDown,
93
+ <a name="l00077"></a>00077 msRangeEnd,
94
+ <a name="l00078"></a>00078
95
+ <a name="l00079"></a>00079 gpRangeBegin,
96
+ <a name="l00080"></a>00080 gpLeft = gpRangeBegin,
97
+ <a name="l00081"></a>00081 gpRight,
98
+ <a name="l00082"></a>00082 gpUp,
99
+ <a name="l00083"></a>00083 gpDown,
100
+ <a name="l00084"></a>00084 gpButton0,
101
+ <a name="l00085"></a>00085 gpButton1,
102
+ <a name="l00086"></a>00086 gpButton2,
103
+ <a name="l00087"></a>00087 gpButton3,
104
+ <a name="l00088"></a>00088 gpButton4,
105
+ <a name="l00089"></a>00089 gpButton5,
106
+ <a name="l00090"></a>00090 gpButton6,
107
+ <a name="l00091"></a>00091 gpButton7,
108
+ <a name="l00092"></a>00092 gpButton8,
109
+ <a name="l00093"></a>00093 gpButton9,
110
+ <a name="l00094"></a>00094 gpButton10,
111
+ <a name="l00095"></a>00095 gpButton11,
112
+ <a name="l00096"></a>00096 gpButton12,
113
+ <a name="l00097"></a>00097 gpButton13,
114
+ <a name="l00098"></a>00098 gpButton14,
115
+ <a name="l00099"></a>00099 gpButton15,
116
+ <a name="l00100"></a>00100 gpRangeEnd = gpButton15,
117
+ <a name="l00101"></a>00101
118
+ <a name="l00102"></a>00102 kbNum = kbRangeEnd - kbRangeBegin + 1,
119
+ <a name="l00103"></a>00103 msNum = msRangeEnd - msRangeBegin + 1,
120
+ <a name="l00104"></a>00104 gpNum = gpRangeEnd - gpRangeBegin + 1,
121
+ <a name="l00105"></a>00105
122
+ <a name="l00106"></a>00106 numButtons = gpRangeEnd,
123
+ <a name="l00107"></a>00107 noButton = 0xffffffff
124
+ <a name="l00108"></a>00108 };
125
+ <a name="l00109"></a>00109 }
126
+ <a name="l00110"></a>00110
127
+ <a name="l00111"></a>00111 <span class="preprocessor">#endif</span>
128
+ </pre></div></div>
129
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by&nbsp;
130
+ <a href="http://www.doxygen.org/index.html">
131
+ <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
132
+ </body>
133
+ </html>
@@ -0,0 +1,134 @@
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 kbEscape = XK_Escape,
26
+ <a name="l00013"></a>00013 kbF1 = XK_F1,
27
+ <a name="l00014"></a>00014 kbF2 = XK_F2,
28
+ <a name="l00015"></a>00015 kbF3 = XK_F3,
29
+ <a name="l00016"></a>00016 kbF4 = XK_F4,
30
+ <a name="l00017"></a>00017 kbF5 = XK_F5,
31
+ <a name="l00018"></a>00018 kbF6 = XK_F6,
32
+ <a name="l00019"></a>00019 kbF7 = XK_F7,
33
+ <a name="l00020"></a>00020 kbF8 = XK_F8,
34
+ <a name="l00021"></a>00021 kbF9 = XK_F9,
35
+ <a name="l00022"></a>00022 kbF10 = XK_F10,
36
+ <a name="l00023"></a>00023 kbF11 = XK_F11,
37
+ <a name="l00024"></a>00024 kbF12 = XK_F12,
38
+ <a name="l00025"></a>00025 kb1 = XK_1,
39
+ <a name="l00026"></a>00026 kb2 = XK_2,
40
+ <a name="l00027"></a>00027 kb3 = XK_3,
41
+ <a name="l00028"></a>00028 kb4 = XK_4,
42
+ <a name="l00029"></a>00029 kb5 = XK_5,
43
+ <a name="l00030"></a>00030 kb6 = XK_6,
44
+ <a name="l00031"></a>00031 kb7 = XK_7,
45
+ <a name="l00032"></a>00032 kb8 = XK_8,
46
+ <a name="l00033"></a>00033 kb9 = XK_9,
47
+ <a name="l00034"></a>00034 kb0 = XK_0,
48
+ <a name="l00035"></a>00035 kbTab = XK_Tab,
49
+ <a name="l00036"></a>00036 kbReturn = XK_Return,
50
+ <a name="l00037"></a>00037 kbSpace = XK_space,
51
+ <a name="l00038"></a>00038 kbLeftShift = XK_Shift_L,
52
+ <a name="l00039"></a>00039 kbRightShift = XK_Shift_R,
53
+ <a name="l00040"></a>00040 kbLeftControl = XK_Control_L,
54
+ <a name="l00041"></a>00041 kbRightControl = XK_Control_R,
55
+ <a name="l00042"></a>00042 kbLeftAlt = XK_Alt_L,
56
+ <a name="l00043"></a>00043 kbRightAlt = XK_Alt_R,
57
+ <a name="l00044"></a>00044 kbLeftMeta = 0, <span class="comment">// TODO?!</span>
58
+ <a name="l00045"></a>00045 kbRightMeta = 0,
59
+ <a name="l00046"></a>00046 kbBackspace = XK_BackSpace,
60
+ <a name="l00047"></a>00047 kbLeft = XK_Left,
61
+ <a name="l00048"></a>00048 kbRight = XK_Right,
62
+ <a name="l00049"></a>00049 kbUp = XK_Up,
63
+ <a name="l00050"></a>00050 kbDown = XK_Down,
64
+ <a name="l00051"></a>00051 kbHome = XK_Home,
65
+ <a name="l00052"></a>00052 kbEnd = XK_End,
66
+ <a name="l00053"></a>00053 kbInsert = XK_Insert,
67
+ <a name="l00054"></a>00054 kbDelete = XK_Delete,
68
+ <a name="l00055"></a>00055 kbPageUp = XK_Prior,
69
+ <a name="l00056"></a>00056 kbPageDown = XK_Next,
70
+ <a name="l00057"></a>00057 kbEnter = XK_KP_Enter,
71
+ <a name="l00058"></a>00058 kbNumpad1 = XK_KP_1,
72
+ <a name="l00059"></a>00059 kbNumpad2 = XK_KP_2,
73
+ <a name="l00060"></a>00060 kbNumpad3 = XK_KP_3,
74
+ <a name="l00061"></a>00061 kbNumpad4 = XK_KP_4,
75
+ <a name="l00062"></a>00062 kbNumpad5 = XK_KP_5,
76
+ <a name="l00063"></a>00063 kbNumpad6 = XK_KP_6,
77
+ <a name="l00064"></a>00064 kbNumpad7 = XK_KP_7,
78
+ <a name="l00065"></a>00065 kbNumpad8 = XK_KP_8,
79
+ <a name="l00066"></a>00066 kbNumpad9 = XK_KP_9,
80
+ <a name="l00067"></a>00067 kbNumpad0 = XK_KP_0,
81
+ <a name="l00068"></a>00068 kbNumpadAdd = XK_KP_Add,
82
+ <a name="l00069"></a>00069 kbNumpadSubtract = XK_KP_Subtract,
83
+ <a name="l00070"></a>00070 kbNumpadMultiply = XK_KP_Multiply,
84
+ <a name="l00071"></a>00071 kbNumpadDivide = XK_KP_Divide,
85
+ <a name="l00072"></a>00072 kbRangeEnd = 0xffff,
86
+ <a name="l00073"></a>00073
87
+ <a name="l00074"></a>00074 msRangeBegin,
88
+ <a name="l00075"></a>00075 msLeft = msRangeBegin,
89
+ <a name="l00076"></a>00076 msRight,
90
+ <a name="l00077"></a>00077 msMiddle,
91
+ <a name="l00078"></a>00078 msWheelUp,
92
+ <a name="l00079"></a>00079 msWheelDown,
93
+ <a name="l00080"></a>00080 msRangeEnd,
94
+ <a name="l00081"></a>00081
95
+ <a name="l00082"></a>00082 gpRangeBegin,
96
+ <a name="l00083"></a>00083 gpLeft = gpRangeBegin,
97
+ <a name="l00084"></a>00084 gpRight,
98
+ <a name="l00085"></a>00085 gpUp,
99
+ <a name="l00086"></a>00086 gpDown,
100
+ <a name="l00087"></a>00087 gpButton0,
101
+ <a name="l00088"></a>00088 gpButton1,
102
+ <a name="l00089"></a>00089 gpButton2,
103
+ <a name="l00090"></a>00090 gpButton3,
104
+ <a name="l00091"></a>00091 gpButton4,
105
+ <a name="l00092"></a>00092 gpButton5,
106
+ <a name="l00093"></a>00093 gpButton6,
107
+ <a name="l00094"></a>00094 gpButton7,
108
+ <a name="l00095"></a>00095 gpButton8,
109
+ <a name="l00096"></a>00096 gpButton9,
110
+ <a name="l00097"></a>00097 gpButton10,
111
+ <a name="l00098"></a>00098 gpButton11,
112
+ <a name="l00099"></a>00099 gpButton12,
113
+ <a name="l00100"></a>00100 gpButton13,
114
+ <a name="l00101"></a>00101 gpButton14,
115
+ <a name="l00102"></a>00102 gpButton15,
116
+ <a name="l00103"></a>00103 gpRangeEnd = gpButton15,
117
+ <a name="l00104"></a>00104
118
+ <a name="l00105"></a>00105 kbNum = kbRangeEnd - kbRangeBegin + 1,
119
+ <a name="l00106"></a>00106 msNum = msRangeEnd - msRangeBegin + 1,
120
+ <a name="l00107"></a>00107 gpNum = gpRangeEnd - gpRangeBegin + 1,
121
+ <a name="l00108"></a>00108
122
+ <a name="l00109"></a>00109 numButtons = gpRangeEnd,
123
+ <a name="l00110"></a>00110 noButton = 0xffffffff
124
+ <a name="l00111"></a>00111 };
125
+ <a name="l00112"></a>00112 }
126
+ <a name="l00113"></a>00113
127
+ <a name="l00114"></a>00114 <span class="preprocessor">#endif</span>
128
+ <a name="l00115"></a>00115 <span class="preprocessor"></span>
129
+ </pre></div></div>
130
+ <hr size="1"><address style="text-align: right;"><small>Generated on Fri Sep 12 21:50:23 2008 for Gosu by&nbsp;
131
+ <a href="http://www.doxygen.org/index.html">
132
+ <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
133
+ </body>
134
+ </html>
@@ -0,0 +1,169 @@
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 Sep 12 21:50:23 2008 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>