Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
|
A structure that carries around the presentation attributes of an ANSI element. More...
#include <attribute.hpp>
Public Member Functions | |
constexpr | attribute (colour foreground_colour=colour(), colour background_colour=colour(), intensity intensity_effect=graphics::intensity::normal, underlining underlining_effect=graphics::underlining::not_underlined, polarity polarity_effect=graphics::polarity::positive, blinking blink_effect=graphics::blinking::steady) noexcept |
Initialises the attribute with the colours and effects specified. | |
Public Attributes | |
colour | foreground_colour_ |
colour | background_colour_ |
intensity | intensity_ |
underlining | underlining_ |
polarity | polarity_ |
blinking | blinking_ |
Friends | |
std::size_t | hash_value (attribute const &attr) noexcept |
Hash function. | |
constexpr friend auto | operator<=> (attribute const &lhs, attribute const &rhs) noexcept=default |
Relational operators for attributes. | |
A structure that carries around the presentation attributes of an ANSI element.