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::element Struct Reference

A structure that represents the fundamental printable element of a terminal screen, which comprises a glyph modified by a set of attribute (such as colour, intensity, etc.) More...

#include <element.hpp>

Public Member Functions

constexpr element (terminalpp::glyph gly={}, terminalpp::attribute attr={}) noexcept
 Value Constructor.
 
constexpr element (byte ch, terminalpp::attribute attr={}) noexcept
 Char Constructor.
 

Public Attributes

terminalpp::glyph glyph_
 
terminalpp::attribute attribute_
 

Friends

std::size_t hash_value (element const &elem) noexcept
 Hash function.
 
constexpr friend auto operator<=> (element const &lhs, element const &rhs) noexcept=default
 Relational operators for elements.
 

Detailed Description

A structure that represents the fundamental printable element of a terminal screen, which comprises a glyph modified by a set of attribute (such as colour, intensity, etc.)


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