]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/imaglist.cpp
1f683f5c75ec72d934c475f47c436a77d31b60de
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "imaglist.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
32 #include "wx/window.h"
35 #include "wx/string.h"
36 #include "wx/dcmemory.h"
42 #include "wx/palmos/imaglist.h"
43 #include "wx/palmos/private.h"
46 // ----------------------------------------------------------------------------
48 // ----------------------------------------------------------------------------
50 IMPLEMENT_DYNAMIC_CLASS(wxImageList
, wxObject
)
52 #define GetHImageList() ((HIMAGELIST)m_hImageList)
54 // ----------------------------------------------------------------------------
56 // ----------------------------------------------------------------------------
58 // ============================================================================
60 // ============================================================================
62 // ----------------------------------------------------------------------------
63 // wxImageList creation/destruction
64 // ----------------------------------------------------------------------------
66 wxImageList::wxImageList()
70 // Creates an image list
71 bool wxImageList::Create(int width
, int height
, bool mask
, int initial
)
76 wxImageList::~wxImageList()
80 // ----------------------------------------------------------------------------
81 // wxImageList attributes
82 // ----------------------------------------------------------------------------
84 int wxImageList::GetImageCount() const
89 bool wxImageList::GetSize(int WXUNUSED(index
), int &width
, int &height
) const
94 // ----------------------------------------------------------------------------
95 // wxImageList operations
96 // ----------------------------------------------------------------------------
98 int wxImageList::Add(const wxBitmap
& bitmap
, const wxBitmap
& mask
)
103 int wxImageList::Add(const wxBitmap
& bitmap
, const wxColour
& maskColour
)
108 int wxImageList::Add(const wxIcon
& icon
)
113 bool wxImageList::Replace(int index
,
114 const wxBitmap
& bitmap
, const wxBitmap
& mask
)
119 bool wxImageList::Replace(int i
, const wxIcon
& icon
)
124 bool wxImageList::Remove(int index
)
129 bool wxImageList::RemoveAll()
134 bool wxImageList::Draw(int index
,
138 bool solidBackground
)