Adding NSColor -> wxColour conversion.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2009-10-31 22:20:27 +00:00
parent a7ebaf0ddd
commit b478f24288
5 changed files with 91 additions and 25 deletions

View File

@@ -57,6 +57,9 @@ public:
#if wxOSX_USE_COCOA_OR_CARBON
wxColour(const RGBColor& col);
wxColour& operator=(const RGBColor& col);
#endif
#if wxOSX_USE_COCOA
wxColour(WX_NSColor color);
#endif
wxColour& operator=(CGColorRef col);
wxColour& operator=(const wxColour& col);
@@ -68,6 +71,7 @@ protected :
void InitRGBColor( const RGBColor& col );
#endif
void InitCGColorRef( CGColorRef col );
void InitFromComponents(const CGFloat* components, size_t numComponents );
private:
wxCFRef<CGColorRef> m_cgColour;