VideoTools
|
A simple rgb colour structure. More...
#include <grcolour.h>
Public Types | |
typedef unsigned char | value_t |
typedef g_uint32_t | cc_t |
Public Member Functions | |
Colour () | |
Default constructor for black. | |
Colour (value_t r, value_t g, value_t b) | |
Constructor taking red, green and blue values. | |
value_t | r () const |
Returns the red value. | |
value_t | g () const |
Returns the green value. | |
value_t | b () const |
Returns the blue value. | |
cc_t | cc () const |
Returns a combined-component value that incorporates the r(), g() and b() values. More... | |
Static Public Member Functions | |
static Colour | from (cc_t cc) |
Creates a colour from a combined-component value. | |
Public Attributes | |
value_t | m_r |
value_t | m_g |
value_t | m_b |
A simple rgb colour structure.
Definition at line 36 of file grcolour.h.
|
inline |
Returns a combined-component value that incorporates the r(), g() and b() values.
This is what Xlib uses for a pixel value.
Definition at line 106 of file grcolour.h.