1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling, Stefan Csomor
7 // Copyright: (c) 1998 Robert Roebling and Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_IMAGLIST_H_
12 #define _WX_IMAGLIST_H_
18 class WXDLLIMPEXP_FWD_CORE wxDC
;
19 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
20 class WXDLLIMPEXP_FWD_CORE wxColour
;
22 class WXDLLIMPEXP_CORE wxImageList
: public wxObject
25 wxImageList() { m_width
= m_height
= 0; }
26 wxImageList( int width
, int height
, bool mask
= true, int initialCount
= 1 );
27 virtual ~wxImageList();
28 bool Create( int width
, int height
, bool mask
= true, int initialCount
= 1 );
31 virtual int GetImageCount() const;
32 virtual bool GetSize( int index
, int &width
, int &height
) const;
34 int Add( const wxIcon
& bitmap
);
35 int Add( const wxBitmap
& bitmap
);
36 int Add( const wxBitmap
& bitmap
, const wxBitmap
& mask
);
37 int Add( const wxBitmap
& bitmap
, const wxColour
& maskColour
);
38 wxBitmap
GetBitmap(int index
) const;
39 wxIcon
GetIcon(int index
) const;
40 bool Replace( int index
, const wxIcon
&bitmap
);
41 bool Replace( int index
, const wxBitmap
&bitmap
);
42 bool Replace( int index
, const wxBitmap
&bitmap
, const wxBitmap
&mask
);
43 bool Remove( int index
);
46 virtual bool Draw(int index
, wxDC
& dc
, int x
, int y
,
47 int flags
= wxIMAGELIST_DRAW_NORMAL
,
48 bool solidBackground
= false);
56 DECLARE_DYNAMIC_CLASS(wxImageList
)
59 #endif // _WX_IMAGLIST_H_