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

Structure representing a sum type of the available colour styles. More...

#include <colour.hpp>

Public Member Functions

constexpr colour () noexcept
 Default constructs the colour with the "default" ANSI colour.
 
constexpr colour (terminalpp::low_colour col) noexcept
 Constructs a colour with the passed low_colour value.
 
constexpr colour (terminalpp::graphics::colour col) noexcept
 Constructs a colour from an ANSI graphics low colour.
 
constexpr colour (terminalpp::high_colour col) noexcept
 Constructs a colour with the passed high_colour value.
 
constexpr colour (terminalpp::greyscale_colour col) noexcept
 Constructs a colour with the passed greyscale_colour value.
 
constexpr colour (terminalpp::true_colour col) noexcept
 Constructs a colour with the passed true_colour value.
 

Public Attributes

std::variant< low_colour, high_colour, greyscale_colour, true_colourvalue_
 

Friends

std::size_t hash_value (colour const &col) noexcept
 Hash function.
 
constexpr friend auto operator<=> (colour const &lhs, colour const &rhs) noexcept=default
 Comparison operators for colours.
 

Detailed Description

Structure representing a sum type of the available colour styles.


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