]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/imaglist.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/imaglist.cpp
3 // Purpose: wxImageList implementation for Palm OS
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
28 #include "wx/window.h"
31 #include "wx/string.h"
32 #include "wx/dcmemory.h"
38 #include "wx/palmos/imaglist.h"
39 #include "wx/palmos/private.h"
42 // ----------------------------------------------------------------------------
44 // ----------------------------------------------------------------------------
46 IMPLEMENT_DYNAMIC_CLASS(wxImageList
, wxObject
)
48 #define GetHImageList() ((HIMAGELIST)m_hImageList)
50 // ----------------------------------------------------------------------------
52 // ----------------------------------------------------------------------------
54 // ============================================================================
56 // ============================================================================
58 // ----------------------------------------------------------------------------
59 // wxImageList creation/destruction
60 // ----------------------------------------------------------------------------
62 wxImageList::wxImageList()
66 // Creates an image list
67 bool wxImageList::Create(int width
, int height
, bool mask
, int initial
)
72 wxImageList::~wxImageList()
76 // ----------------------------------------------------------------------------
77 // wxImageList attributes
78 // ----------------------------------------------------------------------------
80 int wxImageList::GetImageCount() const
85 bool wxImageList::GetSize(int WXUNUSED(index
), int &width
, int &height
) const
90 // ----------------------------------------------------------------------------
91 // wxImageList operations
92 // ----------------------------------------------------------------------------
94 int wxImageList::Add(const wxBitmap
& bitmap
, const wxBitmap
& mask
)
99 int wxImageList::Add(const wxBitmap
& bitmap
, const wxColour
& maskColour
)
104 int wxImageList::Add(const wxIcon
& icon
)
109 bool wxImageList::Replace(int index
,
110 const wxBitmap
& bitmap
, const wxBitmap
& mask
)
115 bool wxImageList::Replace(int i
, const wxIcon
& icon
)
120 bool wxImageList::Remove(int index
)
125 bool wxImageList::RemoveAll()
130 bool wxImageList::Draw(int index
,
134 bool solidBackground
)