git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55499
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
CGColorRef GetCGColor() const { return m_cgColour; };
CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); };
CGColorRef GetCGColor() const { return m_cgColour; };
CGColorRef CreateCGColor() const { return wxCFRetain( (CGColorRef)m_cgColour ); };
+#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 );
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_COCOA_OR_CARBON
wxColour(const RGBColor& col);
wxColour& operator=(const RGBColor& col);
#endif
wxColour(const RGBColor& col);
wxColour& operator=(const RGBColor& col);
#endif
protected :
virtual void
InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a);
protected :
virtual void
InitRGBA(ChannelType r, ChannelType g, ChannelType b, ChannelType a);
+#if wxOSX_USE_COCOA_OR_CARBON
void InitRGBColor( const RGBColor& col );
#endif
void InitCGColorRef( CGColorRef col );
void InitRGBColor( const RGBColor& col );
#endif
void InitCGColorRef( CGColorRef col );
IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxColour, wxObject)
+#if wxOSX_USE_COCOA_OR_CARBON
wxColour::wxColour(const RGBColor& col)
{
InitRGBColor(col);
wxColour::wxColour(const RGBColor& col)
{
InitRGBColor(col);
+#if wxOSX_USE_COCOA_OR_CARBON
void wxColour::GetRGBColor( RGBColor *col ) const
{
col->red = (m_red << 8) + m_red;
void wxColour::GetRGBColor( RGBColor *col ) const
{
col->red = (m_red << 8) + m_red;
m_cgColour.reset( col );
}
m_cgColour.reset( col );
}
+#if wxOSX_USE_COCOA_OR_CARBON
void wxColour::InitRGBColor( const RGBColor& col )
{
m_red = col.red >> 8;
void wxColour::InitRGBColor( const RGBColor& col )
{
m_red = col.red >> 8;