![]() |
Consolix
|
A utility class for managing text color in streams. More...
#include <ColorManipulator.hpp>
Public Member Functions | |
ColorManipulator (TextColor color) | |
Constructor. | |
TextColor | color () const |
Retrieves the current text color. | |
~ColorManipulator () | |
Destructor that resets the text color to the default. | |
Private Attributes | |
TextColor | m_color |
The current text color. | |
A utility class for managing text color in streams.
This class allows dynamic control of text color when writing to output streams. It resets the color to the default upon destruction.
Definition at line 21 of file ColorManipulator.hpp.
|
inlineexplicit |
Constructor.
color | The desired text color. |
Definition at line 25 of file ColorManipulator.hpp.
|
inline |
Destructor that resets the text color to the default.
Definition at line 32 of file ColorManipulator.hpp.
|
inline |
Retrieves the current text color.
Definition at line 29 of file ColorManipulator.hpp.
|
private |
The current text color.
Definition at line 46 of file ColorManipulator.hpp.