// default copy ctor and dtor are ok
// accessors
- virtual bool IsOk() const { return m_cgColour; }
+ virtual bool IsOk() const { return m_cgColour != NULL; }
virtual WXDLLIMPEXP_INLINE_CORE ChannelType Red() const { return m_red; }
virtual WXDLLIMPEXP_INLINE_CORE ChannelType Green() const { return m_green; }
#if wxOSX_USE_COCOA_OR_CARBON
wxColour(const RGBColor& col);
wxColour& operator=(const RGBColor& col);
+#endif
+#if wxOSX_USE_COCOA
+ wxColour(WX_NSColor color);
+ WX_NSColor OSXGetNSColor();
#endif
wxColour& operator=(CGColorRef col);
wxColour& operator=(const wxColour& col);
void InitRGBColor( const RGBColor& col );
#endif
void InitCGColorRef( CGColorRef col );
+ void InitFromComponents(const CGFloat* components, size_t numComponents );
private:
wxCFRef<CGColorRef> m_cgColour;