1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/os2/gdiobj.cpp
3 // Purpose: wxGDIObject class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #include "wx/wxprec.h"
14 #include "wx/gdiobj.h"
15 #include "wx/gdicmn.h"
18 IMPLEMENT_DYNAMIC_CLASS(wxGDIObject
, wxObject
)
20 class wxStockGDIPM
: public wxStockGDI
25 virtual const wxFont
* GetFont(Item item
);
28 typedef wxStockGDI super
;
31 static wxStockGDIPM gs_wxStockGDIPM_instance
;
33 wxStockGDIPM::wxStockGDIPM()
35 // Override default instance
39 const wxFont
* wxStockGDIPM::GetFont(Item item
)
41 wxFont
* font
= wx_static_cast(wxFont
*, ms_stockObject
[item
]);
44 const int fontSize
= 12;
48 font
= new wxFont(fontSize
, wxMODERN
, wxNORMAL
, wxBOLD
);
51 font
= new wxFont(fontSize
- 4, wxSWISS
, wxNORMAL
, wxNORMAL
);
54 font
= wx_const_cast(wxFont
*, super::GetFont(item
));
57 ms_stockObject
[item
] = font
;