X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/850df2d78866c3edcf848103b5dbc7e7fa1ee5fa..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/mac/carbon/colour.h?ds=inline diff --git a/include/wx/mac/carbon/colour.h b/include/wx/mac/carbon/colour.h index 156e22d81e..431149f060 100644 --- a/include/wx/mac/carbon/colour.h +++ b/include/wx/mac/carbon/colour.h @@ -20,22 +20,17 @@ struct RGBColor; // Colour -class WXDLLEXPORT wxColour: public wxColourBase +class WXDLLIMPEXP_CORE wxColour: public wxColourBase { public: // constructors // ------------ - - // default - wxColour() { } DEFINE_STD_WXCOLOUR_CONSTRUCTORS - // dtor - virtual ~wxColour(); + // default copy ctor and dtor are ok // accessors - bool Ok() const { return IsOk(); } - bool IsOk() const; + virtual bool IsOk() const { return m_cgColour; } ChannelType Red() const { return m_red; } ChannelType Green() const { return m_green; } @@ -44,14 +39,14 @@ public: // comparison bool operator == (const wxColour& colour) const; - + bool operator != (const wxColour& colour) const { return !(*this == colour); } CGColorRef GetPixel() const { return m_cgColour; }; - + CGColorRef GetCGColor() const { return m_cgColour; }; CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); }; - + void GetRGBColor( RGBColor *col ) const; // Mac-specific ctor and assignment operator from the native colour @@ -60,10 +55,9 @@ public: wxColour(const RGBColor& col); wxColour& operator=(const RGBColor& col); wxColour& operator=(CGColorRef col); + wxColour& operator=(const wxColour& col); protected : - - virtual void InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a); void InitRGBColor( const RGBColor& col );