## 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 white, 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. 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 all white.

### 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 all white.

### wxColourData::operator =

void operator =(const wxColourData& data)

Assingment operator for the colour data.