Add wxTreeCtrl::GetStateImageCount() and HasStateImages()
Add these functions for consistency with SetStateImages() and to avoid using GetStateImageList() in the treectrl sample, which can now use GetStateImageCount() instead.
This commit is contained in:
parent
a5449a94a1
commit
f9a22962e0
3 changed files with 34 additions and 1 deletions
|
|
@ -62,6 +62,11 @@ public:
|
|||
// (for example, checked/unchecked).
|
||||
virtual void SetStateImages(const wxVector<wxBitmapBundle>& images) = 0;
|
||||
|
||||
// Simple accessors similar to the inherited from wxWithImages
|
||||
// HasImages() and GetImageCount() for normal images.
|
||||
bool HasStateImages() const { return m_imagesState.HasImages(); }
|
||||
int GetStateImageCount() const { return m_imagesState.GetImageCount(); }
|
||||
|
||||
// These functions parallel {Set,Get,Assign}ImageList() methods
|
||||
// inherited from wxWithImages, but correspond to SetStateImages().
|
||||
// As with the other functions using wxImageList, they still work but
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue