X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/76b8fa1d2077661a6710f532eb141468ab36c1c8..9ac884500ce30c58e24b0a6af1288b576d2e03e4:/wxPython/src/_imaglist.i?ds=sidebyside diff --git a/wxPython/src/_imaglist.i b/wxPython/src/_imaglist.i index d048849da2..9a63bb10b8 100644 --- a/wxPython/src/_imaglist.i +++ b/wxPython/src/_imaglist.i @@ -43,8 +43,14 @@ MustHaveApp(wxImageList); // two bitmaps, or an icon. class wxImageList : public wxObject { public: + // turn off this typemap + %typemap(out) wxImageList*; + wxImageList(int width, int height, int mask=true, int initialCount=1); ~wxImageList(); + + // Turn it back on again + %typemap(out) wxImageList* { $result = wxPyMake_wxObject($1, $owner); } int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap); %Rename(AddWithColourMask,int, Add(const wxBitmap& bitmap, const wxColour& maskColour));