X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/generic/colour.h diff --git a/include/wx/generic/colour.h b/include/wx/generic/colour.h index 66aa3800d4..28627daa0a 100644 --- a/include/wx/generic/colour.h +++ b/include/wx/generic/colour.h @@ -33,7 +33,8 @@ public: virtual ~wxColour(); // accessors - bool Ok() const { return m_isInit; } + bool Ok() const { return IsOk(); } + bool IsOk() const { return m_isInit; } unsigned char Red() const { return m_red; } unsigned char Green() const { return m_green; } @@ -57,12 +58,8 @@ protected: // Helper function void Init(); - virtual void InitWith(unsigned char red, unsigned char green, unsigned char blue) - { - InitWith(red, green, blue, wxALPHA_OPAQUE); - } - - virtual void InitWith(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha); + virtual void + InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a); private: bool m_isInit;