X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aea95b1c3a8ae221cc3aade5ce49a3cf848fd56a..55bfbcb92b41ab1c6a0d490f2f3fcadefc069bb7:/include/wx/mac/carbon/colour.h diff --git a/include/wx/mac/carbon/colour.h b/include/wx/mac/carbon/colour.h index 54fb53afba..b024afe218 100644 --- a/include/wx/mac/carbon/colour.h +++ b/include/wx/mac/carbon/colour.h @@ -15,6 +15,8 @@ #include "wx/object.h" #include "wx/string.h" +struct RGBColor; + // Colour class WXDLLEXPORT wxColour: public wxColourBase { @@ -30,7 +32,8 @@ public: virtual ~wxColour(); // accessors - bool Ok() const {return m_isInit; } + bool Ok() const { return IsOk(); } + bool IsOk() const; unsigned char Red() const { return m_red; } unsigned char Green() const { return m_green; } @@ -50,6 +53,10 @@ public: const WXCOLORREF& GetPixel() const { return m_pixel; }; + // Mac-specific ctor and assignment operator from the native colour + wxColour(const RGBColor& col); + wxColour& operator=(const RGBColor& col); + protected : // Helper function @@ -67,7 +74,7 @@ private: public: WXCOLORREF m_pixel ; - void FromRGBColor( const WXCOLORREF* color ) ; + void FromRGBColor( WXCOLORREF* color ) ; private: