X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/40989e46b86777dd211faeb3e5d2366cdcc6d8cd..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/os2/colour.h diff --git a/include/wx/os2/colour.h b/include/wx/os2/colour.h index 807d673645..7fc1a01c81 100644 --- a/include/wx/os2/colour.h +++ b/include/wx/os2/colour.h @@ -15,14 +15,11 @@ #include "wx/object.h" // Colour -class WXDLLEXPORT wxColour: public wxColourBase +class WXDLLIMPEXP_CORE wxColour: public wxColourBase { public: // constructors // ------------ - - // default - wxColour() { Init(); } DEFINE_STD_WXCOLOUR_CONSTRUCTORS // Copy ctors and assignment operators @@ -31,10 +28,10 @@ public: wxColour&operator = (const wxColour& rCol); // Dtor - ~wxColour(); + virtual ~wxColour(); // Accessors - bool Ok(void) const {return m_bIsInit; } + virtual bool IsOk(void) const { return m_bIsInit; } unsigned char Red(void) const { return m_cRed; } unsigned char Green(void) const { return m_cGreen; } @@ -52,7 +49,7 @@ public: bool operator != (const wxColour& rColour) const { return !(*this == rColour); } - WXCOLORREF GetPixel(void) const { return m_vPixel; }; + WXCOLORREF GetPixel(void) const { return m_vPixel; } private: @@ -65,7 +62,8 @@ private: unsigned char m_cBlue; unsigned char m_cGreen; - virtual void InitWith( unsigned char cRed, unsigned char cGreen, unsigned char cBlue); + virtual void + InitRGBA(unsigned char r, unsigned char g, unsigned char b, unsigned char a); public: WXCOLORREF m_vPixel ;