]> git.saurik.com Git - wxWidgets.git/blame - include/wx/osx/imaglist.h
Bring osx class naming into line with the other ports.
[wxWidgets.git] / include / wx / osx / imaglist.h
CommitLineData
6762286d 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/osx/imaglist.h
6762286d
SC
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
18class WXDLLIMPEXP_FWD_CORE wxDC;
19class WXDLLIMPEXP_FWD_CORE wxBitmap;
20class WXDLLIMPEXP_FWD_CORE wxColour;
21
22class WXDLLIMPEXP_CORE wxImageList: public wxObject
23{
24public:
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();
03647350 30
6762286d
SC
31 virtual int GetImageCount() const;
32 virtual bool GetSize( int index, int &width, int &height ) const;
03647350 33
6762286d
SC
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();
03647350 45
6762286d
SC
46 virtual bool Draw(int index, wxDC& dc, int x, int y,
47 int flags = wxIMAGELIST_DRAW_NORMAL,
48 bool solidBackground = false);
03647350 49
6762286d
SC
50private:
51 wxList m_images;
03647350 52
6762286d
SC
53 int m_width;
54 int m_height;
03647350 55
6762286d
SC
56 DECLARE_DYNAMIC_CLASS(wxImageList)
57};
58
59#endif // _WX_IMAGLIST_H_
60