X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3bf7524f394af039efe196a186f7969cbabcc19..c8e1af672f46e93ae2fe6d7f9d5b35a3d8d49c16:/include/wx/mgl/colour.h?ds=sidebyside diff --git a/include/wx/mgl/colour.h b/include/wx/mgl/colour.h index eb75ad93ba..ac3c8e2a16 100644 --- a/include/wx/mgl/colour.h +++ b/include/wx/mgl/colour.h @@ -25,7 +25,8 @@ public: // 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 @@ -68,15 +69,19 @@ public: } 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) };