// default
wxColour();
// from RGB
- wxColour(unsigned char red, unsigned char green, unsigned char blue);
+ wxColour(unsigned char red, unsigned char green, unsigned char blue)
+ { Set(red, green, blue); }
wxColour(unsigned long colRGB) { Set(colRGB); }
// implicit conversion from the colour name
}
bool operator != (const wxColour& colour) const { return !(*this == colour); }
+ void InitFromName(const wxString& colourName);
+
+protected:
+
+ // Helper function
+ void Init();
+
private:
bool m_isInit;
unsigned char m_red;
unsigned char m_blue;
unsigned char m_green;
- // helper func
- void InitFromName(const wxString& colourName);
-
private:
DECLARE_DYNAMIC_CLASS(wxColour)
};