eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4d_scheme.h
Go to the documentation of this file.
1 /**************************************************************************
2 *
3 * Copyright 2014 by Petr Gargulak. eGUI Community.
4 * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc.
5 *
6 ***************************************************************************
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License Version 3
9 * or later (the "LGPL").
10 *
11 * As a special exception, the copyright holders of the eGUI project give you
12 * permission to link the eGUI sources with independent modules to produce an
13 * executable, regardless of the license terms of these independent modules,
14 * and to copy and distribute the resulting executable under terms of your
15 * choice, provided that you also meet, for each linked independent module,
16 * the terms and conditions of the license of that module.
17 * An independent module is a module which is not derived from or based
18 * on this library.
19 * If you modify the eGUI sources, you may extend this exception
20 * to your version of the eGUI sources, but you are not obligated
21 * to do so. If you do not wish to do so, delete this
22 * exception statement from your version.
23 *
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27 *
28 * You should have received a copy of the GNU General Public License
29 * and the GNU Lesser General Public License along with this program.
30 * If not, see <http://www.gnu.org/licenses/>.
31 *
32 ***************************************************************************/
46 #ifndef __D4D_SCHEME_H
47 #define __D4D_SCHEME_H
48 
49 /******************************************************************************
50 * Includes
51 ******************************************************************************/
52 
53 
54 /******************************************************************************
55 * D4D SCHEME setting constants
56 *
57 */
61 //Colors systems definition
72 #define D4D_COLOR_SYSTEM_RGB888 24888
73 #define D4D_COLOR_SYSTEM_RGB666 18666
74 #define D4D_COLOR_SYSTEM_RGB565 16565
75 #define D4D_COLOR_SYSTEM_RGB555 15555
76 #define D4D_COLOR_SYSTEM_RGB332 8332
77 #define D4D_COLOR_SYSTEM_MONO 21
78 
79 
84 #ifndef D4D_COLOR_SYSTEM
85  #define D4D_COLOR_SYSTEM D4D_COLOR_SYSTEM_RGB565
86 #endif
87 
88 //Colors definition
101  #define D4D_COLOR_DARK_BLUE D4D_COLOR_RGB(0, 0, 152)
102  #define D4D_COLOR_BRIGHT_BLUE D4D_COLOR_RGB(222, 219, 255)
103  #define D4D_COLOR_BLUE D4D_COLOR_RGB(0, 0, 255)
104  #define D4D_COLOR_CYAN D4D_COLOR_RGB(0, 255, 255)
105  #define D4D_COLOR_BRIGHT_YELLOW D4D_COLOR_RGB(255, 220, 120)
106  #define D4D_COLOR_YELLOW D4D_COLOR_RGB(255, 255, 0)
107  #define D4D_COLOR_ORANGE D4D_COLOR_RGB(255, 152, 96)
108  #define D4D_COLOR_BRIGHT_RED D4D_COLOR_RGB(255, 28, 24)
109  #define D4D_COLOR_RED D4D_COLOR_RGB(255, 0, 0)
110  #define D4D_COLOR_DARK_RED D4D_COLOR_RGB(152, 0, 0)
111  #define D4D_COLOR_MAGENTA D4D_COLOR_RGB(255, 0, 255)
112  #define D4D_COLOR_BRIGHT_GREEN D4D_COLOR_RGB(152, 255, 152)
113  #define D4D_COLOR_GREEN D4D_COLOR_RGB(0, 255, 0)
114  #define D4D_COLOR_DARK_GREEN D4D_COLOR_RGB(0, 128, 0)
115  #define D4D_COLOR_BRIGHT_GREY D4D_COLOR_RGB(48, 48, 48)
116  #define D4D_COLOR_LIGHT_GREY D4D_COLOR_RGB(120, 120, 120)
117  #define D4D_COLOR_GREY D4D_COLOR_RGB(24, 24, 24)
118  #define D4D_COLOR_WHITE D4D_COLOR_RGB(255, 255, 255)
119  #define D4D_COLOR_BLACK D4D_COLOR_RGB(0, 0, 0)
120 
124 #ifndef D4D_COLOR_FORE_NORM
125  #define D4D_COLOR_FORE_NORM D4D_COLOR_BLACK
126 #endif
127 
130 #ifndef D4D_COLOR_BCKG_NORM
131  #define D4D_COLOR_BCKG_NORM D4D_COLOR_WHITE
132 #endif
133 
136 #ifndef D4D_COLOR_FORE_DISABLED
137  #define D4D_COLOR_FORE_DISABLED D4D_COLOR_GREY
138 #endif
139 
142 #ifndef D4D_COLOR_BCKG_DISABLED
143  #define D4D_COLOR_BCKG_DISABLED D4D_COLOR_LIGHT_GREY
144 #endif
145 
148 #ifndef D4D_COLOR_FORE_FOCUS
149  #define D4D_COLOR_FORE_FOCUS D4D_COLOR_RED
150 #endif
151 
154 #ifndef D4D_COLOR_BCKG_FOCUS
155  #define D4D_COLOR_BCKG_FOCUS D4D_COLOR_LIGHT_GREY
156 #endif
157 
160 #ifndef D4D_COLOR_FORE_CAPTURE
161  #define D4D_COLOR_FORE_CAPTURE D4D_COLOR_BRIGHT_RED
162 #endif
163 
166 #ifndef D4D_COLOR_BCKG_CAPTURE
167  #define D4D_COLOR_BCKG_CAPTURE D4D_COLOR_GREY
168 #endif
169 
172 #ifndef D4D_COLOR_SCR_DESKTOP
173  #define D4D_COLOR_SCR_DESKTOP D4D_COLOR_WHITE
174 #endif
175 
178 #ifndef D4D_COLOR_SCR_OUTLINE
179  #define D4D_COLOR_SCR_OUTLINE D4D_COLOR_LIGHT_GREY
180 #endif
181 
184 #ifndef D4D_COLOR_SCR_TITLEBAR
185  #define D4D_COLOR_SCR_TITLEBAR D4D_COLOR_ORANGE
186 #endif
187 
190 #ifndef D4D_COLOR_SCR_TILTLETEXT
191  #define D4D_COLOR_SCR_TILTLETEXT D4D_COLOR_WHITE
192 #endif
193 
196 #ifndef D4D_COLOR_SCR_EXIT_BTN_FORE
197  #define D4D_COLOR_SCR_EXIT_BTN_FORE D4D_COLOR_WHITE
198 #endif
199 
202 #ifndef D4D_COLOR_SCR_EXIT_BTN_BCKG
203  #define D4D_COLOR_SCR_EXIT_BTN_BCKG D4D_COLOR_BRIGHT_RED
204 #endif
205 
206 
208 /******************************************************************************
209 * Private Constants
210 ******************************************************************************/
211 
212 //******************************************************************************
213 // 24 bit - 888 color space
226 #define D4D_COLOR_RGB888_GET_R(color) ((Byte)((color) >> 16))
227 #define D4D_COLOR_RGB888_GET_G(color) ((Byte)((color) >> 8))
228 #define D4D_COLOR_RGB888_GET_B(color) ((Byte)(color))
229 
230 #define D4D_COLOR_BGR888_GET_B(color) ((Byte)((color) >> 16))
231 #define D4D_COLOR_BGR888_GET_G(color) ((Byte)((color) >> 8))
232 #define D4D_COLOR_BGR888_GET_R(color) ((Byte)(color))
233 
234 
235 #define D4D_COLOR888_GET_R(color) D4D_COLOR_RGB888_GET_R(color)
236 #define D4D_COLOR888_GET_G(color) D4D_COLOR_RGB888_GET_G(color)
237 #define D4D_COLOR888_GET_B(color) D4D_COLOR_RGB888_GET_B(color)
238 
239 #define D4D_COLOR_RGB888(R,G,B) ((LWord)(((R) << 16) + ((G) << 8) + (B)))
240 #define D4D_COLOR_BGR888(R,G,B) ((LWord)(((B) << 16) + ((G) << 8) + (R)))
241 
243 //******************************************************************************
244 // 18 bit - 666 color space
257 #define D4D_COLOR_RGB666_GET_R(color) ((Byte)((((color) >> 12) * 65) / 16))
258 #define D4D_COLOR_RGB666_GET_G(color) ((Byte)(((((color) >> 6) & 0x3f) * 65) / 16))
259 #define D4D_COLOR_RGB666_GET_B(color) ((Byte)((((color) & 0x3f) * 65) / 16))
260 
261 #define D4D_COLOR_BGR666_GET_B(color) ((Byte)((((color) >> 12) * 65) / 16))
262 #define D4D_COLOR_BGR666_GET_G(color) ((Byte)(((((color) >> 6) & 0x3f) * 65) / 16))
263 #define D4D_COLOR_BGR666_GET_R(color) ((Byte)((((color) & 0x3f) * 65) / 16))
264 
265 
266 #define D4D_COLOR666_GET_R(color) D4D_COLOR_RGB666_GET_R(color)
267 #define D4D_COLOR666_GET_G(color) D4D_COLOR_RGB666_GET_G(color)
268 #define D4D_COLOR666_GET_B(color) D4D_COLOR_RGB666_GET_B(color)
269 
270 #define D4D_COLOR_RGB666(R,G,B) ((LWord)((((R) / 4) << 12) + (((G) / 4) << 6) + ((B) / 4)))
271 #define D4D_COLOR_BGR666(R,G,B) ((LWord)((((R) / 4) << 12) + (((G) / 4) << 6) + ((B) / 4)))
272 
273 //******************************************************************************
274 // 16 bit - 565 color space
275 
288 #define D4D_COLOR_RGB565_GET_R(color) ((Byte)((((color) >> 11) * 33) / 4))
289 #define D4D_COLOR_RGB565_GET_G(color) ((Byte)(((((color) >> 5) & 0x3f) * 65) / 16))
290 #define D4D_COLOR_RGB565_GET_B(color) ((Byte)((((color) & 0x1f) * 33) / 4))
291 
292 #define D4D_COLOR_BGR565_GET_B(color) ((Byte)((((color) >> 11) * 33) / 4))
293 #define D4D_COLOR_BGR565_GET_G(color) ((Byte)(((((color) >> 5) & 0x3f) * 65) / 16))
294 #define D4D_COLOR_BGR565_GET_R(color) ((Byte)((((color) & 0x1f) * 33) / 4))
295 
296 
297 #define D4D_COLOR565_GET_R(color) D4D_COLOR_RGB565_GET_R(color)
298 #define D4D_COLOR565_GET_G(color) D4D_COLOR_RGB565_GET_G(color)
299 #define D4D_COLOR565_GET_B(color) D4D_COLOR_RGB565_GET_B(color)
300 
301 #define D4D_COLOR_RGB565(R,G,B) ((Word)((((R) / 8) << 11) + (((G) / 4) << 5) + ((B) / 8)))
302 #define D4D_COLOR_BGR565(R,G,B) ((Word)((((B) / 8) << 11) + (((G) / 4) << 5) + ((R) / 8)))
303 
304 //******************************************************************************
305 // 15 bit - 555 color space
317 #define D4D_COLOR_RGB555_GET_R(color) ((Byte)((((color) >> 10) * 33) / 4))
318 #define D4D_COLOR_RGB555_GET_G(color) ((Byte)(((((color) >> 5) & 0x1f) * 33) / 4))
319 #define D4D_COLOR_RGB555_GET_B(color) ((Byte)((((color) & 0x1f) * 33) / 4))
320 
321 #define D4D_COLOR_BGR555_GET_B(color) ((Byte)((((color) >> 10) * 33) / 4))
322 #define D4D_COLOR_BGR555_GET_G(color) ((Byte)(((((color) >> 5) & 0x1f) * 33) / 4))
323 #define D4D_COLOR_BGR555_GET_R(color) ((Byte)((((color) & 0x1f) * 33) / 4))
324 
325 
326 #define D4D_COLOR555_GET_R(color) D4D_COLOR_RGB555_GET_R(color)
327 #define D4D_COLOR555_GET_G(color) D4D_COLOR_RGB555_GET_G(color)
328 #define D4D_COLOR555_GET_B(color) D4D_COLOR_RGB555_GET_B(color)
329 
330 #define D4D_COLOR_RGB555(R,G,B) ((Word)((((R) / 8) << 10) + (((G) / 8) << 5) + ((B) / 8)))
331 #define D4D_COLOR_BGR555(R,G,B) ((Word)((((B) / 8) << 10) + (((G) / 8) << 5) + ((R) / 8)))
332 
333 //******************************************************************************
334 // 8 bit - 332 color space
335 
347 #define D4D_COLOR_RGB332_GET_R(color) ((Byte)(((((color) >> 5) & 0x07) * 73) / 2))
348 #define D4D_COLOR_RGB332_GET_G(color) ((Byte)(((((color) >> 2) & 0x07) * 73) / 2))
349 #define D4D_COLOR_RGB332_GET_B(color) ((Byte)((((color) & 0x03) * 170) / 2))
350 
351 #define D4D_COLOR_BGR332_GET_B(color) ((Byte)(((((color) >> 5) & 0x07) * 73) / 2))
352 #define D4D_COLOR_BGR332_GET_G(color) ((Byte)(((((color) >> 2) & 0x07) * 73) / 2))
353 #define D4D_COLOR_BGR332_GET_R(color) ((Byte)((((color) & 0x03) * 170) / 2))
354 
355 
356 #define D4D_COLOR332_GET_R(color) D4D_COLOR_RGB332_GET_R(color)
357 #define D4D_COLOR332_GET_G(color) D4D_COLOR_RGB332_GET_G(color)
358 #define D4D_COLOR332_GET_B(color) D4D_COLOR_RGB332_GET_B(color)
359 
360 #define D4D_COLOR_RGB332(R,G,B) ((Byte)((((R) / 32) << 5) + (((G) / 32) << 2) + ((B) / 64)))
361 #define D4D_COLOR_BGR332(R,G,B) ((Byte)((((B) / 32) << 5) + (((G) / 32) << 2) + ((R) / 64)))
362 
363 //******************************************************************************
364 // 1 bit - monochrome color space
365 
377 #ifndef D4D_COLORMONO_THRESHOLD
378  #define D4D_COLORMONO_THRESHOLD 128
379 #endif
380 
381 #define D4D_COLORMONO_GET_R(color) ((Byte)((color > D4D_COLORMONO_THRESHOLD)? 0xFF:0))
382 #define D4D_COLORMONO_GET_G(color) ((Byte)((color > D4D_COLORMONO_THRESHOLD)? 0xFF:0))
383 #define D4D_COLORMONO_GET_B(color) ((Byte)((color > D4D_COLORMONO_THRESHOLD)? 0xFF:0))
384 
385 #define D4D_COLOR_RGBMONO(R,G,B) ((D4D_COLOR)(((((R) + (G) + (B)) / 3) & 0xff) > D4D_COLORMONO_THRESHOLD)? 0xff:0)
386 
387 //******************************************************************************
388 // Current color system definition
389 
390 #if D4D_COLOR_SYSTEM == D4D_COLOR_SYSTEM_RGB888
391 // comented just 888 color system due to Doxygen requirements
392 
404  #define D4D_COLOR_RGB(R,G,B) D4D_COLOR_RGB888(R,G,B)
405 
406  #define D4D_COLOR_GET_R(color) D4D_COLOR888_GET_R(color)
407  #define D4D_COLOR_GET_G(color) D4D_COLOR888_GET_G(color)
408  #define D4D_COLOR_GET_B(color) D4D_COLOR888_GET_B(color)
409 
410  #define D4D_COLOR_FROM_888(color888) (color888)
411  #define D4D_COLOR_FROM_666(color666) D4D_COLOR_RGB(D4D_COLOR666_GET_R((color666)), D4D_COLOR666_GET_G((color666)), D4D_COLOR666_GET_B((color666)))
412  #define D4D_COLOR_FROM_565(color565) D4D_COLOR_RGB(D4D_COLOR565_GET_R((color565)), D4D_COLOR565_GET_G((color565)), D4D_COLOR565_GET_B((color565)))
413  #define D4D_COLOR_FROM_555(color555) D4D_COLOR_RGB(D4D_COLOR555_GET_R((color555)), D4D_COLOR555_GET_G((color555)), D4D_COLOR555_GET_B((color555)))
414  #define D4D_COLOR_FROM_332(color332) D4D_COLOR_RGB(D4D_COLOR332_GET_R((color332)), D4D_COLOR332_GET_G((color332)), D4D_COLOR332_GET_B((color332)))
415 
417 #elif D4D_COLOR_SYSTEM == D4D_COLOR_SYSTEM_RGB666
418 
419  #define D4D_COLOR_RGB(R,G,B) D4D_COLOR_RGB666(R,G,B)
420 
421  #define D4D_COLOR_GET_R(color) D4D_COLOR666_GET_R(color)
422  #define D4D_COLOR_GET_G(color) D4D_COLOR666_GET_G(color)
423  #define D4D_COLOR_GET_B(color) D4D_COLOR666_GET_B(color)
424 
425  #define D4D_COLOR_FROM_888(color888) D4D_COLOR_RGB(D4D_COLOR888_GET_R((color888)), D4D_COLOR888_GET_G((color888)), D4D_COLOR888_GET_B((color888)))
426  #define D4D_COLOR_FROM_666(color666) (color666)
427  #define D4D_COLOR_FROM_565(color565) D4D_COLOR_RGB(D4D_COLOR565_GET_R((color565)), D4D_COLOR565_GET_G((color565)), D4D_COLOR565_GET_B((color565)))
428  #define D4D_COLOR_FROM_555(color555) D4D_COLOR_RGB(D4D_COLOR555_GET_R((color555)), D4D_COLOR555_GET_G((color555)), D4D_COLOR555_GET_B((color555)))
429  #define D4D_COLOR_FROM_332(color332) D4D_COLOR_RGB(D4D_COLOR332_GET_R((color332)), D4D_COLOR332_GET_G((color332)), D4D_COLOR332_GET_B((color332)))
430 
431 
432 #elif D4D_COLOR_SYSTEM == D4D_COLOR_SYSTEM_RGB565
433 
434  #define D4D_COLOR_RGB(R,G,B) D4D_COLOR_RGB565(R,G,B)
435 
436  #define D4D_COLOR_GET_R(color) D4D_COLOR565_GET_R(color)
437  #define D4D_COLOR_GET_G(color) D4D_COLOR565_GET_G(color)
438  #define D4D_COLOR_GET_B(color) D4D_COLOR565_GET_B(color)
439 
440  #define D4D_COLOR_FROM_888(color888) D4D_COLOR_RGB(D4D_COLOR888_GET_R((color888)), D4D_COLOR888_GET_G((color888)), D4D_COLOR888_GET_B((color888)))
441  #define D4D_COLOR_FROM_666(color666) D4D_COLOR_RGB(D4D_COLOR666_GET_R((color666)), D4D_COLOR666_GET_G((color666)), D4D_COLOR666_GET_B((color666)))
442  #define D4D_COLOR_FROM_565(color565) (color565)
443  #define D4D_COLOR_FROM_555(color555) D4D_COLOR_RGB(D4D_COLOR555_GET_R((color555)), D4D_COLOR555_GET_G((color555)), D4D_COLOR555_GET_B((color555)))
444  #define D4D_COLOR_FROM_332(color332) D4D_COLOR_RGB(D4D_COLOR332_GET_R((color332)), D4D_COLOR332_GET_G((color332)), D4D_COLOR332_GET_B((color332)))
445 
446 #elif D4D_COLOR_SYSTEM == D4D_COLOR_SYSTEM_RGB555
447 
448  #define D4D_COLOR_RGB(R,G,B) D4D_COLOR_RGB555(R,G,B)
449 
450 
451  #define D4D_COLOR_GET_R(color) D4D_COLOR555_GET_R(color)
452  #define D4D_COLOR_GET_G(color) D4D_COLOR555_GET_G(color)
453  #define D4D_COLOR_GET_B(color) D4D_COLOR555_GET_B(color)
454 
455  #define D4D_COLOR_FROM_888(color888) D4D_COLOR_RGB(D4D_COLOR888_GET_R((color888)), D4D_COLOR888_GET_G((color888)), D4D_COLOR888_GET_B((color888)))
456  #define D4D_COLOR_FROM_666(color666) D4D_COLOR_RGB(D4D_COLOR666_GET_R((color666)), D4D_COLOR666_GET_G((color666)), D4D_COLOR666_GET_B((color666)))
457  #define D4D_COLOR_FROM_565(color565) D4D_COLOR_RGB(D4D_COLOR565_GET_R((color565)), D4D_COLOR565_GET_G((color565)), D4D_COLOR565_GET_B((color565)))
458  #define D4D_COLOR_FROM_555(color555) (color555)
459  #define D4D_COLOR_FROM_332(color332) D4D_COLOR_RGB(D4D_COLOR332_GET_R((color332)), D4D_COLOR332_GET_G((color332)), D4D_COLOR332_GET_B((color332)))
460 
461 #elif D4D_COLOR_SYSTEM == D4D_COLOR_SYSTEM_RGB332
462 
463  #define D4D_COLOR_RGB(R,G,B) D4D_COLOR_RGB332(R,G,B)
464 
465 
466  #define D4D_COLOR_GET_R(color) D4D_COLOR332_GET_R(color)
467  #define D4D_COLOR_GET_G(color) D4D_COLOR332_GET_G(color)
468  #define D4D_COLOR_GET_B(color) D4D_COLOR332_GET_B(color)
469 
470  #define D4D_COLOR_FROM_888(color888) D4D_COLOR_RGB(D4D_COLOR888_GET_R((color888)), D4D_COLOR888_GET_G((color888)), D4D_COLOR888_GET_B((color888)))
471  #define D4D_COLOR_FROM_666(color666) D4D_COLOR_RGB(D4D_COLOR666_GET_R((color666)), D4D_COLOR666_GET_G((color666)), D4D_COLOR666_GET_B((color666)))
472  #define D4D_COLOR_FROM_565(color565) D4D_COLOR_RGB(D4D_COLOR565_GET_R((color565)), D4D_COLOR565_GET_G((color565)), D4D_COLOR565_GET_B((color565)))
473  #define D4D_COLOR_FROM_555(color555) D4D_COLOR_RGB(D4D_COLOR555_GET_R((color555)), D4D_COLOR555_GET_G((color555)), D4D_COLOR555_GET_B((color555)))
474  #define D4D_COLOR_FROM_332(color332) (color332)
475 
476 #elif D4D_COLOR_SYSTEM == D4D_COLOR_SYSTEM_MONO
477 
478  #define D4D_COLOR_RGB(R,G,B) D4D_COLOR_RGBMONO(R,G,B)
479 
480  #define D4D_COLOR_GET_R(color) D4D_COLORMONO_GET_R(color)
481  #define D4D_COLOR_GET_G(color) D4D_COLORMONO_GET_G(color)
482  #define D4D_COLOR_GET_B(color) D4D_COLORMONO_GET_B(color)
483 
484  #define D4D_COLOR_FROM_888(color888) D4D_COLOR_RGB(D4D_COLOR888_GET_R((color888)), D4D_COLOR888_GET_G((color888)), D4D_COLOR888_GET_B((color888)))
485  #define D4D_COLOR_FROM_666(color666) D4D_COLOR_RGB(D4D_COLOR666_GET_R((color666)), D4D_COLOR666_GET_G((color666)), D4D_COLOR666_GET_B((color666)))
486  #define D4D_COLOR_FROM_565(color565) D4D_COLOR_RGB(D4D_COLOR565_GET_R((color565)), D4D_COLOR565_GET_G((color565)), D4D_COLOR565_GET_B((color565)))
487  #define D4D_COLOR_FROM_555(color555) D4D_COLOR_RGB(D4D_COLOR555_GET_R((color555)), D4D_COLOR555_GET_G((color555)), D4D_COLOR555_GET_B((color555)))
488  #define D4D_COLOR_FROM_332(color332) D4D_COLOR_RGB(D4D_COLOR332_GET_R((color332)), D4D_COLOR332_GET_G((color332)), D4D_COLOR332_GET_B((color332)))
489  #define D4D_COLOR_FROM_MONO(colorMono) (colorMono)
490 #else
491  #error The D4D color system (D4D_COLOR_SYSTEM) is not supported. Select supported one.
492 #endif
493 
494 
495 
496 
497 /******************************************************************************
498 * Types
499 ******************************************************************************/
500 
501 /******************************************************************************
502 * D4D Scheme types
503 *
504 */
511 typedef struct
512 {
520 
523 typedef struct
524 {
528 
531 typedef struct
532 {
538 
541 typedef struct
542 {
545 
548 typedef struct
549 {
552 
555 typedef struct
556 {
561 
565 typedef struct
566 {
573 
578 typedef struct D4D_CLR_SCHEME_S
579 {
591 
593 
596 /******************************************************************************
597 * D4D SCHEME setting macros
598 *
599 */
635 #define D4D_DECLARE_CLR_SCHEME(name, \
636  scrDesktop, scrOutline, scrTitleBar, scrTitleText, scrExitBtnFore, scrExitBtnBckg,\
637  objBckg, objBckgDis, objBckgFocus, objBckgCapture,\
638  objFore, objForeDis, objForeFocus, objForeCapture,\
639  gaugHub, gaugPointer,\
640  sldrBarBckg, sldrBar, sldrBarStart, sldrBarEnd,\
641  iconBckg,\
642  graphGrid,\
643  prgrsBarBarBckg, prgrsBarBar, prgrsBarBarEnd\
644  )\
645  static const D4D_CLR_SCHEME name = \
646  { \
647  { scrDesktop, scrOutline, scrTitleBar, scrTitleText, scrExitBtnFore , scrExitBtnBckg}, \
648  objBckg, objBckgDis, objBckgFocus, objBckgCapture,\
649  objFore, objForeDis, objForeFocus, objForeCapture,\
650  {\
651  {gaugHub, gaugPointer },\
652  {sldrBarBckg, sldrBar, sldrBarStart, sldrBarEnd },\
653  {iconBckg },\
654  {graphGrid },\
655  {prgrsBarBarBckg, prgrsBarBar, prgrsBarBarEnd }\
656  }\
657  };
658 
688 #define D4D_DECLARE_CLR_SCHEME_INRAM(name, \
689  scrDesktop, scrOutline, scrTitleBar, scrTitleText, scrExitBtnFore, scrExitBtnBckg,\
690  objBckg, objBckgDis, objBckgFocus, objBckgCapture,\
691  objFore, objForeDis, objForeFocus, objForeCapture,\
692  gaugHub, gaugPointer,\
693  sldrBarBckg, sldrBar, sldrBarStart, sldrBarEnd,\
694  iconBckg,\
695  graphGrid,\
696  prgrsBarBarBckg, prgrsBarBar, prgrsBarBarEnd\
697  )\
698  D4D_CLR_SCHEME name = \
699  { \
700  { scrDesktop, scrOutline, scrTitleBar, scrTitleText, scrExitBtnFore , scrExitBtnBckg}, \
701  objBckg, objBckgDis, objBckgFocus, objBckgCapture,\
702  objFore, objForeDis, objForeFocus, objForeCapture,\
703  {\
704  {gaugHub, gaugPointer },\
705  {sldrBarBckg, sldrBar, sldrBarStart, sldrBarEnd },\
706  {iconBckg },\
707  {graphGrid },\
708  {prgrsBarBarBckg, prgrsBarBar, prgrsBarBarEnd }\
709  }\
710  };
711 
713 /******************************************************************************
714 * Global variables
715 ******************************************************************************/
716 
717 
718 /******************************************************************************
719 * Global functions
720 ******************************************************************************/
721 
722 
723 #endif /* __D4D_SCHEME_H */
D4D_COLOR foreDis
The object fore color in disabled state.
Definition: d4d_scheme.h:586
D4D_CLR_SCHEME_OBJ objectDepend
Sub structure of object non standard colors.
Definition: d4d_scheme.h:589
This structure contains specific colors (non-standard) for the graph object.
Definition: d4d_scheme.h:548
D4D_COLOR pointer
The gauge pointer color.
Definition: d4d_scheme.h:526
This structure contains all object dependent colors of the color scheme in the D4D. It is divided into the small objects that describe structures containing individual colors.
Definition: d4d_scheme.h:565
D4D_COLOR barFore
The slider bar fore color.
Definition: d4d_scheme.h:534
D4D_CLR_SCHEME_GAUG gauge
The non standard colors of gauge object.
Definition: d4d_scheme.h:567
D4D_COLOR fore
The object fore color in standard state.
Definition: d4d_scheme.h:585
D4D_COLOR barEnd
The slider bar fore end color for case that the D4D_SLDR_F_BAR_SCALECOLOR flag is enabled...
Definition: d4d_scheme.h:536
struct D4D_CLR_SCHEME_S D4D_CLR_SCHEME
This is the main structure of the color scheme in the D4D. It contains all the necessary colors to ru...
D4D_CLR_SCHEME_CHECKB checkBox
The non standard colors of check box object.
Definition: d4d_scheme.h:569
D4D_COLOR barBckg
The slider bar background color.
Definition: d4d_scheme.h:533
D4D_COLOR iconBckg
The checkbox background of icon.
Definition: d4d_scheme.h:543
This structure contains specific colors (non-standard) for the gauge object.
Definition: d4d_scheme.h:523
D4D_COLOR grid
The graph grid color.
Definition: d4d_scheme.h:550
This structure contains specific colors (non-standard) for the progress bar object.
Definition: d4d_scheme.h:555
This is the main structure of the color scheme in the D4D. It contains all the necessary colors to ru...
Definition: d4d_scheme.h:578
D4D_COLOR exitBtnBckg
Background color of screen exit button (if enabled)
Definition: d4d_scheme.h:518
D4D_CLR_SCHEME_GRAPH graph
The non standard colors of graph object.
Definition: d4d_scheme.h:570
D4D_COLOR bckgFocus
The object background color in focused state.
Definition: d4d_scheme.h:583
D4D_COLOR title_text
Color of screen title bar text (if enabled)
Definition: d4d_scheme.h:516
This structure contains specific colors (non-standard) for the check box object.
Definition: d4d_scheme.h:541
D4D_COLOR exitBtnFore
Fore color of screen exit button.
Definition: d4d_scheme.h:517
D4D_CLR_SCHEME_SCR screen
Sub structure of screen colors.
Definition: d4d_scheme.h:580
D4D_COLOR outline
Color of screen outline (if enabled)
Definition: d4d_scheme.h:514
D4D_CLR_SCHEME_SLDR slider
The non standard colors of slider object.
Definition: d4d_scheme.h:568
D4D_COLOR title_bar
Color of screen title bar (if enabled)
Definition: d4d_scheme.h:515
D4D_COLOR barStart
The slider bar fore start color for case that the D4D_SLDR_F_BAR_SCALECOLOR flag is enabled...
Definition: d4d_scheme.h:535
This structure contains specific colors (non-standard) for the slider object.
Definition: d4d_scheme.h:531
This is the structure of the color scheme for screens in the D4D. It contains all the necessary color...
Definition: d4d_scheme.h:511
D4D_COLOR hub
The gauge hub color.
Definition: d4d_scheme.h:525
D4D_COLOR bckg
The object background color in standard state.
Definition: d4d_scheme.h:581
D4D_COLOR bckgCapture
The object background color in captured state.
Definition: d4d_scheme.h:584
D4D_COLOR desktop
Color of screen desktop.
Definition: d4d_scheme.h:513
D4D_CLR_SCHEME_PRGRS_BAR progressBar
The non standard colors of progerss bar object.
Definition: d4d_scheme.h:571
LWord D4D_COLOR
Type definition of eGUI color variables.
Definition: d4d_types.h:262
const D4D_CLR_SCHEME * D4D_CLR_SCHEME_PTR
Definition: d4d_scheme.h:592
D4D_COLOR bckgDis
The object background color in disabled state.
Definition: d4d_scheme.h:582
D4D_COLOR foreFocus
The object fore color in focused state.
Definition: d4d_scheme.h:587
D4D_COLOR foreCapture
The object fore color in captured state.
Definition: d4d_scheme.h:588