const wxColour& GetColour() const { return m_dataColour; }
wxColour& GetColour() { return m_dataColour; }
- // These functions modify colours in an internal array of NUM_CUSTOM custom
- // colours
+ // SetCustomColour() modifies colours in an internal array of NUM_CUSTOM
+ // custom colours;
void SetCustomColour(int i, const wxColour& colour);
- wxColour GetCustomColour(int i);
+ wxColour GetCustomColour(int i) const;
// Serialize the object to a string and restore it from it
wxString ToString() const;
that the user has saved. The default custom colours are invalid
colours.
*/
- wxColour& GetCustomColour(int i) const;
+ wxColour GetCustomColour(int i) const;
/**
Under Windows, tells the Windows colour dialog to display the full
Assignment operator for the colour data.
*/
void operator =(const wxColourData& data);
+
+
+ /** @todo document these */
+ wxString wxColourData::ToString() const;
+ bool wxColourData::FromString(const wxString& str);
};
between the print dialogs and the application.
@remarks
-
+
The following functions are specific to PostScript printing and have not
yet been documented:
Determines whether the dialog to be shown will be the Print dialog
(pass @false) or Print Setup dialog (pass @true).
-
+
*/
void SetSetupDialog(bool flag);
m_custColours[i] = colour;
}
-wxColour wxColourData::GetCustomColour(int i)
+wxColour wxColourData::GetCustomColour(int i) const
{
wxCHECK_MSG( i >= 0 && i < NUM_CUSTOM, wxColour(0,0,0),
_T("custom colour index out of range") );