- public:
-
- wxColour();
- wxColour( char red, char green, char blue );
- wxColour( const wxString &colourName ) { InitFromName(colourName); }
- wxColour( const char *colourName ) { InitFromName(colourName); }
- wxColour( const wxColour& col );
- wxColour( const wxColour* col );
- ~wxColour();
- wxColour& operator = ( const wxColour& col );
- wxColour& operator = ( const wxString& colourName );
- bool operator == ( const wxColour& col );
- bool operator != ( const wxColour& col );
- void Set( const unsigned char red, const unsigned char green, const unsigned char blue );
+public:
+ // constructors
+ // ------------
+
+ // default
+ wxColour() { }
+ DEFINE_STD_WXCOLOUR_CONSTRUCTORS
+
+ virtual ~wxColour();
+
+ virtual bool FromString(const wxString& str);
+
+ bool Ok() const { return IsOk(); }
+ bool IsOk() const { return m_refData != NULL; }
+
+ bool operator == ( const wxColour& col ) const;
+ bool operator != ( const wxColour& col ) const { return !(*this == col); }
+