|
clutchlog
0.13
|
Background in 256-colors mode. More...
#include <clutchlog.h>
Inheritance diagram for clutchlog::fmt::bg_256:
Collaboration diagram for clutchlog::fmt::bg_256:Background in 256-colors mode.
Definition at line 556 of file clutchlog.h.
Public Member Functions | |
| bg_256 () | |
| Empty constructor: no color. | |
| bg_256 (const short b) | |
| Constructor. More... | |
| bg_256 (const bg &) | |
| Conversion constructor from 16-colors mode. More... | |
Public Member Functions inherited from clutchlog::fmt::color_256 | |
| color_256 (ground t) | |
| Constructor. More... | |
| color_256 (ground t, const short i) | |
| Constructor. More... | |
| bool | is_set () const |
| Returns true if the underying representation encodes an existing color. | |
| std::ostream & | print_on (std::ostream &os) const |
| Print the color index on the given stream. | |
Public Member Functions inherited from clutchlog::fmt::color | |
| color (ansi a, ground g) | |
| Constructor. More... | |
Additional Inherited Members | |
Public Attributes inherited from clutchlog::fmt::color_256 | |
| short | index |
| The encoded color index in 4-bits ANSI. More... | |
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 | ground { fore = 38, back = 48 } |
| Codes for representing foreground or background. | |
|
inline |
Constructor.
| b | Background color index (within [-1,255], -1 being "no color"). |
Definition at line 563 of file clutchlog.h.
|
inline |
Conversion constructor from 16-colors mode.
Definition at line 568 of file clutchlog.h.