]>
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"
37 #include "wx/palmos/imaglist.h"
38 #include "wx/palmos/private.h"
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
45 IMPLEMENT_DYNAMIC_CLASS(wxImageList
, wxObject
)
47 #define GetHImageList() ((HIMAGELIST)m_hImageList)
49 // ----------------------------------------------------------------------------
51 // ----------------------------------------------------------------------------
53 // ============================================================================
55 // ============================================================================
57 // ----------------------------------------------------------------------------
58 // wxImageList creation/destruction
59 // ----------------------------------------------------------------------------
61 wxImageList::wxImageList()
65 // Creates an image list
66 bool wxImageList::Create(int width
, int height
, bool mask
, int initial
)
71 wxImageList::~wxImageList()
75 // ----------------------------------------------------------------------------
76 // wxImageList attributes
77 // ----------------------------------------------------------------------------
79 int wxImageList::GetImageCount() const
84 bool wxImageList::GetSize(int WXUNUSED(index
), int &width
, int &height
) const
89 // ----------------------------------------------------------------------------
90 // wxImageList operations
91 // ----------------------------------------------------------------------------
93 int wxImageList::Add(const wxBitmap
& bitmap
, const wxBitmap
& mask
)
98 int wxImageList::Add(const wxBitmap
& bitmap
, const wxColour
& maskColour
)
103 int wxImageList::Add(const wxIcon
& icon
)
108 bool wxImageList::Replace(int index
,
109 const wxBitmap
& bitmap
, const wxBitmap
& mask
)
114 bool wxImageList::Replace(int i
, const wxIcon
& icon
)
119 bool wxImageList::Remove(int index
)
124 bool wxImageList::RemoveAll()
129 bool wxImageList::Draw(int index
,
133 bool solidBackground
)