Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hk_colour Class Reference

represents a RGB-colour More...

#include <hk_colour.h>

Inheritance diagram for hk_colour:

hk_class List of all members.

Public Types

typedef int hk_colourtype

Public Member Functions

 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)

Friends

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

Detailed Description

represents a RGB-colour

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


Member Typedef Documentation

typedef int hk_colour::hk_colourtype
 


Constructor & Destructor Documentation

hk_colour::hk_colour void   ) 
 

hk_colour::hk_colour hk_colourtype  red,
hk_colourtype  green,
hk_colourtype  blue
 

hk_colour::hk_colour const hk_colour  ) 
 

virtual hk_colour::~hk_colour  )  [virtual]
 


Member Function Documentation

hk_colourtype hk_colour::blue void   )  const
 

hk_colourtype hk_colour::green void   )  const
 

virtual void hk_colour::loaddata const hk_string definition  )  [virtual]
 

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

Reimplemented from hk_class.

bool hk_colour::operator!= const hk_colour  ) 
 

bool hk_colour::operator= const hk_colour  ) 
 

bool hk_colour::operator== const hk_colour  ) 
 

hk_colourtype hk_colour::red void   )  const
 

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

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


Friends And Related Function Documentation

ostream& operator<< ostream &  ,
hk_colour
[friend]
 

istream& operator>> istream &  ,
hk_colour
[friend]
 


The documentation for this class was generated from the following file:
Generated on Thu Mar 9 18:40:41 2006 for hk_classes by  doxygen 1.4.1