Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
terminalpp::attribute Struct Reference

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.
 

Detailed Description

A structure that carries around the presentation attributes of an ANSI element.


The documentation for this struct was generated from the following file: