Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
|
A structure that carries around the character attributes of an ANSI element. More...
#include <glyph.hpp>
Public Member Functions | |
constexpr | glyph (byte const character=detail::ascii::space, character_set const charset=character_set()) noexcept |
Default Constructor. | |
constexpr | glyph (byte const (&text)[2]) noexcept |
Constructs a UTF-8 glyph from a char sequence. | |
constexpr | glyph (byte const (&text)[3]) noexcept |
Constructs a UTF-8 glyph from a char sequence. | |
constexpr | glyph (byte const (&text)[4]) noexcept |
Constructs a UTF-8 glyph from a char sequence. | |
constexpr | glyph (char8_t const (&text)[2]) noexcept |
Constructs a UTF-8 glyph from a char sequence. | |
constexpr | glyph (char8_t const (&text)[3]) noexcept |
Constructs a UTF-8 glyph from a char sequence. | |
constexpr | glyph (char8_t const (&text)[4]) noexcept |
Constructs a UTF-8 glyph from a char sequence. | |
template<class T = void> | |
constexpr | glyph (char const *ustr) noexcept |
Constructs a UTF-8 glyph from a char sequence. | |
Public Attributes | ||
union { | ||
byte character_ | ||
byte ucharacter_ [3] | ||
}; | ||
character_set | charset_ | |
Friends | |
TERMINALPP_EXPORT constexpr friend auto | operator<=> (glyph const &lhs, glyph const &rhs) noexcept |
Relational operators for glyphs. | |
TERMINALPP_EXPORT constexpr friend bool | operator== (glyph const &lhs, glyph const &rhs) noexcept |
Equality operator. | |
constexpr friend bool | operator< (glyph const &lhs, glyph const &rhs) noexcept |
Less-than operator. | |
std::size_t | hash_value (glyph const &gly) noexcept |
Hash function. | |
A structure that carries around the character attributes of an ANSI element.
|
inlineconstexprnoexcept |
Default Constructor.
Constructs a UTF-8 glyph from a char sequence.