GlsMenu
|
Enumerations | |
enum | Color_t { eCLEAR, eBLACK, eWHITE, eRED, eGREEN, eDARK_GREEN, eLIGHT_GREEN, eBLUE, eYELLOW, ePALE_YELLOW, eCYAN, eMAGENTA, eBROWN, eAMBER, eGREY, LAST_COLOR = eGREY } |
Functions | |
const disti::glsColor & | ColorFromName (const std::string &name) |
Variables | |
static const char * | COLOR_NAME [LAST_COLOR+1] |
Used to convert a string into the proper color enum. More... | |
static const disti::glsColor | COLOR [LAST_COLOR+1] |
Used to convert a color enum into a glsColor value. More... | |
static const disti::glsColor & | CLEAR = COLOR[ eCLEAR ] |
static const disti::glsColor & | BLACK = COLOR[ eBLACK ] |
static const disti::glsColor & | WHITE = COLOR[ eWHITE ] |
static const disti::glsColor & | RED = COLOR[ eRED ] |
static const disti::glsColor & | GREEN = COLOR[ eGREEN ] |
static const disti::glsColor & | DARK_GREEN = COLOR[ eDARK_GREEN ] |
static const disti::glsColor & | LIGHT_GREEN = COLOR[ eLIGHT_GREEN ] |
static const disti::glsColor & | BLUE = COLOR[ eBLUE ] |
static const disti::glsColor & | YELLOW = COLOR[ eYELLOW ] |
static const disti::glsColor & | PALE_YELLOW = COLOR[ ePALE_YELLOW ] |
static const disti::glsColor & | CYAN = COLOR[ eCYAN ] |
static const disti::glsColor & | MAGENTA = COLOR[ eMAGENTA ] |
static const disti::glsColor & | BROWN = COLOR[ eBROWN ] |
static const disti::glsColor & | AMBER = COLOR[ eAMBER ] |
static const disti::glsColor & | GREY = COLOR[ eGREY ] |
Provides a palette of predefined colors.
enum GlsPalette::Color_t |
Enumerator | |
---|---|
eCLEAR | |
eBLACK | |
eWHITE | |
eRED | |
eGREEN | |
eDARK_GREEN | |
eLIGHT_GREEN | |
eBLUE | |
eYELLOW | |
ePALE_YELLOW | |
eCYAN | |
eMAGENTA | |
eBROWN | |
eAMBER | |
eGREY | |
LAST_COLOR |
Definition at line 59 of file gls_palette.h.
|
inline |
Returns a reference to the glsColor with the specified name. If the color cannot be found, BLACK is returned.
Definition at line 139 of file gls_palette.h.
References eBLACK, and LAST_COLOR.
Definition at line 130 of file gls_palette.h.
Definition at line 118 of file gls_palette.h.
Definition at line 124 of file gls_palette.h.
Definition at line 129 of file gls_palette.h.
Definition at line 117 of file gls_palette.h.
|
static |
Used to convert a color enum into a glsColor value.
Definition at line 99 of file gls_palette.h.
|
static |
Used to convert a string into the proper color enum.
Definition at line 80 of file gls_palette.h.
Referenced by operator<<(), and operator>>().
Definition at line 127 of file gls_palette.h.
|
static |
Definition at line 122 of file gls_palette.h.
Definition at line 121 of file gls_palette.h.
Definition at line 131 of file gls_palette.h.
|
static |
Definition at line 123 of file gls_palette.h.
Definition at line 128 of file gls_palette.h.
|
static |
Definition at line 126 of file gls_palette.h.
Definition at line 120 of file gls_palette.h.
Definition at line 119 of file gls_palette.h.
Definition at line 125 of file gls_palette.h.