Contents Up Previous Next

wxColourData: wxObject

wxColourDialog overview

This class holds a variety of information related to colour dialogs.

wxColourData::wxColourData
wxColourData::~wxColourData
wxColourData::GetChooseFull
wxColourData::GetColour
wxColourData::GetCustomColour
wxColourData::SetChooseFull
wxColourData::SetColour
wxColourData::SetCustomColour
wxColourData::operator =


wxColourData::wxColourData

void wxColourData(void)

Constructor. Initializes the custom colours to white, the dataColour member to black, and the chooseFull member to TRUE.


wxColourData::~wxColourData

void ~wxColourData(void)

Destructor.


wxColourData::GetChooseFull

Bool GetChooseFull(void)

Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls. Has no meaning under other platforms.

The default value is TRUE.


wxColourData::GetColour

wxColour& GetColour(void)

Gets the current colour associated with the colour dialog.

The default colour is black.


wxColourData::GetCustomColour

wxColour& GetCustomColour(int i)

Gets the ith custom colour associated with the colour dialog. i should be an integer between 0 and 15.

The default custom colours are all white.


wxColourData::SetChooseFull

void SetChooseFull(Bool flag)

Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls. Under other platforms, has no effect.

The default value is TRUE.


wxColourData::SetColour

void SetColour(wxColour& colour)

Sets the default colour for the colour dialog.

The default colour is black.


wxColourData::SetCustomColour

void SetColour(int i, wxColour& colour)

Sets the ith custom colour for the colour dialog. i should be an integer between 0 and 15.

The default custom colours are all white.


wxColourData::operator =

void operator =(const wxColourData& data)

Assingment operator for the colour data.