Facet class to specify text color for ASCII.
More...
#include <JColorFacet.hh>
|
static std::locale::id | id |
|
Facet class to specify text color for ASCII.
Definition at line 123 of file JColorFacet.hh.
JLANG::JColorFacetASCII::JColorFacetASCII |
( |
std::size_t |
refs = 0 | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 142 of file JColorFacet.hh.
JColorFacet(std::size_t refs=0)
Constructor.
static const char* JLANG::JColorFacetASCII::getName |
( |
| ) |
|
|
inlinestatic |
virtual const char* JLANG::JColorFacetASCII::c_str |
( |
const JColor_t |
color | ) |
const |
|
inlinevirtual |
Print color.
- Parameters
-
- Returns
- text
Implements JLANG::JColorFacet.
Definition at line 153 of file JColorFacet.hh.
156 case RED:
return "\033[91m";
157 case GREEN:
return "\033[92m";
158 case BLUE:
return "\033[94m";
159 case WHITE:
return "\033[97m";
160 case CYAN:
return "\033[96m";
161 case PURPLE:
return "\033[95m";
162 case YELLOW:
return "\033[93m";
163 case BOLD:
return "\033[1m";
164 case RESET:
return "\033[0m";
Clone this facet.
- Returns
- pointer to newly created facet
Implements JLANG::JColorFacet.
Definition at line 175 of file JColorFacet.hh.
JColorFacetASCII(std::size_t refs=0)
Constructor.
static bool JLANG::JColorFacet::is_color |
( |
const int |
color | ) |
|
|
inlinestaticinherited |
Check color.
- Parameters
-
- Returns
- true if color; else false
Definition at line 85 of file JColorFacet.hh.
static bool is_bold(const int color)
Check bold.
static bool is_reset(const int color)
Check reset.
static bool JLANG::JColorFacet::is_bold |
( |
const int |
color | ) |
|
|
inlinestaticinherited |
Check bold.
- Parameters
-
- Returns
- true if bold; else false
Definition at line 97 of file JColorFacet.hh.
static bool JLANG::JColorFacet::is_reset |
( |
const int |
color | ) |
|
|
inlinestaticinherited |
Check reset.
- Parameters
-
- Returns
- true if reset; else false
Definition at line 109 of file JColorFacet.hh.
111 return color ==
RESET;
std::locale::id JLANG::JColorFacet::id |
|
staticinherited |
The documentation for this struct was generated from the following file: