mf
Media Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mf::rgba_color Struct Reference

RGBA color, 8 bit. More...

#include <color.h>

Public Member Functions

 rgba_color ()=default
 
 rgba_color (std::uint8_t nr, std::uint8_t ng, std::uint8_t nb, std::uint8_t na=255)
 
 rgba_color (const rgba_color &)=default
 
rgba_coloroperator= (const rgba_color &)=default
 
bool is_null () const noexcept
 

Static Public Member Functions

static rgba_color null () noexcept
 

Public Attributes

std::uint8_t r
 
std::uint8_t g
 
std::uint8_t b
 
std::uint8_t a
 

Static Public Attributes

static const rgba_color black
 
static const rgba_color white
 

Detailed Description

RGBA color, 8 bit.

Constructor & Destructor Documentation

mf::rgba_color::rgba_color ( )
default
mf::rgba_color::rgba_color ( std::uint8_t  nr,
std::uint8_t  ng,
std::uint8_t  nb,
std::uint8_t  na = 255 
)
inline
mf::rgba_color::rgba_color ( const rgba_color )
default

Member Function Documentation

bool mf::rgba_color::is_null ( ) const
inlinenoexcept
static rgba_color mf::rgba_color::null ( )
inlinestaticnoexcept
rgba_color& mf::rgba_color::operator= ( const rgba_color )
default

Member Data Documentation

std::uint8_t mf::rgba_color::a
std::uint8_t mf::rgba_color::b
const rgba_color mf::rgba_color::black
static
std::uint8_t mf::rgba_color::g
std::uint8_t mf::rgba_color::r
const rgba_color mf::rgba_color::white
static

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