Simple map for colors (maps a color constant string to the corresponding color of the output format).
More...
#include <colormap.h>
|
|
K | keys |
| | STL member.
|
|
T | elements |
| | STL member.
|
|
|
string | default_color |
| | when no color corresponds to the requested one
|
Simple map for colors (maps a color constant string to the corresponding color of the output format).
◆ getColor()
| const string srchilite::ColorMap::getColor |
( |
const string & | key | ) |
|
|
inline |
- Parameters
-
| key | the color we're looking for |
- Returns
- the color corresponding to the specified key, or the default color if we don't have the requested key
◆ setDefault()
| void srchilite::ColorMap::setDefault |
( |
const string & | d | ) |
|
|
inline |
Sets the default color.
- Parameters
-
The documentation for this class was generated from the following file:
- /cygdrive/d/a/scallywag/source-highlight/source-highlight-3.1.9-1.x86_64/src/source-highlight-3.1.9/lib/srchilite/colormap.h