]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/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
33 ////////////////////////////////////////////////////////////////////////////
35 // Returns the number of images in the image list.
36 int wxImageList::GetImageCount() const
43 bool wxImageList::GetSize(int index
, int &width
, int &hieght
) const
51 ////////////////////////////////////////////////////////////////////////////
53 // Creates an image list
54 bool wxImageList::Create(int width
, int height
, bool mask
, int initial
)
60 // Adds a bitmap, and optionally a mask bitmap.
61 // Note that wxImageList creates new bitmaps, so you may delete
62 // 'bitmap' and 'mask'.
63 int wxImageList::Add(const wxBitmap
& bitmap
, const wxBitmap
& mask
)
69 // Adds a bitmap, using the specified colour to create the mask bitmap
70 // Note that wxImageList creates new bitmaps, so you may delete
72 int wxImageList::Add(const wxBitmap
& bitmap
, const wxColour
& maskColour
)
78 // Adds a bitmap and mask from an icon.
79 int wxImageList::Add(const wxIcon
& icon
)
85 // Replaces a bitmap, optionally passing a mask bitmap.
86 // Note that wxImageList creates new bitmaps, so you may delete
87 // 'bitmap' and 'mask'.
88 bool wxImageList::Replace(int index
, const wxBitmap
& bitmap
, const wxBitmap
& mask
)
94 // Replaces a bitmap and mask from an icon.
95 bool wxImageList::Replace(int index
, const wxIcon
& icon
)
101 // Removes the image at the given index.
102 bool wxImageList::Remove(int index
)
109 bool wxImageList::RemoveAll()
115 // Draws the given image on a dc at the specified position.
116 // If 'solidBackground' is TRUE, Draw sets the image list background
117 // colour to the background colour of the wxDC, to speed up
118 // drawing by eliminating masked drawing where possible.
119 bool wxImageList::Draw(int index
, wxDC
& dc
, int x
, int y
,
120 int flags
, bool solidBackground
)