X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/19da7aaa9bf7aa54850bf087f5a670fc04e80183..e4a23857ec9c4f4e3f3e1251f566f55df31e4177:/interface/wx/font.h diff --git a/interface/wx/font.h b/interface/wx/font.h index 3d4d3b1fdc..c8de700f48 100644 --- a/interface/wx/font.h +++ b/interface/wx/font.h @@ -36,9 +36,10 @@ enum wxFontFamily /// See also wxFont::IsFixedWidth() for an easy way to test for monospace property. wxFONTFAMILY_TELETYPE = wxTELETYPE, + wxFONTFAMILY_MAX, /// Invalid font family value, returned by wxFont::GetFamily() when the /// font is invalid for example. - wxFONTFAMILY_UNKNOWN + wxFONTFAMILY_UNKNOWN = wxFONTFAMILY_MAX }; /** @@ -263,7 +264,6 @@ enum wxFontEncoding }; - /** @class wxFont @@ -401,7 +401,12 @@ public: If @a fontdesc is invalid the font remains uninitialized, i.e. its IsOk() method will return @false. */ - wxFont(const wxString& fontdesc); + wxFont(const wxString& nativeInfoString); + + /** + Construct font from a native font info structure. + */ + wxFont(const wxNativeFontInfo& nativeInfo); /** Destructor. @@ -486,6 +491,8 @@ public: */ wxString GetNativeFontInfoUserDesc() const; + const wxNativeFontInfo *GetNativeFontInfo() const; + /** Gets the point size. @@ -774,6 +781,8 @@ public: */ bool SetNativeFontInfoUserDesc(const wxString& info); + void SetNativeFontInfo(const wxNativeFontInfo& info); + /** Sets the point size. @@ -922,6 +931,11 @@ public: int flags = wxFONTFLAG_DEFAULT, const wxString& faceName = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); + + + static wxFont *New(const wxNativeFontInfo& nativeInfo); + static wxFont *New(const wxString& nativeInfoString); + //@} };