A colour, 8 bits per channel.
More...
#include <theme.hpp>
|
| bool | operator== (Rgba const &) const =default |
| | Field-wise equality.
|
| std::string | hex () const |
| | The colour as #rrggbb, or #rrggbbaa when it is not opaque.
|
|
| std::uint8_t | r = 0 |
| | Red.
|
| std::uint8_t | g = 0 |
| | Green.
|
| std::uint8_t | b = 0 |
| | Blue.
|
| std::uint8_t | a = 255 |
| | Alpha; 255 is opaque.
|
A colour, 8 bits per channel.
Definition at line 102 of file theme.hpp.
◆ operator==()
| bool morph::ui::Rgba::operator== |
( |
Rgba const & | | ) |
const |
|
default |
Field-wise equality.
- Returns
- Whether every channel is equal.
◆ hex()
| std::string morph::ui::Rgba::hex |
( |
| ) |
const |
|
inlinenodiscard |
The colour as #rrggbb, or #rrggbbaa when it is not opaque.
- Returns
- The text.
Definition at line 118 of file theme.hpp.
| std::uint8_t morph::ui::Rgba::r = 0 |
| std::uint8_t morph::ui::Rgba::g = 0 |
| std::uint8_t morph::ui::Rgba::b = 0 |
| std::uint8_t morph::ui::Rgba::a = 255 |
Alpha; 255 is opaque.
Definition at line 110 of file theme.hpp.
The documentation for this struct was generated from the following file: