#include <ttx/graphics_rendition.h>
|
enum class | Type { Default
, Palette
, Custom
} |
|
enum | Palette : u8 {
Black
, Red
, Green
, Brown
,
Blue
, Magenta
, Cyan
, LightGrey
,
DarkGrey
, LightRed
, LightGreen
, Yellow
,
LightBlue
, LightMagenta
, LightCyan
, White
} |
|
|
constexpr friend auto | tag_invoke (di::Tag< di::reflect >, di::InPlaceType< Color >) |
|
◆ Palette
Enumerator |
---|
Black | |
Red | |
Green | |
Brown | |
Blue | |
Magenta | |
Cyan | |
LightGrey | |
DarkGrey | |
LightRed | |
LightGreen | |
Yellow | |
LightBlue | |
LightMagenta | |
LightCyan | |
White | |
◆ Type
Enumerator |
---|
Default | Color is the default (unset SGR)
|
Palette | Color is a palette color (256 colors are available)
|
Custom | Color is true color (r, b, g fully specified)
|
◆ Color() [1/3]
◆ Color() [2/3]
◆ Color() [3/3]
ttx::Color::Color |
( |
u8 | r, |
|
|
u8 | g, |
|
|
u8 | b ) |
|
inlineconstexpr |
◆ operator<=>()
auto ttx::Color::operator<=> |
( |
Color const & | other | ) |
const |
|
default |
◆ operator==()
auto ttx::Color::operator== |
( |
Color const & | other | ) |
const -> bool=default |
|
default |
◆ tag_invoke
friend auto tag_invoke |
( |
di::Tag< di::reflect > | , |
|
|
di::InPlaceType< Color > | ) |
|
friend |
◆ type
The documentation for this struct was generated from the following file: