X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d14a1e28567de23c586bc80017073d0c39f8d18f..0d2653ff9752af0cb4ba2b9fc9090700805cb4c5:/wxPython/src/_imaglist.i?ds=sidebyside diff --git a/wxPython/src/_imaglist.i b/wxPython/src/_imaglist.i index f436666cb8..b5df300010 100644 --- a/wxPython/src/_imaglist.i +++ b/wxPython/src/_imaglist.i @@ -33,6 +33,8 @@ enum { }; +MustHaveApp(wxImageList); + // wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to // images for their items by an index into an image list. @@ -41,7 +43,7 @@ enum { // two bitmaps, or an icon. class wxImageList : public wxObject { public: - wxImageList(int width, int height, int mask=TRUE, int initialCount=1); + wxImageList(int width, int height, int mask=true, int initialCount=1); ~wxImageList(); int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap); @@ -56,12 +58,16 @@ public: #endif bool Draw(int index, wxDC& dc, int x, int x, int flags = wxIMAGELIST_DRAW_NORMAL, - const bool solidBackground = FALSE); + const bool solidBackground = false); int GetImageCount(); bool Remove(int index); bool RemoveAll(); - void GetSize(int index, int& OUTPUT, int& OUTPUT); + + DocDeclA( + void, GetSize(int index, int& OUTPUT, int& OUTPUT), + "GetSize() -> (width,height)"); + }; //---------------------------------------------------------------------------