CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
RE::Color Struct Reference

#include <Color.h>

Public Types

enum  : std::size_t {
  kRed , kGreen , kBlue , kAlpha ,
  kTotal
}
 

Public Member Functions

constexpr Color () noexcept
 
constexpr Color (const Color &a_rhs) noexcept
 
constexpr Color (Color &&a_rhs) noexcept
 
constexpr Color (std::uint8_t a_red, std::uint8_t a_green, std::uint8_t a_blue, std::uint8_t a_alpha) noexcept
 
 ~Color () noexcept=default
 
constexpr Coloroperator= (const Color &a_rhs) noexcept
 
constexpr Coloroperator= (Color &&a_rhs) noexcept
 
constexpr std::uint8_t & operator[] (std::size_t a_idx) noexcept
 
constexpr const std::uint8_t & operator[] (std::size_t a_idx) const noexcept
 

Public Attributes

std::uint8_t red
 
std::uint8_t green
 
std::uint8_t blue
 
std::uint8_t alpha
 

Friends

constexpr bool operator== (const Color &a_lhs, const Color &a_rhs) noexcept
 
constexpr bool operator!= (const Color &a_lhs, const Color &a_rhs) noexcept
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : std::size_t
Enumerator
kRed 
kGreen 
kBlue 
kAlpha 
kTotal 

Constructor & Destructor Documentation

◆ Color() [1/4]

constexpr RE::Color::Color ( )
inlineconstexprnoexcept

◆ Color() [2/4]

constexpr RE::Color::Color ( const Color a_rhs)
inlineconstexprnoexcept

◆ Color() [3/4]

constexpr RE::Color::Color ( Color &&  a_rhs)
inlineconstexprnoexcept

◆ Color() [4/4]

constexpr RE::Color::Color ( std::uint8_t  a_red,
std::uint8_t  a_green,
std::uint8_t  a_blue,
std::uint8_t  a_alpha 
)
inlineconstexprnoexcept

◆ ~Color()

RE::Color::~Color ( )
defaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

constexpr Color & RE::Color::operator= ( Color &&  a_rhs)
inlineconstexprnoexcept

◆ operator=() [2/2]

constexpr Color & RE::Color::operator= ( const Color a_rhs)
inlineconstexprnoexcept

◆ operator[]() [1/2]

constexpr const std::uint8_t & RE::Color::operator[] ( std::size_t  a_idx) const
inlineconstexprnoexcept

◆ operator[]() [2/2]

constexpr std::uint8_t & RE::Color::operator[] ( std::size_t  a_idx)
inlineconstexprnoexcept

Friends And Related Function Documentation

◆ operator!=

constexpr bool operator!= ( const Color a_lhs,
const Color a_rhs 
)
friend

◆ operator==

constexpr bool operator== ( const Color a_lhs,
const Color a_rhs 
)
friend

Member Data Documentation

◆ alpha

std::uint8_t RE::Color::alpha

◆ blue

std::uint8_t RE::Color::blue

◆ green

std::uint8_t RE::Color::green

◆ red

std::uint8_t RE::Color::red

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