X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/98c9fc2d06dccf3c5792a99e55d1a7035a5cd67e..a4e17da5463a1b1fae7d613b3ce66023cb8ea1d3:/include/wx/motif/font.h diff --git a/include/wx/motif/font.h b/include/wx/motif/font.h index 6fd46468d3..99d6600abb 100644 --- a/include/wx/motif/font.h +++ b/include/wx/motif/font.h @@ -16,6 +16,8 @@ #pragma interface "font.h" #endif +class wxXFont; + // Font class wxFont : public wxFontBase { @@ -47,6 +49,11 @@ public: const wxString& face = wxEmptyString, wxFontEncoding encoding = wxFONTENCODING_DEFAULT); + // wxMOTIF-specific + bool Create(const wxString& fontname, + wxFontEncoding fontenc = wxFONTENCODING_DEFAULT); + bool Create(const wxNativeFontInfo& fontinfo); + virtual ~wxFont(); // assignment @@ -60,7 +67,8 @@ public: virtual bool GetUnderlined() const; virtual wxString GetFaceName() const; virtual wxFontEncoding GetEncoding() const; - + virtual wxNativeFontInfo *GetNativeFontInfo() const; + virtual void SetPointSize(int pointSize); virtual void SetFamily(int family); virtual void SetStyle(int style); @@ -68,7 +76,8 @@ public: virtual void SetFaceName(const wxString& faceName); virtual void SetUnderlined(bool underlined); virtual void SetEncoding(wxFontEncoding encoding); - + virtual void SetNativeFontInfo( const wxNativeFontInfo& info ); + // Implementation // Find an existing, or create a new, XFontStruct @@ -83,8 +92,8 @@ public: // of the fonts and a mapping file. // Return font struct, and optionally the Motif font list - class wxXFont* GetInternalFont(double scale = 1.0, - WXDisplay* display = NULL) const; + wxXFont *GetInternalFont(double scale = 1.0, + WXDisplay* display = NULL) const; // These two are helper functions for convenient access of the above. WXFontStructPtr GetFontStruct(double scale = 1.0,