]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/withimages.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: Interface of wxWithImages class.
4 // Licence: wxWindows licence
5 ///////////////////////////////////////////////////////////////////////////////
8 A mixin class to be used with other classes that use a wxImageList.
19 virtual ~wxWithImages();
22 Sets the image list for the page control and takes ownership of the list.
24 @see wxImageList, SetImageList()
26 void AssignImageList(wxImageList
* imageList
);
29 Sets the image list to use. It does not take ownership of the image
30 list, you must delete it yourself.
32 @see wxImageList, AssignImageList()
34 virtual void SetImageList(wxImageList
* imageList
);
37 Returns the associated image list, may be NULL.
39 @see wxImageList, SetImageList()
41 wxImageList
* GetImageList() const;
45 Return true if we have a valid image list.
47 bool HasImageList() const;
50 Return the image with the given index from the image list.
52 If there is no image list or if index == NO_IMAGE, silently returns
55 wxIcon
GetImage(int iconIndex
) const;