#include <wx/withimages.h>
A mixin class to be used with other classes that use a wxImageList.
Public Types | |
enum | { NO_IMAGE = -1 } |
Public Member Functions | |
wxWithImages () | |
virtual | ~wxWithImages () |
void | AssignImageList (wxImageList *imageList) |
Sets the image list for the page control and takes ownership of the list. | |
virtual void | SetImageList (wxImageList *imageList) |
Sets the image list to use. | |
wxImageList * | GetImageList () const |
Returns the associated image list, may be NULL. | |
Protected Member Functions | |
bool | HasImageList () const |
Return true if we have a valid image list. | |
wxIcon | GetImage (int iconIndex) const |
Return the image with the given index from the image list. | |
wxWithImages::wxWithImages | ( | ) |
|
virtual |
void wxWithImages::AssignImageList | ( | wxImageList * | imageList | ) |
Sets the image list for the page control and takes ownership of the list.
Return the image with the given index from the image list.
If there is no image list or if index == NO_IMAGE, silently returns wxNullIcon.
wxImageList * wxWithImages::GetImageList | ( | ) | const |
Returns the associated image list, may be NULL.
|
protected |
Return true if we have a valid image list.
|
virtual |
Sets the image list to use.
It does not take ownership of the image list, you must delete it yourself.