Holds a single color (float RGBA, 128 bits)
More...
#include <gui_color.hpp>
Holds a single color (float RGBA, 128 bits)
Definition at line 13 of file gui_color.hpp.
◆ channel
◆ color() [1/3]
constexpr lxgui::gui::color::color |
( |
| ) |
|
|
constexprdefault |
◆ color() [2/3]
◆ color() [3/3]
lxgui::gui::color::color |
( |
const std::string & |
s | ) |
|
|
explicit |
◆ from_bytes()
static constexpr color lxgui::gui::color::from_bytes |
( |
std::uint8_t |
r, |
|
|
std::uint8_t |
g, |
|
|
std::uint8_t |
b, |
|
|
std::uint8_t |
a = 255u |
|
) |
| |
|
inlinestaticconstexprnoexcept |
◆ from_hls()
color lxgui::gui::color::from_hls |
( |
const hls & |
hls | ) |
|
|
staticnoexcept |
◆ from_hsv()
color lxgui::gui::color::from_hsv |
( |
const hsv & |
hsv | ) |
|
|
staticnoexcept |
◆ operator!=()
bool lxgui::gui::color::operator!= |
( |
const color & |
c | ) |
const |
|
noexcept |
◆ operator*=() [1/2]
void lxgui::gui::color::operator*= |
( |
const color & |
c | ) |
|
|
noexcept |
◆ operator*=() [2/2]
void lxgui::gui::color::operator*= |
( |
float |
f | ) |
|
|
noexcept |
◆ operator+=()
void lxgui::gui::color::operator+= |
( |
const color & |
c | ) |
|
|
noexcept |
◆ operator-=()
void lxgui::gui::color::operator-= |
( |
const color & |
c | ) |
|
|
noexcept |
◆ operator==()
bool lxgui::gui::color::operator== |
( |
const color & |
c | ) |
const |
|
noexcept |
◆ to_hls()
◆ to_hsv()
channel lxgui::gui::color::a = 1.0f |
channel lxgui::gui::color::b = 1.0f |
◆ black
const color lxgui::gui::color::black |
|
static |
◆ blue
const color lxgui::gui::color::blue |
|
static |
◆ empty
const color lxgui::gui::color::empty |
|
static |
channel lxgui::gui::color::g = 1.0f |
◆ green
const color lxgui::gui::color::green |
|
static |
◆ grey
const color lxgui::gui::color::grey |
|
static |
channel lxgui::gui::color::r = 1.0f |
◆ red
const color lxgui::gui::color::red |
|
static |
◆ white
const color lxgui::gui::color::white |
|
static |
The documentation for this class was generated from the following files: