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"
18 #include "wx/gdicmn.h"
21 IMPLEMENT_DYNAMIC_CLASS(wxGDIObject
, wxObject
)
23 class wxStockGDIPM
: public wxStockGDI
28 virtual const wxFont
* GetFont(Item item
);
31 typedef wxStockGDI super
;
34 static wxStockGDIPM gs_wxStockGDIPM_instance
;
36 wxStockGDIPM::wxStockGDIPM()
38 // Override default instance
42 const wxFont
* wxStockGDIPM::GetFont(Item item
)
44 wxFont
* font
= wx_static_cast(wxFont
*, ms_stockObject
[item
]);
47 const int fontSize
= 12;
51 font
= new wxFont(fontSize
, wxMODERN
, wxNORMAL
, wxBOLD
);
54 font
= new wxFont(fontSize
- 4, wxSWISS
, wxNORMAL
, wxNORMAL
);
57 font
= wx_const_cast(wxFont
*, super::GetFont(item
));
60 ms_stockObject
[item
] = font
;