From: Francesco Montorsi Date: Mon, 24 Mar 2008 12:04:34 +0000 (+0000) Subject: add backward compat FindOrCreateFont X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/020eeaa8d98126909c23490c65bc5c353f0648dd add backward compat FindOrCreateFont git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/font.h b/include/wx/font.h index 744e4fefeb..3ef53d3580 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -260,6 +260,16 @@ public: bool underline = false, const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); + +#if FUTURE_WXWIN_COMPATIBILITY_3_0 + wxFont *FindOrCreateFont(int pointSize, int family, int style, int weight, + bool underline = false, + const wxString& face = wxEmptyString, + wxFontEncoding encoding = wxFONTENCODING_DEFAULT) + { return FindOrCreateFont(pointSize, (wxFontFamily)family, (wxFontStyle)style, + (wxFontWeight)weight, underline, face, encoding); } +#endif + #if WXWIN_COMPATIBILITY_2_6 wxDEPRECATED( void AddFont(wxFont*) ); wxDEPRECATED( void RemoveFont(wxFont*) );