X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/17d65207577120738396979bf7931fc5e11ba2cd..2d14a14c573db4b8f8959b1460a269cf23defbcf:/include/wx/osx/core/colour.h diff --git a/include/wx/osx/core/colour.h b/include/wx/osx/core/colour.h index c24aedc939..3c6674c589 100644 --- a/include/wx/osx/core/colour.h +++ b/include/wx/osx/core/colour.h @@ -32,10 +32,10 @@ public: // accessors virtual bool IsOk() const { return m_cgColour; } - ChannelType Red() const { return m_red; } - ChannelType Green() const { return m_green; } - ChannelType Blue() const { return m_blue; } - ChannelType Alpha() const { return m_alpha; } + virtual WXDLLIMPEXP_INLINE_CORE ChannelType Red() const { return m_red; } + virtual WXDLLIMPEXP_INLINE_CORE ChannelType Green() const { return m_green; } + virtual WXDLLIMPEXP_INLINE_CORE ChannelType Blue() const { return m_blue; } + virtual WXDLLIMPEXP_INLINE_CORE ChannelType Alpha() const { return m_alpha; } // comparison bool operator == (const wxColour& colour) const; @@ -47,14 +47,14 @@ public: CGColorRef GetCGColor() const { return m_cgColour; }; CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); }; -#if wxOSX_USE_CARBON +#if wxOSX_USE_COCOA_OR_CARBON void GetRGBColor( RGBColor *col ) const; #endif // Mac-specific ctor and assignment operator from the native colour // assumes ownership of CGColorRef wxColour( CGColorRef col ); -#if wxOSX_USE_CARBON +#if wxOSX_USE_COCOA_OR_CARBON wxColour(const RGBColor& col); wxColour& operator=(const RGBColor& col); #endif @@ -64,7 +64,7 @@ public: protected : virtual void InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a); -#if wxOSX_USE_CARBON +#if wxOSX_USE_COCOA_OR_CARBON void InitRGBColor( const RGBColor& col ); #endif void InitCGColorRef( CGColorRef col );