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:
@@ -328,6 +328,13 @@ public:
|
||||
wxFontEncoding encoding=wxFONTENCODING_DEFAULT);
|
||||
|
||||
%name(wxFontFromNativeInfo)wxFont(const wxNativeFontInfo& info);
|
||||
%addmethods {
|
||||
%new wxFont* wxFontFromNativeInfoString(const wxString& info) {
|
||||
wxNativeFontInfo nfi;
|
||||
nfi.FromString(info);
|
||||
return new wxFont(nfi);
|
||||
}
|
||||
}
|
||||
|
||||
~wxFont();
|
||||
|
||||
|
Reference in New Issue
Block a user