Public Member Functions | Public Attributes | List of all members
rgb Struct Reference

#include <color.h>

Public Member Functions

FMT_CONSTEXPR_DECL rgb ()
 
FMT_CONSTEXPR_DECL rgb (uint8_t r_, uint8_t g_, uint8_t b_)
 
FMT_CONSTEXPR_DECL rgb (uint32_t hex)
 
FMT_CONSTEXPR_DECL rgb (color hex)
 

Public Attributes

uint8_t r
 
uint8_t g
 
uint8_t b
 

Detailed Description

Definition at line 223 of file color.h.

Constructor & Destructor Documentation

FMT_CONSTEXPR_DECL rgb::rgb ( )
inline

Definition at line 224 of file color.h.

224 : r(0), g(0), b(0) {}
uint8_t g
Definition: color.h:233
uint8_t b
Definition: color.h:234
uint8_t r
Definition: color.h:232
FMT_CONSTEXPR_DECL rgb::rgb ( uint8_t  r_,
uint8_t  g_,
uint8_t  b_ 
)
inline

Definition at line 225 of file color.h.

226  : r(r_), g(g_), b(b_) {}
uint8_t g
Definition: color.h:233
uint8_t b
Definition: color.h:234
uint8_t r
Definition: color.h:232
FMT_CONSTEXPR_DECL rgb::rgb ( uint32_t  hex)
inline

Definition at line 227 of file color.h.

228  : r((hex >> 16) & 0xFF), g((hex >> 8) & 0xFF), b((hex) & 0xFF) {}
QTextStream & hex(QTextStream &s)
uint8_t g
Definition: color.h:233
uint8_t b
Definition: color.h:234
uint8_t r
Definition: color.h:232
FMT_CONSTEXPR_DECL rgb::rgb ( color  hex)
inline

Definition at line 229 of file color.h.

230  : r((uint32_t(hex) >> 16) & 0xFF), g((uint32_t(hex) >> 8) & 0xFF),
231  b(uint32_t(hex) & 0xFF) {}
QTextStream & hex(QTextStream &s)
unsigned int uint32_t
Definition: stdint.h:126
uint8_t g
Definition: color.h:233
uint8_t b
Definition: color.h:234
uint8_t r
Definition: color.h:232

Member Data Documentation

uint8_t rgb::b

Definition at line 234 of file color.h.

uint8_t rgb::g

Definition at line 233 of file color.h.

uint8_t rgb::r

Definition at line 232 of file color.h.


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