RGBColor on QD only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,20 +47,26 @@ public:
|
|||||||
CGColorRef GetCGColor() const { return m_cgColour; };
|
CGColorRef GetCGColor() const { return m_cgColour; };
|
||||||
CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); };
|
CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); };
|
||||||
|
|
||||||
|
#if wxMAC_USE_QUICKDRAW
|
||||||
void GetRGBColor( RGBColor *col ) const;
|
void GetRGBColor( RGBColor *col ) const;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Mac-specific ctor and assignment operator from the native colour
|
// Mac-specific ctor and assignment operator from the native colour
|
||||||
// assumes ownership of CGColorRef
|
// assumes ownership of CGColorRef
|
||||||
wxColour( CGColorRef col );
|
wxColour( CGColorRef col );
|
||||||
|
#if wxMAC_USE_QUICKDRAW
|
||||||
wxColour(const RGBColor& col);
|
wxColour(const RGBColor& col);
|
||||||
wxColour& operator=(const RGBColor& col);
|
wxColour& operator=(const RGBColor& col);
|
||||||
|
#endif
|
||||||
wxColour& operator=(CGColorRef col);
|
wxColour& operator=(CGColorRef col);
|
||||||
wxColour& operator=(const wxColour& col);
|
wxColour& operator=(const wxColour& col);
|
||||||
|
|
||||||
protected :
|
protected :
|
||||||
virtual void
|
virtual void
|
||||||
InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a);
|
InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a);
|
||||||
|
#if wxMAC_USE_QUICKDRAW
|
||||||
void InitRGBColor( const RGBColor& col );
|
void InitRGBColor( const RGBColor& col );
|
||||||
|
#endif
|
||||||
void InitCGColorRef( CGColorRef col );
|
void InitCGColorRef( CGColorRef col );
|
||||||
private:
|
private:
|
||||||
wxCFRef<CGColorRef> m_cgColour;
|
wxCFRef<CGColorRef> m_cgColour;
|
||||||
|
Reference in New Issue
Block a user