Iros
 
Loading...
Searching...
No Matches
gfx::Color Class Reference

#include </home/runner/work/iros/iros/libs/diusgfx/include/diusgfx/color.h>

Public Member Functions

 Color ()=default
 
constexpr Color (u8 r, u8 g, u8 b, u8 a=255)
 
constexpr auto red () const -> u8
 
constexpr auto green () const -> u8
 
constexpr auto blue () const -> u8
 
constexpr auto alpha () const -> u8
 
constexpr auto with_red (u8 red) const -> Color
 
constexpr auto with_green (u8 green) const -> Color
 
constexpr auto with_blue (u8 blue) const -> Color
 
constexpr auto with_alpha (u8 alpha) const -> Color
 
constexpr auto as_rgba32 () const -> RGBA32
 
auto operator== (Color const &) const -> bool=default
 
auto operator<=> (Color const &) const =default
 

Constructor & Destructor Documentation

◆ Color() [1/2]

gfx::Color::Color ( )
default

◆ Color() [2/2]

gfx::Color::Color ( u8 r,
u8 g,
u8 b,
u8 a = 255 )
inlineexplicitconstexpr

Member Function Documentation

◆ alpha()

auto gfx::Color::alpha ( ) const -> u8
inlineconstexpr

◆ as_rgba32()

auto gfx::Color::as_rgba32 ( ) const -> RGBA32
inlineconstexpr

◆ blue()

auto gfx::Color::blue ( ) const -> u8
inlineconstexpr

◆ green()

auto gfx::Color::green ( ) const -> u8
inlineconstexpr

◆ operator<=>()

auto gfx::Color::operator<=> ( Color const & ) const
default

◆ operator==()

auto gfx::Color::operator== ( Color const & ) const -> bool=default
default

◆ red()

auto gfx::Color::red ( ) const -> u8
inlineconstexpr

◆ with_alpha()

auto gfx::Color::with_alpha ( u8 alpha) const -> Color
inlineconstexpr

◆ with_blue()

auto gfx::Color::with_blue ( u8 blue) const -> Color
inlineconstexpr

◆ with_green()

auto gfx::Color::with_green ( u8 green) const -> Color
inlineconstexpr

◆ with_red()

auto gfx::Color::with_red ( u8 red) const -> Color
inlineconstexpr

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