X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/13112643aa94610683c95c4d58800d4d49e74260..9ac884500ce30c58e24b0a6af1288b576d2e03e4:/wxPython/src/_imaglist.i?ds=sidebyside diff --git a/wxPython/src/_imaglist.i b/wxPython/src/_imaglist.i index b0c0974868..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)); @@ -53,13 +59,7 @@ public: wxBitmap GetBitmap(int index) const; wxIcon GetIcon(int index) const; -#ifdef __WXMSW__ bool Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap); -#else -// %Rename(ReplaceIcon,bool, Replace(int index, const wxIcon& icon)); -// int Add(const wxBitmap& bitmap); - bool Replace(int index, const wxBitmap& bitmap); -#endif bool Draw(int index, wxDC& dc, int x, int x, int flags = wxIMAGELIST_DRAW_NORMAL, const bool solidBackground = false); @@ -70,8 +70,10 @@ public: DocDeclA( void, GetSize(int index, int& OUTPUT, int& OUTPUT), - "GetSize() -> (width,height)"); + "GetSize(index) -> (width,height)"); + %property(ImageCount, GetImageCount, doc="See `GetImageCount`"); + %property(Size, GetSize, doc="See `GetSize`"); }; //---------------------------------------------------------------------------