# class hk_colour

represents a RGB-colour. More...

Definition | `#include <hk_classes/hk_classes/hk_colour.h>`
Inherits | hk_class [public ]
List of all Methods

Annotated List
Files
Globals
Hierarchy
Index

#### Public Types

- typedef int hk_colourtype

#### Public Methods

- hk_colour (void)
- hk_colour (hk_colourtype red, hk_colourtype green, hk_colourtype blue)
- hk_colour (const hk_colour&)
- virtual ~hk_colour ()
- bool set_colour (hk_colourtype red, hk_colourtype green, hk_colourtype blue)
- hk_colourtype red (void) const
- hk_colourtype green (void) const
- hk_colourtype blue (void) const
- bool operator= (const hk_colour&)
- bool operator== (const hk_colour&)
- bool operator!= (const hk_colour&)
- virtual void savedata (ostream& s )
- virtual void loaddata (const hk_string& definition)

## Detailed Description

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

hk_colour (const hk_colour&)

### hk_colour

~hk_colour ()

### ~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==

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.