clutchlog 0.17
|
Interface class for colors representation. More...
#include <clutchlog.h>
Interface class for colors representation.
Definition at line 484 of file clutchlog.h.
Public Member Functions | |
color (ansi a, ground g) | |
Constructor. More... | |
virtual bool | is_set () const =0 |
Should return true if the underying representation encodes an existing color. More... | |
virtual std::ostream & | print_on (std::ostream &os) const =0 |
Should print the underlying representation on the given stream. More... | |
Public Attributes | |
ansi | mode |
enum clutchlog::fmt::color::ground | type |
Type of color (foreground or background). | |
Public Types | |
enum class | ground { fore = 38 , back = 48 } |
Codes for representing foreground or background. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const color &c) |
Print the actually encoded escaped color sequence on the given stream. More... | |
Constructor.
a | ANSI mode (i.e. number of colors). |
g | Color type (i.e. foreground or background). |
Definition at line 498 of file clutchlog.h.
|
pure virtual |
Should return true if the underying representation encodes an existing color.
Implemented in clutchlog::fmt::color_256, and clutchlog::fmt::color_16M.
|
pure virtual |
Should print the underlying representation on the given stream.
Implemented in clutchlog::fmt::color_256, and clutchlog::fmt::color_16M.
|
friend |
Print the actually encoded escaped color sequence on the given stream.
Definition at line 507 of file clutchlog.h.
ansi clutchlog::fmt::color::mode |
Definition at line 485 of file clutchlog.h.
|
strong |
Codes for representing foreground or background.
Definition at line 488 of file clutchlog.h.