]> git.saurik.com Git - wxWidgets.git/blob - src/xpm/rgbtab.h
Themes and threads testing code.
[wxWidgets.git] / src / xpm / rgbtab.h
1 /*
2 * Copyright (C) 1989-94 GROUPE BULL
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to
6 * deal in the Software without restriction, including without limitation the
7 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 * sell copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * GROUPE BULL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20 *
21 * Except as contained in this notice, the name of GROUPE BULL shall not be
22 * used in advertising or otherwise to promote the sale, use or other dealings
23 * in this Software without prior written authorization from GROUPE BULL.
24 */
25
26 /*****************************************************************************\
27 * rgbtab.h *
28 * *
29 * A hard coded rgb.txt. To keep it short I removed all colornames with *
30 * trailing numbers, Blue3 etc, except the GrayXX. Sorry Grey-lovers I prefer *
31 * Gray ;-). But Grey is recognized on lookups, only on save Gray will be *
32 * used, maybe you want to do some substitue there too. *
33 * *
34 * To save memory the RGBs are coded in one long value, as done by the RGB *
35 * macro. *
36 * *
37 * Developed by HeDu 3/94 (hedu@cul-ipn.uni-kiel.de) *
38 \*****************************************************************************/
39
40
41 typedef struct {
42 char *name;
43 COLORREF rgb; /* it's unsigned long */
44 } rgbRecord;
45
46 /*
47 #define myRGB(r,g,b) \
48 ((unsigned long)r<<16|(unsigned long)g<<8|(unsigned long)b)
49 */
50
51 /* Need an RBG conversion confunction here for OS/2 */
52 #if defined(__VISAGECPP__)
53 /* Bogus stuff to make it compile for now */
54 static rgbRecord theRGBRecords[] = { {"AliceBlue", 0L}, {"AntiqueWhite", 1L}, NULL };
55 static int numTheRGBRecords = 2;
56 #else
57 #define myRGB(r,g,b) RGB(r,g,b) /* MSW has this macro */
58
59
60 static rgbRecord theRGBRecords[] =
61 {
62 {"AliceBlue", myRGB(240, 248, 255)},
63 {"AntiqueWhite", myRGB(250, 235, 215)},
64 {"Aquamarine", myRGB(50, 191, 193)},
65 {"Azure", myRGB(240, 255, 255)},
66 {"Beige", myRGB(245, 245, 220)},
67 {"Bisque", myRGB(255, 228, 196)},
68 {"Black", myRGB(0, 0, 0)},
69 {"BlanchedAlmond", myRGB(255, 235, 205)},
70 {"Blue", myRGB(0, 0, 255)},
71 {"BlueViolet", myRGB(138, 43, 226)},
72 {"Brown", myRGB(165, 42, 42)},
73 {"burlywood", myRGB(222, 184, 135)},
74 {"CadetBlue", myRGB(95, 146, 158)},
75 {"chartreuse", myRGB(127, 255, 0)},
76 {"chocolate", myRGB(210, 105, 30)},
77 {"Coral", myRGB(255, 114, 86)},
78 {"CornflowerBlue", myRGB(34, 34, 152)},
79 {"cornsilk", myRGB(255, 248, 220)},
80 {"Cyan", myRGB(0, 255, 255)},
81 {"DarkGoldenrod", myRGB(184, 134, 11)},
82 {"DarkGreen", myRGB(0, 86, 45)},
83 {"DarkKhaki", myRGB(189, 183, 107)},
84 {"DarkOliveGreen", myRGB(85, 86, 47)},
85 {"DarkOrange", myRGB(255, 140, 0)},
86 {"DarkOrchid", myRGB(139, 32, 139)},
87 {"DarkSalmon", myRGB(233, 150, 122)},
88 {"DarkSeaGreen", myRGB(143, 188, 143)},
89 {"DarkSlateBlue", myRGB(56, 75, 102)},
90 {"DarkSlateGray", myRGB(47, 79, 79)},
91 {"DarkTurquoise", myRGB(0, 166, 166)},
92 {"DarkViolet", myRGB(148, 0, 211)},
93 {"DeepPink", myRGB(255, 20, 147)},
94 {"DeepSkyBlue", myRGB(0, 191, 255)},
95 {"DimGray", myRGB(84, 84, 84)},
96 {"DodgerBlue", myRGB(30, 144, 255)},
97 {"Firebrick", myRGB(142, 35, 35)},
98 {"FloralWhite", myRGB(255, 250, 240)},
99 {"ForestGreen", myRGB(80, 159, 105)},
100 {"gainsboro", myRGB(220, 220, 220)},
101 {"GhostWhite", myRGB(248, 248, 255)},
102 {"Gold", myRGB(218, 170, 0)},
103 {"Goldenrod", myRGB(239, 223, 132)},
104 {"Gray", myRGB(126, 126, 126)},
105 {"Gray0", myRGB(0, 0, 0)},
106 {"Gray1", myRGB(3, 3, 3)},
107 {"Gray10", myRGB(26, 26, 26)},
108 {"Gray100", myRGB(255, 255, 255)},
109 {"Gray11", myRGB(28, 28, 28)},
110 {"Gray12", myRGB(31, 31, 31)},
111 {"Gray13", myRGB(33, 33, 33)},
112 {"Gray14", myRGB(36, 36, 36)},
113 {"Gray15", myRGB(38, 38, 38)},
114 {"Gray16", myRGB(41, 41, 41)},
115 {"Gray17", myRGB(43, 43, 43)},
116 {"Gray18", myRGB(46, 46, 46)},
117 {"Gray19", myRGB(48, 48, 48)},
118 {"Gray2", myRGB(5, 5, 5)},
119 {"Gray20", myRGB(51, 51, 51)},
120 {"Gray21", myRGB(54, 54, 54)},
121 {"Gray22", myRGB(56, 56, 56)},
122 {"Gray23", myRGB(59, 59, 59)},
123 {"Gray24", myRGB(61, 61, 61)},
124 {"Gray25", myRGB(64, 64, 64)},
125 {"Gray26", myRGB(66, 66, 66)},
126 {"Gray27", myRGB(69, 69, 69)},
127 {"Gray28", myRGB(71, 71, 71)},
128 {"Gray29", myRGB(74, 74, 74)},
129 {"Gray3", myRGB(8, 8, 8)},
130 {"Gray30", myRGB(77, 77, 77)},
131 {"Gray31", myRGB(79, 79, 79)},
132 {"Gray32", myRGB(82, 82, 82)},
133 {"Gray33", myRGB(84, 84, 84)},
134 {"Gray34", myRGB(87, 87, 87)},
135 {"Gray35", myRGB(89, 89, 89)},
136 {"Gray36", myRGB(92, 92, 92)},
137 {"Gray37", myRGB(94, 94, 94)},
138 {"Gray38", myRGB(97, 97, 97)},
139 {"Gray39", myRGB(99, 99, 99)},
140 {"Gray4", myRGB(10, 10, 10)},
141 {"Gray40", myRGB(102, 102, 102)},
142 {"Gray41", myRGB(105, 105, 105)},
143 {"Gray42", myRGB(107, 107, 107)},
144 {"Gray43", myRGB(110, 110, 110)},
145 {"Gray44", myRGB(112, 112, 112)},
146 {"Gray45", myRGB(115, 115, 115)},
147 {"Gray46", myRGB(117, 117, 117)},
148 {"Gray47", myRGB(120, 120, 120)},
149 {"Gray48", myRGB(122, 122, 122)},
150 {"Gray49", myRGB(125, 125, 125)},
151 {"Gray5", myRGB(13, 13, 13)},
152 {"Gray50", myRGB(127, 127, 127)},
153 {"Gray51", myRGB(130, 130, 130)},
154 {"Gray52", myRGB(133, 133, 133)},
155 {"Gray53", myRGB(135, 135, 135)},
156 {"Gray54", myRGB(138, 138, 138)},
157 {"Gray55", myRGB(140, 140, 140)},
158 {"Gray56", myRGB(143, 143, 143)},
159 {"Gray57", myRGB(145, 145, 145)},
160 {"Gray58", myRGB(148, 148, 148)},
161 {"Gray59", myRGB(150, 150, 150)},
162 {"Gray6", myRGB(15, 15, 15)},
163 {"Gray60", myRGB(153, 153, 153)},
164 {"Gray61", myRGB(156, 156, 156)},
165 {"Gray62", myRGB(158, 158, 158)},
166 {"Gray63", myRGB(161, 161, 161)},
167 {"Gray64", myRGB(163, 163, 163)},
168 {"Gray65", myRGB(166, 166, 166)},
169 {"Gray66", myRGB(168, 168, 168)},
170 {"Gray67", myRGB(171, 171, 171)},
171 {"Gray68", myRGB(173, 173, 173)},
172 {"Gray69", myRGB(176, 176, 176)},
173 {"Gray7", myRGB(18, 18, 18)},
174 {"Gray70", myRGB(179, 179, 179)},
175 {"Gray71", myRGB(181, 181, 181)},
176 {"Gray72", myRGB(184, 184, 184)},
177 {"Gray73", myRGB(186, 186, 186)},
178 {"Gray74", myRGB(189, 189, 189)},
179 {"Gray75", myRGB(191, 191, 191)},
180 {"Gray76", myRGB(194, 194, 194)},
181 {"Gray77", myRGB(196, 196, 196)},
182 {"Gray78", myRGB(199, 199, 199)},
183 {"Gray79", myRGB(201, 201, 201)},
184 {"Gray8", myRGB(20, 20, 20)},
185 {"Gray80", myRGB(204, 204, 204)},
186 {"Gray81", myRGB(207, 207, 207)},
187 {"Gray82", myRGB(209, 209, 209)},
188 {"Gray83", myRGB(212, 212, 212)},
189 {"Gray84", myRGB(214, 214, 214)},
190 {"Gray85", myRGB(217, 217, 217)},
191 {"Gray86", myRGB(219, 219, 219)},
192 {"Gray87", myRGB(222, 222, 222)},
193 {"Gray88", myRGB(224, 224, 224)},
194 {"Gray89", myRGB(227, 227, 227)},
195 {"Gray9", myRGB(23, 23, 23)},
196 {"Gray90", myRGB(229, 229, 229)},
197 {"Gray91", myRGB(232, 232, 232)},
198 {"Gray92", myRGB(235, 235, 235)},
199 {"Gray93", myRGB(237, 237, 237)},
200 {"Gray94", myRGB(240, 240, 240)},
201 {"Gray95", myRGB(242, 242, 242)},
202 {"Gray96", myRGB(245, 245, 245)},
203 {"Gray97", myRGB(247, 247, 247)},
204 {"Gray98", myRGB(250, 250, 250)},
205 {"Gray99", myRGB(252, 252, 252)},
206 {"Green", myRGB(0, 255, 0)},
207 {"GreenYellow", myRGB(173, 255, 47)},
208 {"honeydew", myRGB(240, 255, 240)},
209 {"HotPink", myRGB(255, 105, 180)},
210 {"IndianRed", myRGB(107, 57, 57)},
211 {"ivory", myRGB(255, 255, 240)},
212 {"Khaki", myRGB(179, 179, 126)},
213 {"lavender", myRGB(230, 230, 250)},
214 {"LavenderBlush", myRGB(255, 240, 245)},
215 {"LawnGreen", myRGB(124, 252, 0)},
216 {"LemonChiffon", myRGB(255, 250, 205)},
217 {"LightBlue", myRGB(176, 226, 255)},
218 {"LightCoral", myRGB(240, 128, 128)},
219 {"LightCyan", myRGB(224, 255, 255)},
220 {"LightGoldenrod", myRGB(238, 221, 130)},
221 {"LightGoldenrodYellow", myRGB(250, 250, 210)},
222 {"LightGray", myRGB(168, 168, 168)},
223 {"LightPink", myRGB(255, 182, 193)},
224 {"LightSalmon", myRGB(255, 160, 122)},
225 {"LightSeaGreen", myRGB(32, 178, 170)},
226 {"LightSkyBlue", myRGB(135, 206, 250)},
227 {"LightSlateBlue", myRGB(132, 112, 255)},
228 {"LightSlateGray", myRGB(119, 136, 153)},
229 {"LightSteelBlue", myRGB(124, 152, 211)},
230 {"LightYellow", myRGB(255, 255, 224)},
231 {"LimeGreen", myRGB(0, 175, 20)},
232 {"linen", myRGB(250, 240, 230)},
233 {"Magenta", myRGB(255, 0, 255)},
234 {"Maroon", myRGB(143, 0, 82)},
235 {"MediumAquamarine", myRGB(0, 147, 143)},
236 {"MediumBlue", myRGB(50, 50, 204)},
237 {"MediumForestGreen", myRGB(50, 129, 75)},
238 {"MediumGoldenrod", myRGB(209, 193, 102)},
239 {"MediumOrchid", myRGB(189, 82, 189)},
240 {"MediumPurple", myRGB(147, 112, 219)},
241 {"MediumSeaGreen", myRGB(52, 119, 102)},
242 {"MediumSlateBlue", myRGB(106, 106, 141)},
243 {"MediumSpringGreen", myRGB(35, 142, 35)},
244 {"MediumTurquoise", myRGB(0, 210, 210)},
245 {"MediumVioletRed", myRGB(213, 32, 121)},
246 {"MidnightBlue", myRGB(47, 47, 100)},
247 {"MintCream", myRGB(245, 255, 250)},
248 {"MistyRose", myRGB(255, 228, 225)},
249 {"moccasin", myRGB(255, 228, 181)},
250 {"NavajoWhite", myRGB(255, 222, 173)},
251 {"Navy", myRGB(35, 35, 117)},
252 {"NavyBlue", myRGB(35, 35, 117)},
253 {"OldLace", myRGB(253, 245, 230)},
254 {"OliveDrab", myRGB(107, 142, 35)},
255 {"Orange", myRGB(255, 135, 0)},
256 {"OrangeRed", myRGB(255, 69, 0)},
257 {"Orchid", myRGB(239, 132, 239)},
258 {"PaleGoldenrod", myRGB(238, 232, 170)},
259 {"PaleGreen", myRGB(115, 222, 120)},
260 {"PaleTurquoise", myRGB(175, 238, 238)},
261 {"PaleVioletRed", myRGB(219, 112, 147)},
262 {"PapayaWhip", myRGB(255, 239, 213)},
263 {"PeachPuff", myRGB(255, 218, 185)},
264 {"peru", myRGB(205, 133, 63)},
265 {"Pink", myRGB(255, 181, 197)},
266 {"Plum", myRGB(197, 72, 155)},
267 {"PowderBlue", myRGB(176, 224, 230)},
268 {"purple", myRGB(160, 32, 240)},
269 {"Red", myRGB(255, 0, 0)},
270 {"RosyBrown", myRGB(188, 143, 143)},
271 {"RoyalBlue", myRGB(65, 105, 225)},
272 {"SaddleBrown", myRGB(139, 69, 19)},
273 {"Salmon", myRGB(233, 150, 122)},
274 {"SandyBrown", myRGB(244, 164, 96)},
275 {"SeaGreen", myRGB(82, 149, 132)},
276 {"seashell", myRGB(255, 245, 238)},
277 {"Sienna", myRGB(150, 82, 45)},
278 {"SkyBlue", myRGB(114, 159, 255)},
279 {"SlateBlue", myRGB(126, 136, 171)},
280 {"SlateGray", myRGB(112, 128, 144)},
281 {"snow", myRGB(255, 250, 250)},
282 {"SpringGreen", myRGB(65, 172, 65)},
283 {"SteelBlue", myRGB(84, 112, 170)},
284 {"Tan", myRGB(222, 184, 135)},
285 {"Thistle", myRGB(216, 191, 216)},
286 {"tomato", myRGB(255, 99, 71)},
287 {"Transparent", myRGB(0, 0, 1)},
288 {"Turquoise", myRGB(25, 204, 223)},
289 {"Violet", myRGB(156, 62, 206)},
290 {"VioletRed", myRGB(243, 62, 150)},
291 {"Wheat", myRGB(245, 222, 179)},
292 {"White", myRGB(255, 255, 255)},
293 {"WhiteSmoke", myRGB(245, 245, 245)},
294 {"Yellow", myRGB(255, 255, 0)},
295 {"YellowGreen", myRGB(50, 216, 56)},
296 NULL
297 };
298
299 static int numTheRGBRecords = 234;
300 #endif