colors/rgba.hpp

struct gviz::colors::RGBA

Public Types

using octet_t = uint8_t

Public Functions

inline constexpr octet_t min() const noexcept
inline constexpr octet_t max() const noexcept
inline constexpr uint32_t to_binary() const noexcept
inline constexpr bool operator==(const RGBA &other) const noexcept
inline constexpr bool operator!=(const RGBA &other) const noexcept

Public Members

octet_t r = 0
octet_t g = 0
octet_t b = 0
octet_t a = 255

Public Static Functions

static inline constexpr std::optional<RGBA> make(octet_t red, octet_t green, octet_t blue) noexcept
static inline constexpr std::optional<RGBA> make(octet_t red, octet_t green, octet_t blue, octet_t alpha) noexcept
static inline constexpr RGBA from_binary(uint32_t value) noexcept
namespace gviz
namespace colors
file rgba.hpp
#include <>
#include <>
dir /home/cthulhu/projects/repos/libgvizard/include/gvizard/colors
dir /home/cthulhu/projects/repos/libgvizard/include/gvizard
dir /home/cthulhu/projects/repos/libgvizard/include