|
cxWidgets 1.0
|

Go to the source code of this file.
Namespaces | |
| namespace | cx |
| cxBorderChars.h - Defines border characters to be used in drawing a box (i.e., in cxWindow and all its derivitives) | |
Macros | |
| #define | cxCOLOR_BRIGHT 1 |
| cxColors.h - contains an enumeration of the colors available for the cxWidgets objects. | |
| #define cxCOLOR_BRIGHT 1 |
cxColors.h - contains an enumeration of the colors available for the cxWidgets objects.
Note: These are arranged so that the odd ones are bright (w/ the A_BOLD attribute set) - odd ones will have the rightmost bit (the one bit) set to 1.
Note to programmers: If you add a color, make sure to edit the init() function in cxBase.cpp and use init_pair() to initialize the ncurses color pair. Also, make sure bright colors are odd and non-bright colors are even - cxWindow and other classes that display text use the ones bit (LSB) to check for brightness - if it's 1, then the A_BOLD attribute will be used, effectively making the text a bright version of the color that is set.
Note that the total possible number of colors that ncurses can handle is fairly limited. Currently there are more colors listed here than ncurses can handle, so the ones near the end of the list won't actually work correctly. In Fedora Core 4, with a version of ncurses current as of 10/12/05, the number of possible colors is 63.
Copyright (C) 2005-2007 Michael H. Kinney