vdk 2.4.0
|
Provides a simple RGB color structure. More...
#include <vdkutils.h>
Provides a simple RGB color structure.
VDKRgb::VDKRgb | ( | int | r = 0 , |
int | g = 0 , |
||
int | b = 0 |
||
) | [inline] |
Constructor
r | red component (0-256) |
g | green component |
b | blue component |
VDKRgb::~VDKRgb | ( | ) | [inline] |
Destructor
VDKRgb::VDKRgb | ( | char * | name | ) | [inline] |
Constructor
name | names are those provided in rgb X database (normally on /usr/lib/X11/rgb.txt ) |
bool VDKRgb::IsValid | ( | ) | const [inline] |
Returns true if a valid color was loaded
bool VDKRgb::operator== | ( | VDKRgb & | c | ) | const [inline] |
Equality operator