]>
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/imaglist.h"
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 IMPLEMENT_DYNAMIC_CLASS(wxImageList
, wxObject
)
45 #define GetHImageList() ((HIMAGELIST)m_hImageList)
47 // ----------------------------------------------------------------------------
49 // ----------------------------------------------------------------------------
51 // ============================================================================
53 // ============================================================================
55 // ----------------------------------------------------------------------------
56 // wxImageList creation/destruction
57 // ----------------------------------------------------------------------------
59 wxImageList::wxImageList()
63 // Creates an image list
64 bool wxImageList::Create(int width
, int height
, bool mask
, int initial
)
69 wxImageList::~wxImageList()
73 // ----------------------------------------------------------------------------
74 // wxImageList attributes
75 // ----------------------------------------------------------------------------
77 int wxImageList::GetImageCount() const
82 bool wxImageList::GetSize(int WXUNUSED(index
), int &width
, int &height
) const
87 // ----------------------------------------------------------------------------
88 // wxImageList operations
89 // ----------------------------------------------------------------------------
91 int wxImageList::Add(const wxBitmap
& bitmap
, const wxBitmap
& mask
)
96 int wxImageList::Add(const wxBitmap
& bitmap
, const wxColour
& maskColour
)
101 int wxImageList::Add(const wxIcon
& icon
)
106 bool wxImageList::Replace(int index
,
107 const wxBitmap
& bitmap
, const wxBitmap
& mask
)
112 bool wxImageList::Replace(int i
, const wxIcon
& icon
)
117 bool wxImageList::Remove(int index
)
122 bool wxImageList::RemoveAll()
127 bool wxImageList::Draw(int index
,
131 bool solidBackground
)