wxColour: wxObject

A colour is an object representing a Red, Green, Blue (RGB) combination of primary colours, and is used to determine drawing colours. See the entry for wxColourDatabase for how a pointer to a predefined, named colour may be returned instead of creating a new colour.

wxColour::wxColour

voidwxColourchar red, char green, char blue

voidwxColourchar * colour_name

Construct a colour object from the RGB values or using a colour name (uses wxTheColourDatabase).

wxColour::Get

voidGetchar * red, char * green, char * blue

Gets the RGB values - pass pointers to three char variables.

wxColour::Set

voidSetchar red, char green, char blue

Sets the RGB value.