- // from packed RGB
- wxColour( unsigned long colRGB ) { Set(colRGB); }
-
- // Implicit conversion from the colour name
- wxColour( const wxString &colourName ) { InitFromName(colourName); }
- wxColour( const char *colourName ) { InitFromName( wxString::FromAscii(colourName) ); }
-#if wxUSE_UNICODE
- wxColour( const wxChar *colourName ) { InitFromName( wxString(colourName) ); }
-#endif
-
- // Get colour from name or wxNullColour
- static wxColour CreateByName(const wxString& name);
-
- wxColour( const wxColour& col ) { Ref(col); }
- wxColour& operator = ( const wxColour& col ) { Ref(col); return *this; }
-
- ~wxColour();
-
- bool Ok() const { return m_refData != NULL; }