applied wxNativeFontInfo patch #103089
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -26,6 +26,11 @@ | ||||
|  | ||||
| #include "wx/font.h"        // for wxFont and wxFontEncoding | ||||
|  | ||||
| #if defined(__WXMSW__) | ||||
| #include <windows.h> | ||||
| #include "wx/msw/winundef.h" | ||||
| #endif | ||||
|  | ||||
| // ---------------------------------------------------------------------------- | ||||
| // types | ||||
| // ---------------------------------------------------------------------------- | ||||
| @@ -39,6 +44,8 @@ struct WXDLLEXPORT wxNativeFontInfo | ||||
| { | ||||
| #if defined(__WXGTK__) | ||||
|     wxString     xFontName; | ||||
| #elif defined(__WXMSW__) | ||||
|     LOGFONT      lf; | ||||
| #else // other platforms | ||||
|     // | ||||
|     //  This is a generic implementation that should work on all ports | ||||
|   | ||||
| @@ -72,6 +72,7 @@ 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); | ||||
| @@ -80,6 +81,7 @@ public: | ||||
|     virtual void SetFaceName(const wxString& faceName); | ||||
|     virtual void SetUnderlined(bool underlined); | ||||
|     virtual void SetEncoding(wxFontEncoding encoding); | ||||
|     virtual void SetNativeFontInfo(const wxNativeFontInfo& info); | ||||
|  | ||||
|     // implementation only from now on | ||||
|     // ------------------------------- | ||||
|   | ||||
		Reference in New Issue
	
	Block a user