1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: SWIG interface defs for wxImageList and releated classes
7 // Created: 7-July-1997
9 // Copyright: (c) 2003 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
16 //---------------------------------------------------------------------------
21 //---------------------------------------------------------------------------
25 wxIMAGELIST_DRAW_NORMAL ,
26 wxIMAGELIST_DRAW_TRANSPARENT,
27 wxIMAGELIST_DRAW_SELECTED,
28 wxIMAGELIST_DRAW_FOCUSED,
36 MustHaveApp(wxImageList);
39 // wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to
40 // images for their items by an index into an image list.
41 // A wxImageList is capable of creating images with optional masks from
42 // a variety of sources - a single bitmap plus a colour to indicate the mask,
43 // two bitmaps, or an icon.
44 class wxImageList : public wxObject {
46 // turn off this typemap
47 %typemap(out) wxImageList*;
49 wxImageList(int width, int height, int mask=true, int initialCount=1);
52 // Turn it back on again
53 %typemap(out) wxImageList* { $result = wxPyMake_wxObject($1, $owner); }
55 int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
56 %Rename(AddWithColourMask,int, Add(const wxBitmap& bitmap, const wxColour& maskColour));
57 %Rename(AddIcon,int, Add(const wxIcon& icon));
59 wxBitmap GetBitmap(int index) const;
60 wxIcon GetIcon(int index) const;
62 bool Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
64 bool Draw(int index, wxDC& dc, int x, int x, int flags = wxIMAGELIST_DRAW_NORMAL,
65 const bool solidBackground = false);
68 bool Remove(int index);
72 void, GetSize(int index, int& OUTPUT, int& OUTPUT),
73 "GetSize(index) -> (width,height)");
75 %property(ImageCount, GetImageCount, doc="See `GetImageCount`");
76 %property(Size, GetSize, doc="See `GetSize`");
79 //---------------------------------------------------------------------------