ROSE 0.11.145.192
|
ANSI Color specification for text written to a terminal.
Thread safety: This object uses no global state, but is otherwise not thread-safe except where noted.
#include <Sawyer/Message.h>
Public Member Functions | |
ColorSpec () | |
Constructs an object with default foreground and background colors. | |
ColorSpec (AnsiColor fg) | |
Constructs an object that specifies only a foreground color. | |
ColorSpec (AnsiColor fg, AnsiColor bg, bool bold) | |
Constructs an object with fully-specified colors. | |
bool | isDefault () const |
Returns true if this object is in its default-constructed state. | |
Public Attributes | |
AnsiColor | foreground |
Foreground color, or COLOR_DEFAULT. | |
AnsiColor | background |
Background color, or COLOR_DEFAULT. | |
boost::tribool | bold |
Use ANSI "bold" attribute? | |
|
inline |
Constructs an object with default foreground and background colors.
Definition at line 382 of file Message.h.
References Sawyer::Message::COLOR_DEFAULT.
|
inlineexplicit |
Constructs an object that specifies only a foreground color.
Definition at line 385 of file Message.h.
References Sawyer::Message::COLOR_DEFAULT.
|
inline |
Returns true if this object is in its default-constructed state.
Definition at line 391 of file Message.h.
References Sawyer::Message::COLOR_DEFAULT.
AnsiColor Sawyer::Message::ColorSpec::foreground |
Foreground color, or COLOR_DEFAULT.
AnsiColor Sawyer::Message::ColorSpec::background |
Background color, or COLOR_DEFAULT.
boost::tribool Sawyer::Message::ColorSpec::bold |