]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_imaglist.i
Applied [ 880011 ] Several fixes to DbBrowse demo
[wxWidgets.git] / wxPython / src / _imaglist.i
CommitLineData
d14a1e28
RD
1/////////////////////////////////////////////////////////////////////////////
2// Name: _imaglist.i
3// Purpose: SWIG interface defs for wxImageList and releated classes
4//
5// Author: Robin Dunn
6//
7// Created: 7-July-1997
8// RCS-ID: $Id$
9// Copyright: (c) 2003 by Total Control Software
10// Licence: wxWindows license
11/////////////////////////////////////////////////////////////////////////////
12
13// Not a %module
14
15
16//---------------------------------------------------------------------------
17
18%{
19%}
20
21//---------------------------------------------------------------------------
22%newgroup
23
24enum {
25 wxIMAGELIST_DRAW_NORMAL ,
26 wxIMAGELIST_DRAW_TRANSPARENT,
27 wxIMAGELIST_DRAW_SELECTED,
28 wxIMAGELIST_DRAW_FOCUSED,
29
30 wxIMAGE_LIST_NORMAL,
31 wxIMAGE_LIST_SMALL,
32 wxIMAGE_LIST_STATE
33};
34
35
36
37// wxImageList is used for wxListCtrl, wxTreeCtrl. These controls refer to
38// images for their items by an index into an image list.
39// A wxImageList is capable of creating images with optional masks from
40// a variety of sources - a single bitmap plus a colour to indicate the mask,
41// two bitmaps, or an icon.
42class wxImageList : public wxObject {
43public:
dd9f7fea 44 wxImageList(int width, int height, int mask=True, int initialCount=1);
d14a1e28
RD
45 ~wxImageList();
46
47 int Add(const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
48 %name(AddWithColourMask)int Add(const wxBitmap& bitmap, const wxColour& maskColour);
49 %name(AddIcon)int Add(const wxIcon& icon);
50#ifdef __WXMSW__
51 bool Replace(int index, const wxBitmap& bitmap, const wxBitmap& mask = wxNullBitmap);
52#else
53// %name(ReplaceIcon)bool Replace(int index, const wxIcon& icon);
54// int Add(const wxBitmap& bitmap);
55 bool Replace(int index, const wxBitmap& bitmap);
56#endif
57
58 bool Draw(int index, wxDC& dc, int x, int x, int flags = wxIMAGELIST_DRAW_NORMAL,
dd9f7fea 59 const bool solidBackground = False);
d14a1e28
RD
60
61 int GetImageCount();
62 bool Remove(int index);
63 bool RemoveAll();
322913ce
RD
64
65 DocDeclA(
66 void, GetSize(int index, int& OUTPUT, int& OUTPUT),
67 "GetSize() -> (width,height)");
68
d14a1e28
RD
69};
70
71//---------------------------------------------------------------------------