+void wxBrush::MacSetTheme(ThemeBrush macThemeBrush)
+{
+ Unshare();
+
+ M_BRUSHDATA->m_macBrushKind = kwxMacBrushTheme;
+ M_BRUSHDATA->m_macThemeBrush = macThemeBrush;
+
+ RGBColor color ;
+ GetThemeBrushAsColor( macThemeBrush , 32, true, &color );
+ M_BRUSHDATA->m_colour.Set( color.red >> 8 , color.green >> 8 , color.blue >> 8 );
+
+ RealizeResource();
+}
+
+void wxBrush::MacSetThemeBackground(unsigned long macThemeBackground, const WXRECTPTR extent)
+{
+ Unshare();
+
+ M_BRUSHDATA->m_macBrushKind = kwxMacBrushThemeBackground;
+ M_BRUSHDATA->m_macThemeBackground = macThemeBackground;
+ M_BRUSHDATA->m_macThemeBackgroundExtent = *(Rect*)extent;
+
+ RealizeResource();
+}
+