]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/withimages.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: Interface of wxWithImages class.
5 // Licence: wxWindows licence
6 ///////////////////////////////////////////////////////////////////////////////
9 A mixin class to be used with other classes that use a wxImageList.
20 virtual ~wxWithImages();
23 Sets the image list for the page control and takes ownership of the list.
25 @see wxImageList, SetImageList()
27 void AssignImageList(wxImageList
* imageList
);
30 Sets the image list to use. It does not take ownership of the image
31 list, you must delete it yourself.
33 @see wxImageList, AssignImageList()
35 virtual void SetImageList(wxImageList
* imageList
);
38 Returns the associated image list, may be NULL.
40 @see wxImageList, SetImageList()
42 wxImageList
* GetImageList() const;
46 Return true if we have a valid image list.
48 bool HasImageList() const;
51 Return the image with the given index from the image list.
53 If there is no image list or if index == NO_IMAGE, silently returns
56 wxIcon
GetImage(int iconIndex
) const;