X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dabbc6a5a1795d169f26ce95927f3e4f1a5e7b7e..333e57d578e9e0fb6555452b5a53698ffd85ee69:/include/wx/os2/font.h diff --git a/include/wx/os2/font.h b/include/wx/os2/font.h index 314d445d7b..92e0b22698 100644 --- a/include/wx/os2/font.h +++ b/include/wx/os2/font.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: font.h +// Name: wx/os2/font.h // Purpose: wxFont class // Author: David Webster // Modified by: @@ -25,8 +25,7 @@ class WXDLLEXPORT wxFont : public wxFontBase { public: // ctors and such - wxFont() { Init(); } - wxFont(const wxFont& rFont) { Init(); Ref(rFont); } + wxFont() { } wxFont( int nSize ,int nFamily @@ -37,8 +36,6 @@ public: ,wxFontEncoding vEncoding = wxFONTENCODING_DEFAULT ) { - Init(); - (void)Create( nSize ,nFamily ,nStyle @@ -54,8 +51,6 @@ public: ) { - Init(); - (void)Create( rInfo ,hFont ); @@ -77,11 +72,6 @@ public: virtual ~wxFont(); - // - // Assignment - // - wxFont& operator=(const wxFont& rFont); - // // Implement base class pure virtuals // @@ -98,7 +88,7 @@ public: virtual void SetFamily(int nFamily); virtual void SetStyle(int nStyle); virtual void SetWeight(int nWeight); - virtual void SetFaceName(const wxString& rsFaceName); + virtual bool SetFaceName(const wxString& rsFaceName); virtual void SetUnderlined(bool bUnderlined); virtual void SetEncoding(wxFontEncoding vEncoding); @@ -115,7 +105,7 @@ public: // virtual bool IsFree(void) const; virtual bool RealizeResource(void); - virtual WXHANDLE GetResourceHandle(void); + virtual WXHANDLE GetResourceHandle(void) const; virtual bool FreeResource(bool bForce = false); WXHFONT GetHFONT(void) const; @@ -123,10 +113,6 @@ public: protected: virtual void DoSetNativeFontInfo(const wxNativeFontInfo& rInfo); - // - // Common part of all ctors - // - void Init(void); void Unshare(void); private: