1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGDIObject class
4 // Author: Stefan Csomor
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
14 #include "wx/gdiobj.h"
15 #include "wx/gdicmn.h"
16 #include "wx/mac/private.h"
18 IMPLEMENT_DYNAMIC_CLASS(wxGDIObject
, wxObject
)
20 class wxStockGDIMac
: public wxStockGDI
25 virtual const wxFont
* GetFont(Item item
);
28 typedef wxStockGDI super
;
31 static wxStockGDIMac gs_wxStockGDIMac_instance
;
33 wxStockGDIMac::wxStockGDIMac()
35 // Override default instance
39 const wxFont
* wxStockGDIMac::GetFont(Item item
)
41 wxFont
* font
= static_cast<wxFont
*>(ms_stockObject
[item
]);
48 font
->MacCreateThemeFont(kThemeSystemFont
);
52 font
->MacCreateThemeFont(kThemeSmallSystemFont
);
55 font
= const_cast<wxFont
*>(super::GetFont(item
));
58 ms_stockObject
[item
] = font
;