This class holds a variety of information related to colour dialogs.
Derived from
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()
Constructor. Initializes the custom colours to wxNullColour, the data colour setting to black, and the choose full setting to true.
~wxColourData()
Destructor.
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.
wxColour& GetColour() const
Gets the current colour associated with the colour dialog.
The default colour is black.
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.
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.
void SetColour(const wxColour& colour)
Sets the default colour for the colour dialog.
The default colour is black.
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.
void operator =(const wxColourData& data)
Assignment operator for the colour data.