X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e090886060291a7b6fdfeb63ce154bbedd502b85..d94de683a60b20153591cc3f8f52a97cf9ce9453:/include/wx/mac/carbon/colour.h?ds=sidebyside diff --git a/include/wx/mac/carbon/colour.h b/include/wx/mac/carbon/colour.h index 4053598903..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 { @@ -31,7 +33,7 @@ public: // accessors bool Ok() const { return IsOk(); } - bool IsOk() const {return m_isInit; } + bool IsOk() const; unsigned char Red() const { return m_red; } unsigned char Green() const { return m_green; } @@ -51,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