Use a MappedType for wxIntPtr and wxUIntPtr too.

This commit is contained in:
Robin Dunn
2016-03-09 20:29:12 -08:00
parent e69accaa9f
commit 2078c55af7
6 changed files with 85 additions and 13 deletions

View File

@@ -99,8 +99,8 @@ def run():
m.find('descent').out = True
m.find('externalLeading').out = True
c.find('GetHandle').type = 'unsigned long'
c.find('GetHandle').setCppCode("return wxPyGetWinHandle(self);")
c.find('GetHandle').type = 'wxUIntPtr*'
c.find('GetHandle').setCppCode("return new wxUIntPtr(wxPyGetWinHandle(self));")
c.addCppMethod('void*', 'GetGtkWidget', '()', """\
#ifdef __WXGTK__