|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Combines foreground, background, and text decorations into a terminal style. More...
#include <style.h>
Public Member Functions | |
| Style () | |
| Default constructor. Initializes with reset colors and no decorations. More... | |
| Style & | fg (Foreground fg) |
| Set the foreground color for this style. More... | |
| Style & | bg (Background bg) |
| Set the background color for this style. More... | |
| Style & | AddDecoration (Decoration decoration) |
| Add a text decoration to this style. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Style &val) |
| Output the style escape sequences to an output stream. Outputs all decorations first, then foreground and background colors. More... | |
Combines foreground, background, and text decorations into a terminal style.
A Style encapsulates the visual properties for terminal output, including the foreground color, background color, and any text decorations (bold, italic, underline, etc.). Provides a fluent interface for chaining method calls.
|
inline |
|
inline |
Add a text decoration to this style.
| decoration | the Decoration to add (bold, italic, underline, etc.) |
|
inline |
Set the background color for this style.
| bg | the Background color to apply |
|
inline |
Set the foreground color for this style.
| fg | the Foreground color to apply |
|
friend |