Allow to create a wxFont directly from a NativeFontInfo string

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-01-04 04:17:57 +00:00
parent 3af61dfc11
commit 5c38b2916b

View File

@@ -328,6 +328,13 @@ public:
wxFontEncoding encoding=wxFONTENCODING_DEFAULT); wxFontEncoding encoding=wxFONTENCODING_DEFAULT);
%name(wxFontFromNativeInfo)wxFont(const wxNativeFontInfo& info); %name(wxFontFromNativeInfo)wxFont(const wxNativeFontInfo& info);
%addmethods {
%new wxFont* wxFontFromNativeInfoString(const wxString& info) {
wxNativeFontInfo nfi;
nfi.FromString(info);
return new wxFont(nfi);
}
}
~wxFont(); ~wxFont();