git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63884
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- (void)setAction:(SEL)aSelector;
- (void)setDoubleAction:(SEL)aSelector;
- (void)setBackgroundColor:(NSColor*)aColor;
- (void)setAction:(SEL)aSelector;
- (void)setDoubleAction:(SEL)aSelector;
- (void)setBackgroundColor:(NSColor*)aColor;
+- (void)setTextColor:(NSColor *)color;
- (void)setImagePosition:(NSCellImagePosition)aPosition;
@end
- (void)setImagePosition:(NSCellImagePosition)aPosition;
@end
-void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&, long, bool)
+void wxWidgetCocoaImpl::SetFont(wxFont const& font, wxColour const&col, long, bool)
{
if ([m_osxView respondsToSelector:@selector(setFont:)])
[m_osxView setFont: font.OSXGetNSFont()];
{
if ([m_osxView respondsToSelector:@selector(setFont:)])
[m_osxView setFont: font.OSXGetNSFont()];
+ if ([m_osxView respondsToSelector:@selector(setTextColor:)])
+ [m_osxView setTextColor:[NSColor colorWithCalibratedRed:(CGFloat) (col.Red() / 255.0)
+ green:(CGFloat) (col.Green() / 255.0)
+ blue:(CGFloat) (col.Blue() / 255.0)
+ alpha:(CGFloat) (col.Alpha() / 255.0)]];
}
void wxWidgetCocoaImpl::SetToolTip(wxToolTip* tooltip)
}
void wxWidgetCocoaImpl::SetToolTip(wxToolTip* tooltip)