Represents a brick of the border with a symbol and ANSI settings.
More...
#include <border.hpp>
|
| Border (char, const ANSISettings &) |
| Constructor to initialize the border with a symbol and ANSI settings.
|
|
virtual void | print (bool=true) const |
| Prints the border symbol to the terminal, applying ANSI settings if specified.
|
|
Represents a brick of the border with a symbol and ANSI settings.
The Border class encapsulates a character symbol and its associated ANSI settings, allowing for the representation and printing of border "bricks" in a terminal.
- See also
- ANSISettings
◆ Border()
sista::Border::Border |
( |
char |
symbol_, |
|
|
const ANSISettings & |
settings_ |
|
) |
| |
Constructor to initialize the border with a symbol and ANSI settings.
The ANSI settings for the border brick.
- Parameters
-
symbol_ | The character symbol for the border brick. |
settings_ | The ANSISettings for the border brick. |
◆ print()
void sista::Border::print |
( |
bool |
apply_settings = true | ) |
const |
|
virtual |
Prints the border symbol to the terminal, applying ANSI settings if specified.
- Parameters
-
apply_settings | If true, applies the ANSI settings before printing the symbol. |
This method prints the border's symbol to the terminal. If apply_settings is true, it first applies the stored ANSI settings (foreground color, background color, and attribute) to ensure the symbol is displayed with the desired formatting.
- See also
- ANSISettings::apply
◆ settings
The character symbol representing the border brick.
◆ symbol
char sista::Border::symbol |
|
protected |
The documentation for this class was generated from the following files: