]>
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 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_DYNAMIC_CLASS(wxImageList
, wxObject
)
22 wxImageList::wxImageList()
24 // TODO: init image list handle, if any
27 wxImageList::~wxImageList()
29 // TODO: destroy image list handle, if any
34 ////////////////////////////////////////////////////////////////////////////
36 // Returns the number of images in the image list.
37 int wxImageList::GetImageCount() const
44 ////////////////////////////////////////////////////////////////////////////
46 // Creates an image list
47 bool wxImageList::Create(int width
, int height
, bool mask
, int initial
)
53 // Adds a bitmap, and optionally a mask bitmap.
54 // Note that wxImageList creates new bitmaps, so you may delete
55 // 'bitmap' and 'mask'.
56 int wxImageList::Add(const wxBitmap
& bitmap
, const wxBitmap
& mask
)
62 // Adds a bitmap, using the specified colour to create the mask bitmap
63 // Note that wxImageList creates new bitmaps, so you may delete
65 int wxImageList::Add(const wxBitmap
& bitmap
, const wxColour
& maskColour
)
71 // Adds a bitmap and mask from an icon.
72 int wxImageList::Add(const wxIcon
& icon
)
78 // Replaces a bitmap, optionally passing a mask bitmap.
79 // Note that wxImageList creates new bitmaps, so you may delete
80 // 'bitmap' and 'mask'.
81 bool wxImageList::Replace(int index
, const wxBitmap
& bitmap
, const wxBitmap
& mask
)
87 // Replaces a bitmap and mask from an icon.
88 bool wxImageList::Replace(int index
, const wxIcon
& icon
)
94 // Removes the image at the given index.
95 bool wxImageList::Remove(int index
)
102 bool wxImageList::RemoveAll()
108 // Draws the given image on a dc at the specified position.
109 // If 'solidBackground' is TRUE, Draw sets the image list background
110 // colour to the background colour of the wxDC, to speed up
111 // drawing by eliminating masked drawing where possible.
112 bool wxImageList::Draw(int index
, wxDC
& dc
, int x
, int y
,
113 int flags
, bool solidBackground
)