Contents Up Previous Next

wxColourData

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

Derived from

wxObject

Include files

<wx/cmndata.h>

See also

wxColour, wxColourDialog, wxColourDialog overview

Members

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


wxColourData::wxColourData

wxColourData()

Constructor. Initializes the custom colours to wxNullColour, the data colour setting to black, and the choose full setting to true.


wxColourData::~wxColourData

~wxColourData()

Destructor.


wxColourData::GetChooseFull

bool GetChooseFull() const

Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls. Under PalmOS, determines whether colour dialog will display full rgb colour picker or only available palette indexer. Has no meaning under other platforms.

The default value is true.


wxColourData::GetColour

wxColour& GetColour() const

Gets the current colour associated with the colour dialog.

The default colour is black.


wxColourData::GetCustomColour

wxColour& GetCustomColour(int i) const

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

The default custom colours are invalid colours.


wxColourData::SetChooseFull

void SetChooseFull(const 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(const wxColour& colour)

Sets the default colour for the colour dialog.

The default colour is black.


wxColourData::SetCustomColour

void SetCustomColour(int i, const 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 invalid colours.


wxColourData::operator =

void operator =(const wxColourData& data)

Assignment operator for the colour data.