class hk_colour

represents a RGB-colour. More...

Definition#include <hk_classes/hk_classes/hk_colour.h>
Inheritshk_class [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


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.