hk_colour Class Reference

represents a RGB-colour More...

#include <hk_colour.h>

Inheritance diagram for hk_colour:

Inheritance graph
[legend]
Collaboration diagram for hk_colour:

Collaboration graph
[legend]
List of all members.

Public Types

typedef int hk_colourtype

Public Member Functions

 hk_colour (hk_colourtype red, hk_colourtype green, hk_colourtype blue)
 hk_colour (const 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 (xmlNodePtr definition)

Friends

istream & operator>> (istream &, hk_colour &)
ostream & operator<< (ostream &, hk_colour &)

Detailed Description

represents a RGB-colour

Version:
Revision
1.8
Author:
Horst Knorr (hk_classes@knoda.org)
represents a RGB-colour


Member Function Documentation

bool hk_colour::set_colour ( hk_colourtype  red,
hk_colourtype  green,
hk_colourtype  blue 
)

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).

void hk_colour::savedata ( ostream &  s  )  [virtual]

stores the object's values to stream s. Especially used to store queries, forms and reports

Reimplemented from hk_class.

void hk_colour::loaddata ( xmlNodePtr  definition  )  [virtual]

loads the object's values out of the definition string. Especially used to load queries, forms and reports

Reimplemented from hk_class.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 02:48:12 2006 for Databaseconnectionclasses by  doxygen 1.5.0