gosu 0.7.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/COPYING.txt +29 -0
- data/Gosu/Async.hpp +48 -0
- data/Gosu/Audio.hpp +145 -0
- data/Gosu/AutoLink.hpp +16 -0
- data/Gosu/Bitmap.hpp +85 -0
- data/Gosu/ButtonsMac.hpp +114 -0
- data/Gosu/ButtonsWin.hpp +111 -0
- data/Gosu/ButtonsX.hpp +115 -0
- data/Gosu/Color.hpp +172 -0
- data/Gosu/Directories.hpp +36 -0
- data/Gosu/Font.hpp +59 -0
- data/Gosu/Fwd.hpp +31 -0
- data/Gosu/Gosu.hpp +26 -0
- data/Gosu/Graphics.hpp +86 -0
- data/Gosu/GraphicsBase.hpp +45 -0
- data/Gosu/IO.hpp +255 -0
- data/Gosu/Image.hpp +148 -0
- data/Gosu/ImageData.hpp +45 -0
- data/Gosu/Input.hpp +116 -0
- data/Gosu/Math.hpp +95 -0
- data/Gosu/Platform.hpp +61 -0
- data/Gosu/RotFlip.hpp +116 -0
- data/Gosu/Sockets.hpp +129 -0
- data/Gosu/Text.hpp +47 -0
- data/Gosu/TextInput.hpp +57 -0
- data/Gosu/Timing.hpp +16 -0
- data/Gosu/Utility.hpp +24 -0
- data/Gosu/WinUtility.hpp +76 -0
- data/Gosu/Window.hpp +84 -0
- data/GosuImpl/Async.cpp +37 -0
- data/GosuImpl/AudioFmod.cpp +417 -0
- data/GosuImpl/AudioSDL.cpp +255 -0
- data/GosuImpl/DirectoriesMac.mm +38 -0
- data/GosuImpl/DirectoriesUnix.cpp +48 -0
- data/GosuImpl/DirectoriesWin.cpp +42 -0
- data/GosuImpl/FileUnix.cpp +100 -0
- data/GosuImpl/FileWin.cpp +83 -0
- data/GosuImpl/Graphics/Bitmap.cpp +116 -0
- data/GosuImpl/Graphics/BitmapBMP.cpp +232 -0
- data/GosuImpl/Graphics/BitmapColorKey.cpp +39 -0
- data/GosuImpl/Graphics/BitmapPNG.cpp +276 -0
- data/GosuImpl/Graphics/BitmapUtils.cpp +67 -0
- data/GosuImpl/Graphics/BlockAllocator.cpp +127 -0
- data/GosuImpl/Graphics/BlockAllocator.hpp +34 -0
- data/GosuImpl/Graphics/Color.cpp +126 -0
- data/GosuImpl/Graphics/Common.hpp +21 -0
- data/GosuImpl/Graphics/DrawOp.hpp +154 -0
- data/GosuImpl/Graphics/Font.cpp +110 -0
- data/GosuImpl/Graphics/Graphics.cpp +295 -0
- data/GosuImpl/Graphics/Image.cpp +159 -0
- data/GosuImpl/Graphics/LargeImageData.cpp +115 -0
- data/GosuImpl/Graphics/LargeImageData.hpp +37 -0
- data/GosuImpl/Graphics/RotFlip.cpp +184 -0
- data/GosuImpl/Graphics/TexChunk.cpp +77 -0
- data/GosuImpl/Graphics/TexChunk.hpp +40 -0
- data/GosuImpl/Graphics/Text.cpp +223 -0
- data/GosuImpl/Graphics/TextMac.cpp +242 -0
- data/GosuImpl/Graphics/TextPangoFT.cpp +186 -0
- data/GosuImpl/Graphics/TextWin.cpp +172 -0
- data/GosuImpl/Graphics/Texture.cpp +104 -0
- data/GosuImpl/Graphics/Texture.hpp +34 -0
- data/GosuImpl/IO.cpp +48 -0
- data/GosuImpl/InputMac.mm +677 -0
- data/GosuImpl/InputWin.cpp +444 -0
- data/GosuImpl/InputX.cpp +158 -0
- data/GosuImpl/MacUtility.hpp +48 -0
- data/GosuImpl/Math.cpp +49 -0
- data/GosuImpl/RubyGosu.swg +474 -0
- data/GosuImpl/RubyGosuStub.mm +17 -0
- data/GosuImpl/RubyGosu_DllMain.cxx +30 -0
- data/GosuImpl/RubyGosu_wrap.cxx +8521 -0
- data/GosuImpl/RubyGosu_wrap.h +31 -0
- data/GosuImpl/Sockets/CommSocket.cpp +304 -0
- data/GosuImpl/Sockets/ListenerSocket.cpp +60 -0
- data/GosuImpl/Sockets/MessageSocket.cpp +136 -0
- data/GosuImpl/Sockets/Socket.cpp +145 -0
- data/GosuImpl/Sockets/Sockets.hpp +66 -0
- data/GosuImpl/TextInputMac.mm +207 -0
- data/GosuImpl/TextInputWin.cpp +197 -0
- data/GosuImpl/TextInputX.cpp +201 -0
- data/GosuImpl/TextTTFWin.cpp +247 -0
- data/GosuImpl/TimingUnix.cpp +17 -0
- data/GosuImpl/TimingWin.cpp +28 -0
- data/GosuImpl/Utility.cpp +140 -0
- data/GosuImpl/WinMain.cpp +69 -0
- data/GosuImpl/WinUtility.cpp +137 -0
- data/GosuImpl/WindowMac.mm +466 -0
- data/GosuImpl/WindowWin.cpp +447 -0
- data/GosuImpl/WindowX.cpp +392 -0
- data/GosuImpl/X11vroot.h +118 -0
- data/README.txt +13 -0
- data/Rakefile +178 -0
- data/examples/ChipmunkIntegration.rb +275 -0
- data/examples/CptnRuby.rb +231 -0
- data/examples/MoreChipmunkAndRMagick.rb +155 -0
- data/examples/OpenGLIntegration.rb +232 -0
- data/examples/RMagickIntegration.rb +449 -0
- data/examples/TextInput.cpp +170 -0
- data/examples/TextInput.rb +139 -0
- data/examples/Tutorial.cpp +215 -0
- data/examples/Tutorial.rb +137 -0
- data/examples/media/Beep.wav +0 -0
- data/examples/media/CptnRuby Gem.png +0 -0
- data/examples/media/CptnRuby Map.txt +25 -0
- data/examples/media/CptnRuby Tileset.png +0 -0
- data/examples/media/CptnRuby.png +0 -0
- data/examples/media/Cursor.png +0 -0
- data/examples/media/Earth.png +0 -0
- data/examples/media/Explosion.wav +0 -0
- data/examples/media/LargeStar.png +0 -0
- data/examples/media/Sky.jpg +0 -0
- data/examples/media/Smoke.png +0 -0
- data/examples/media/Soldier.png +0 -0
- data/examples/media/Space.png +0 -0
- data/examples/media/Star.png +0 -0
- data/examples/media/Starfighter.bmp +0 -0
- data/linux/Makefile.in +98 -0
- data/linux/configure +5658 -0
- data/linux/configure.ac +126 -0
- data/linux/extconf.rb +11 -0
- data/mac/English.lproj/InfoPlist.strings +0 -0
- data/mac/Gosu-Info.plist +26 -0
- data/mac/Gosu.xcodeproj/project.pbxproj +1194 -0
- data/mac/RubyGosu Template-Info.plist +26 -0
- data/mac/libboost_thread_1_34_1_universal.a +0 -0
- data/mac/libboost_thread_d_1_34_1_universal.a +0 -0
- data/mac/libfmod_universal.a +0 -0
- data/mac/libpng_universal.a +0 -0
- data/mac/libz_universal.a +0 -0
- data/reference/Async_8hpp-source.html +70 -0
- data/reference/Audio_8hpp-source.html +114 -0
- data/reference/Audio_8hpp.html +50 -0
- data/reference/AutoLink_8hpp-source.html +38 -0
- data/reference/AutoLink_8hpp.html +34 -0
- data/reference/Bitmap_8hpp-source.html +85 -0
- data/reference/Bitmap_8hpp.html +58 -0
- data/reference/ButtonsMac_8hpp-source.html +133 -0
- data/reference/ButtonsWin_8hpp-source.html +133 -0
- data/reference/ButtonsX_8hpp-source.html +134 -0
- data/reference/Color_8hpp-source.html +169 -0
- data/reference/Color_8hpp.html +85 -0
- data/reference/Directories_8hpp-source.html +42 -0
- data/reference/Directories_8hpp.html +46 -0
- data/reference/Font_8hpp-source.html +65 -0
- data/reference/Font_8hpp.html +41 -0
- data/reference/Fwd_8hpp-source.html +52 -0
- data/reference/Fwd_8hpp.html +37 -0
- data/reference/Gosu_8hpp-source.html +48 -0
- data/reference/Gosu_8hpp.html +34 -0
- data/reference/GraphicsBase_8hpp-source.html +57 -0
- data/reference/GraphicsBase_8hpp.html +56 -0
- data/reference/Graphics_8hpp-source.html +96 -0
- data/reference/Graphics_8hpp.html +53 -0
- data/reference/IO_8hpp-source.html +255 -0
- data/reference/IO_8hpp.html +74 -0
- data/reference/ImageData_8hpp-source.html +62 -0
- data/reference/ImageData_8hpp.html +43 -0
- data/reference/Image_8hpp-source.html +126 -0
- data/reference/Image_8hpp.html +48 -0
- data/reference/Input_8hpp-source.html +118 -0
- data/reference/Input_8hpp.html +50 -0
- data/reference/Math_8hpp-source.html +92 -0
- data/reference/Math_8hpp.html +74 -0
- data/reference/Platform_8hpp-source.html +83 -0
- data/reference/Platform_8hpp.html +73 -0
- data/reference/RotFlip_8hpp-source.html +138 -0
- data/reference/RotFlip_8hpp.html +77 -0
- data/reference/Sockets_8hpp-source.html +130 -0
- data/reference/Sockets_8hpp.html +66 -0
- data/reference/TextInput_8hpp-source.html +64 -0
- data/reference/TextInput_8hpp.html +41 -0
- data/reference/Text_8hpp-source.html +51 -0
- data/reference/Text_8hpp.html +46 -0
- data/reference/Timing_8hpp-source.html +36 -0
- data/reference/Timing_8hpp.html +42 -0
- data/reference/Utility_8hpp-source.html +44 -0
- data/reference/Utility_8hpp.html +48 -0
- data/reference/WinUtility_8hpp-source.html +79 -0
- data/reference/WinUtility_8hpp.html +64 -0
- data/reference/Window_8hpp-source.html +91 -0
- data/reference/Window_8hpp.html +41 -0
- data/reference/annotated.html +51 -0
- data/reference/classGosu_1_1Audio-members.html +34 -0
- data/reference/classGosu_1_1Audio.html +46 -0
- data/reference/classGosu_1_1Bitmap-members.html +44 -0
- data/reference/classGosu_1_1Bitmap.html +263 -0
- data/reference/classGosu_1_1Buffer-members.html +44 -0
- data/reference/classGosu_1_1Buffer.html +78 -0
- data/reference/classGosu_1_1Buffer.png +0 -0
- data/reference/classGosu_1_1Button-members.html +36 -0
- data/reference/classGosu_1_1Button.html +143 -0
- data/reference/classGosu_1_1Color-members.html +56 -0
- data/reference/classGosu_1_1Color.html +387 -0
- data/reference/classGosu_1_1File-members.html +41 -0
- data/reference/classGosu_1_1File.html +69 -0
- data/reference/classGosu_1_1File.png +0 -0
- data/reference/classGosu_1_1Font-members.html +39 -0
- data/reference/classGosu_1_1Font.html +309 -0
- data/reference/classGosu_1_1Graphics-members.html +50 -0
- data/reference/classGosu_1_1Graphics.html +234 -0
- data/reference/classGosu_1_1Image-members.html +45 -0
- data/reference/classGosu_1_1Image.html +518 -0
- data/reference/classGosu_1_1ImageData-members.html +37 -0
- data/reference/classGosu_1_1ImageData.html +60 -0
- data/reference/classGosu_1_1Input-members.html +44 -0
- data/reference/classGosu_1_1Input.html +223 -0
- data/reference/classGosu_1_1MessageSocket-members.html +40 -0
- data/reference/classGosu_1_1MessageSocket.html +233 -0
- data/reference/classGosu_1_1Resource-members.html +39 -0
- data/reference/classGosu_1_1Resource.html +116 -0
- data/reference/classGosu_1_1Resource.png +0 -0
- data/reference/classGosu_1_1Sample-members.html +37 -0
- data/reference/classGosu_1_1Sample.html +200 -0
- data/reference/classGosu_1_1SampleInstance-members.html +38 -0
- data/reference/classGosu_1_1SampleInstance.html +169 -0
- data/reference/classGosu_1_1Song-members.html +43 -0
- data/reference/classGosu_1_1Song.html +260 -0
- data/reference/classGosu_1_1TextInput-members.html +38 -0
- data/reference/classGosu_1_1TextInput.html +121 -0
- data/reference/classGosu_1_1Window-members.html +50 -0
- data/reference/classGosu_1_1Window.html +271 -0
- data/reference/doxyfile +233 -0
- data/reference/doxygen.css +433 -0
- data/reference/doxygen.png +0 -0
- data/reference/files.html +54 -0
- data/reference/functions.html +236 -0
- data/reference/functions_enum.html +45 -0
- data/reference/functions_func.html +227 -0
- data/reference/functions_vars.html +47 -0
- data/reference/hierarchy.html +53 -0
- data/reference/index.html +26 -0
- data/reference/namespaceGosu.html +2890 -0
- data/reference/namespaceGosu_1_1Colors.html +70 -0
- data/reference/namespaceGosu_1_1Win.html +275 -0
- data/reference/namespacemembers.html +216 -0
- data/reference/namespacemembers_enum.html +52 -0
- data/reference/namespacemembers_eval.html +54 -0
- data/reference/namespacemembers_func.html +185 -0
- data/reference/namespacemembers_type.html +46 -0
- data/reference/namespacemembers_vars.html +46 -0
- data/reference/namespaces.html +35 -0
- data/reference/tab_b.gif +0 -0
- data/reference/tab_l.gif +0 -0
- data/reference/tab_r.gif +0 -0
- data/reference/tabs.css +102 -0
- data/windows/Gosu.sln +29 -0
- data/windows/Gosu.vcproj +553 -0
- data/windows/RubyGosu.vcproj +138 -0
- metadata +305 -0
@@ -0,0 +1,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 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
|
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 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
|
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 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
|
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 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 <boost/cstdint.hpp></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 << 24) | (red << 16) | (green << 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 << 24) | (red << 16) | (green << 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<</span>Channel<span class="keyword">></span>((rep >> 24) & 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<</span>Channel<span class="keyword">></span>((rep >> 16) & 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<</span>Channel<span class="keyword">></span>((rep >> 8) & 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<</span>Channel<span class="keyword">></span>(rep & 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 &= 0x00ffffff;
|
79
|
+
<a name="l00073"></a>00073 rep |= value << 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 &= 0xff00ffff;
|
85
|
+
<a name="l00079"></a>00079 rep |= value << 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 &= 0xffff00ff;
|
91
|
+
<a name="l00085"></a>00085 rep |= value << 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 &= 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 & 0x0000ff00) | blue() << 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() << 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
|
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>
|