class hk_colour
|
represents a RGB-colour. More... |
|
|
Public Types
Public Methods
represents a RGB-colour
typedef int hk_colourtype | hk_colourtype |
hk_colour (void)
| hk_colour |
hk_colour (hk_colourtype red, hk_colourtype green, hk_colourtype blue)
| hk_colour |
[virtual]
bool set_colour (hk_colourtype red, hk_colourtype green, hk_colourtype blue)
| set_colour |
sets the RGB colour. valid values are in the range 0 to 255.
Returns: true if successful, false if the colour could not be set (out of range).
hk_colourtype red (void)
| red |
[const]
hk_colourtype green (void)
| green |
[const]
hk_colourtype blue (void)
| blue |
[const]
bool operator== (const hk_colour&)
| operator== |
bool operator!= (const hk_colour&)
| operator!= |
void savedata (ostream& s )
| savedata |
[virtual]
Reimplemented from hk_class.
void loaddata (const hk_string& definition)
| loaddata |
[virtual]
Reimplemented from hk_class.
- Version: $Revision: 1.5 $
- Author: Horst Knorr (hk_classes@knoda.org)
- Generated: horst on horstnotebook on Tue Mar 30 19:06:43 2004, using kdoc 2.0a54.