X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2965bd7b212b7b5080046130ca5369be379566df..5d6f17a5b92df0fdf4909ed78c35b4a86905ec7e:/wxPython/src/_imaglist.i diff --git a/wxPython/src/_imaglist.i b/wxPython/src/_imaglist.i index fafc8ae3e2..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)); @@ -66,6 +72,8 @@ public: void, GetSize(int index, int& OUTPUT, int& OUTPUT), "GetSize(index) -> (width,height)"); + %property(ImageCount, GetImageCount, doc="See `GetImageCount`"); + %property(Size, GetSize, doc="See `GetSize`"); }; //---------------------------------------------------------------------------