clutchlog 0.17
|
background in 256-colors mode. More...
#include <clutchlog.h>
background in 256-colors mode.
Definition at line 678 of file clutchlog.h.
Public Member Functions | |
bg_16M () | |
Empty constructor: no color. More... | |
bg_16M (short r, short g, short b) | |
Numeric triplet constructor. More... | |
bg_16M (const std::string &srgb) | |
Hex triplet string constructor. More... | |
bg_16M (const bg &) | |
Conversion constructor from 16-colors mode. More... | |
Public Member Functions inherited from clutchlog::fmt::color_16M | |
color_16M (ground t) | |
Constructor. More... | |
color_16M (ground t, short r, short g, short b) | |
Numeric triplet constructor. More... | |
color_16M (ground t, const std::string &srgb) | |
Hex triplet string constructor. More... | |
bool | is_set () const |
Returns true if the underying representation encodes an existing color. More... | |
std::ostream & | print_on (std::ostream &os) const |
Print the color RGB triplet on the given stream. More... | |
Public Member Functions inherited from clutchlog::fmt::color | |
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... | |
Additional Inherited Members | |
Public Attributes inherited from clutchlog::fmt::color_16M | |
short | red |
The encoded RGB indices. More... | |
short | green |
short | blue |
Public Attributes inherited from clutchlog::fmt::color | |
ansi | mode |
enum clutchlog::fmt::color::ground | type |
Type of color (foreground or background). | |
Public Types inherited from clutchlog::fmt::color | |
enum class | ground { fore = 38 , back = 48 } |
Codes for representing foreground or background. More... | |
|
inline |
Empty constructor: no color.
Definition at line 680 of file clutchlog.h.
|
inline |
Numeric triplet constructor.
Parameters are expected to be in [0,255].
r | Red color component. |
g | Green color component. |
b | Blue color component. |
Definition at line 690 of file clutchlog.h.
|
inline |
Hex triplet string constructor.
srgb | A "web color" hexadecimal triplet of two characters, starting with a leading number sign (e.g. "#0055ff"). |
Definition at line 698 of file clutchlog.h.
|
inline |
Conversion constructor from 16-colors mode.
Definition at line 703 of file clutchlog.h.