From 78b83207705993bf26e4f0487aded92b48838f7d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 9 Jun 2008 09:51:48 +0000 Subject: [PATCH] RGBColor on QD only git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/colour.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/wx/mac/carbon/colour.h b/include/wx/mac/carbon/colour.h index 431149f060..9b1d6129d5 100644 --- a/include/wx/mac/carbon/colour.h +++ b/include/wx/mac/carbon/colour.h @@ -47,20 +47,26 @@ public: CGColorRef GetCGColor() const { return m_cgColour; }; CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); }; +#if wxMAC_USE_QUICKDRAW void GetRGBColor( RGBColor *col ) const; +#endif // Mac-specific ctor and assignment operator from the native colour // assumes ownership of CGColorRef wxColour( CGColorRef col ); +#if wxMAC_USE_QUICKDRAW wxColour(const RGBColor& col); wxColour& operator=(const RGBColor& col); +#endif wxColour& operator=(CGColorRef col); wxColour& operator=(const wxColour& col); protected : virtual void InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a); +#if wxMAC_USE_QUICKDRAW void InitRGBColor( const RGBColor& col ); +#endif void InitCGColorRef( CGColorRef col ); private: wxCFRef m_cgColour; -- 2.45.2