X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7946addb258a973e9da5601cf96712ed4f5c5c8..c5d7b7d20ba810df4ad66f6826c529a106e81577:/include/wx/osx/font.h diff --git a/include/wx/osx/font.h b/include/wx/osx/font.h index bcd86e775a..b05661b4b1 100644 --- a/include/wx/osx/font.h +++ b/include/wx/osx/font.h @@ -27,7 +27,7 @@ enum wxOSXSystemFont wxOSX_SYSTEM_FONT_MINI, wxOSX_SYSTEM_FONT_MINI_BOLD, wxOSX_SYSTEM_FONT_LABELS, - wxOSX_SYSTEM_FONT_VIEWS + wxOSX_SYSTEM_FONT_VIEWS, }; @@ -37,6 +37,8 @@ public: // ctors and such wxFont() { } + wxFont( wxOSXSystemFont systemFont ); + #if wxOSX_USE_COCOA wxFont(WX_NSFont nsfont); #endif @@ -94,14 +96,11 @@ public: bool Create(const wxNativeFontInfo& info); - bool CreateSystemFont(wxOSXSystemFont font); - virtual ~wxFont(); // implement base class pure virtuals virtual int GetPointSize() const; virtual wxSize GetPixelSize() const; - virtual wxFontFamily GetFamily() const; virtual wxFontStyle GetStyle() const; virtual wxFontWeight GetWeight() const; virtual bool GetUnderlined() const; @@ -147,11 +146,9 @@ public: void* MacGetATSUStyle() const ; void* OSXGetATSUStyle() const { return MacGetATSUStyle() ; } -#if WXWIN_COMPATIBILITY_2_8 wxDEPRECATED( wxUint32 MacGetATSUFontID() const ); wxDEPRECATED( wxUint32 MacGetATSUAdditionalQDStyles() const ); #endif -#endif #if wxOSX_USE_COCOA WX_NSFont OSXGetNSFont() const; @@ -168,6 +165,7 @@ public: protected: virtual void DoSetNativeFontInfo(const wxNativeFontInfo& info); + virtual wxFontFamily DoGetFamily() const; virtual wxGDIRefData *CreateGDIRefData() const; virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;