]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/imaglist.h
removed extra wxCalendarCtrl:: which is ignored by MSVC for some reason but breaks...
[wxWidgets.git] / include / wx / mac / carbon / imaglist.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: imaglist.h
3 // Purpose:
4 // Author: Robert Roebling, Stefan Csomor
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling and Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_IMAGLIST_H_
12 #define _WX_IMAGLIST_H_
13
14 #include "wx/defs.h"
15 #include "wx/list.h"
16 #include "wx/icon.h"
17
18 class WXDLLIMPEXP_FWD_CORE wxDC;
19 class WXDLLIMPEXP_FWD_CORE wxBitmap;
20 class WXDLLIMPEXP_FWD_CORE wxColour;
21
22 class WXDLLIMPEXP_CORE wxImageList: public wxObject
23 {
24 public:
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 );
29 bool Create();
30
31 virtual int GetImageCount() const;
32 virtual bool GetSize( int index, int &width, int &height ) const;
33
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 );
44 bool RemoveAll();
45
46 virtual bool Draw(int index, wxDC& dc, int x, int y,
47 int flags = wxIMAGELIST_DRAW_NORMAL,
48 bool solidBackground = false);
49
50 private:
51 wxList m_images;
52
53 int m_width;
54 int m_height;
55
56 DECLARE_DYNAMIC_CLASS(wxImageList)
57 };
58
59 #endif // _WX_IMAGLIST_H_
60