git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62530
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif
#if wxOSX_USE_COCOA
wxColour(WX_NSColor color);
+ WX_NSColor OSXGetNSColor();
#endif
wxColour& operator=(CGColorRef col);
wxColour& operator=(const wxColour& col);
}
InitFromComponents(const_cast<const CGFloat*>(components), noComp);
}
+
+WX_NSColor wxColour::OSXGetNSColor()
+{
+ return [NSColor colorWithDeviceRed:m_red / 255.0 green:m_green / 255.0 blue:m_blue / 255.0 alpha:m_alpha / 255.0];
+}
#endif
\ No newline at end of file