X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82cddbd97a4dfbd0dcf5c44c9336173d6dd386ef..7f0cbaaa4ab3037587fa796d38e7eaf16ed54933:/include/wx/font.h diff --git a/include/wx/font.h b/include/wx/font.h index e79e04e91c..c97ea06194 100644 --- a/include/wx/font.h +++ b/include/wx/font.h @@ -19,6 +19,7 @@ #include "wx/defs.h" // for wxDEFAULT &c #include "wx/fontenc.h" // the font encoding constants #include "wx/gdiobj.h" // the base class +#include "wx/gdicmn.h" // for wxGDIObjListBase // ---------------------------------------------------------------------------- // forward declarations @@ -107,7 +108,7 @@ enum class WXDLLIMPEXP_FWD_CORE wxNativeFontInfo; -class WXDLLEXPORT wxFontBase : public wxGDIObject +class WXDLLIMPEXP_CORE wxFontBase : public wxGDIObject { public: // creator function @@ -259,13 +260,23 @@ 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*) ); #endif }; -extern WXDLLEXPORT_DATA(wxFontList*) wxTheFontList; +extern WXDLLIMPEXP_DATA_CORE(wxFontList*) wxTheFontList; #endif // _WX_FONT_H_BASE_