]>
git.saurik.com Git - wxWidgets.git/blob - src/stubs/imaglist.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxImageList. You may wish to use the generic version.
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "imaglist.h"
16 #include "wx/stubs/imaglist.h"
18 IMPLEMENT_DYNAMIC_CLASS(wxImageList
, wxObject
)
20 wxImageList::wxImageList()
22 // TODO: init image list handle, if any
25 wxImageList::~wxImageList()
27 // TODO: destroy image list handle, if any
32 ////////////////////////////////////////////////////////////////////////////
34 // Returns the number of images in the image list.
35 int wxImageList::GetImageCount() const
42 ////////////////////////////////////////////////////////////////////////////
44 // Creates an image list
45 bool wxImageList::Create(int width
, int height
, bool mask
, int initial
)
51 // Adds a bitmap, and optionally a mask bitmap.
52 // Note that wxImageList creates new bitmaps, so you may delete
53 // 'bitmap' and 'mask'.
54 int wxImageList::Add(const wxBitmap
& bitmap
, const wxBitmap
& mask
)
60 // Adds a bitmap, using the specified colour to create the mask bitmap
61 // Note that wxImageList creates new bitmaps, so you may delete
63 int wxImageList::Add(const wxBitmap
& bitmap
, const wxColour
& maskColour
)
69 // Adds a bitmap and mask from an icon.
70 int wxImageList::Add(const wxIcon
& icon
)
76 // Replaces a bitmap, optionally passing a mask bitmap.
77 // Note that wxImageList creates new bitmaps, so you may delete
78 // 'bitmap' and 'mask'.
79 bool wxImageList::Replace(int index
, const wxBitmap
& bitmap
, const wxBitmap
& mask
)
85 // Replaces a bitmap and mask from an icon.
86 bool wxImageList::Replace(int index
, const wxIcon
& icon
)
92 // Removes the image at the given index.
93 bool wxImageList::Remove(int index
)
100 bool wxImageList::RemoveAll()
106 // Draws the given image on a dc at the specified position.
107 // If 'solidBackground' is TRUE, Draw sets the image list background
108 // colour to the background colour of the wxDC, to speed up
109 // drawing by eliminating masked drawing where possible.
110 bool wxImageList::Draw(int index
, wxDC
& dc
, int x
, int y
,
111 int flags
, bool solidBackground
)