Sista v3.1.0
C++ lightweight OS-agnostic library for terminal animations and videogames
Loading...
Searching...
No Matches
border.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022-2026 FLAK-ZOSO <mattia.marchese.2006@gmail.com>
3 * SPDX-License-Identifier: GPL-3.0-only
4 */
5
17#pragma once
18
19#include "ansi.hpp"
20#include "coordinates.hpp"
21
30namespace sista {
39 class Border {
40 protected:
41 char symbol;
44 public:
50 Border(char, const ANSISettings&);
52 virtual ~Border() = default;
53
64 virtual void print(bool=true) const;
65 };
66};
ANSI escape code utilities and types for terminal formatting.
Represents a brick of the border with a symbol and ANSI settings.
Definition border.hpp:39
virtual ~Border()=default
Default destructor.
char symbol
Definition border.hpp:41
virtual void print(bool=true) const
Prints the border symbol to the terminal, applying ANSI settings if specified.
Definition border.cpp:25
ANSISettings settings
Definition border.hpp:42
Coordinates struct header file.
Sista library namespace.
Definition ansi.cpp:31
Represents a set of ANSI settings including colors and attributes.
Definition ansi.hpp:492