Provides a simple RGB color structure.
More...
#include <vdkutils.h>
Provides a simple RGB color structure.
§ VDKRgb() [1/2]
VDKRgb::VDKRgb |
( |
int |
r = 0 , |
|
|
int |
g = 0 , |
|
|
int |
b = 0 |
|
) |
| |
|
inline |
Constructor
- Parameters
-
r | red component (0-256) |
g | green component |
b | blue component |
§ ~VDKRgb()
§ VDKRgb() [2/2]
VDKRgb::VDKRgb |
( |
char * |
name | ) |
|
|
inline |
Constructor
- Parameters
-
name | names are those provided in rgb X database (normally on /usr/lib/X11/rgb.txt ) |
§ IsValid()
bool VDKRgb::IsValid |
( |
| ) |
const |
|
inline |
Returns true if a valid color was loaded
§ operator==()
bool VDKRgb::operator== |
( |
VDKRgb & |
c | ) |
const |
|
inline |
The documentation for this class was generated from the following file: