]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxNativeFontInfo() ctor from LOGFONT, this is convenient for MSW code
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Jan 2008 19:02:26 +0000 (19:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Jan 2008 19:02:26 +0000 (19:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/fontutil.h

index afd564a7b68895a64f699a04242c486de0cb0518..21a4f8b88716c8b38590f4d17cfbf6f3c128138e 100644 (file)
@@ -105,6 +105,8 @@ public:
     // set the XFLD
     void SetXFontName(const wxString& xFontName);
 #elif defined(__WXMSW__)
+    wxNativeFontInfo(const LOGFONT& lf_) : lf(lf_) { }
+
     LOGFONT      lf;
 #elif defined(__WXPM__)
     // OS/2 native structures that define a font