X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f5426f09c68bf42e58e3932e2bcb0322caa6b41..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/generic/colour.h?ds=inline diff --git a/include/wx/generic/colour.h b/include/wx/generic/colour.h index a5707e3039..edaf6a19e3 100644 --- a/include/wx/generic/colour.h +++ b/include/wx/generic/colour.h @@ -15,25 +15,23 @@ #include "wx/object.h" // Colour -class WXDLLEXPORT wxColour: public wxColourBase +class WXDLLIMPEXP_CORE wxColour: public wxColourBase { public: // constructors // ------------ - - // default - wxColour(); DEFINE_STD_WXCOLOUR_CONSTRUCTORS // copy ctors and assignment operators - wxColour(const wxColour& col); - wxColour& operator=(const wxColour& col); + wxColour(const wxColour& col) + { + *this = col; + } - // dtor - ~wxColour(); + wxColour& operator=(const wxColour& col); // accessors - bool Ok() const { return m_isInit; } + virtual bool IsOk() const { return m_isInit; } unsigned char Red() const { return m_red; } unsigned char Green() const { return m_green; } @@ -57,12 +55,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;