openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
gRGB Struct Reference

#include <gpixmap.h>

Public Member Functions

 gRGB (int r, int g, int b, int a=0)
 
 gRGB (uint32_t val)
 
 gRGB (const gRGB &other)
 
 gRGB (const char *colorstring)
 
 gRGB ()
 
uint32_t argb () const
 
void set (uint32_t val)
 
void operator= (uint32_t val)
 
bool operator< (const gRGB &c) const
 
bool operator== (const gRGB &c) const
 
bool operator!= (const gRGB &c) const
 
 operator const std::string () const
 
void alpha_blend (const gRGB other)
 

Public Attributes

union {
   struct {
      unsigned char   b
 
      unsigned char   g
 
      unsigned char   r
 
      unsigned char   a
 
   } 
 
   uint32_t   value
 
}; 
 

Constructor & Destructor Documentation

◆ gRGB() [1/5]

gRGB::gRGB ( int  r,
int  g,
int  b,
int  a = 0 
)
inline

◆ gRGB() [2/5]

gRGB::gRGB ( uint32_t  val)
inline

◆ gRGB() [3/5]

gRGB::gRGB ( const gRGB other)
inline

◆ gRGB() [4/5]

gRGB::gRGB ( const char *  colorstring)
inline

◆ gRGB() [5/5]

gRGB::gRGB ( )
inline

Member Function Documentation

◆ alpha_blend()

void gRGB::alpha_blend ( const gRGB  other)
inline

◆ argb()

uint32_t gRGB::argb ( ) const
inline

◆ operator const std::string()

gRGB::operator const std::string ( ) const
inline

◆ operator!=()

bool gRGB::operator!= ( const gRGB c) const
inline

◆ operator<()

bool gRGB::operator< ( const gRGB c) const
inline

◆ operator=()

void gRGB::operator= ( uint32_t  val)
inline

◆ operator==()

bool gRGB::operator== ( const gRGB c) const
inline

◆ set()

void gRGB::set ( uint32_t  val)
inline

Member Data Documentation

◆ 

union { ... }

◆ a

unsigned char gRGB::a

◆ b

unsigned char gRGB::b

◆ g

unsigned char gRGB::g

◆ r

unsigned char gRGB::r

◆ value

uint32_t gRGB::value

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