Add wxWithImages::GetImages() protected accessor
This is required to be able to implement an object delegating actual
images display to another one, as e.g. wx{List,Tree}book do with
wx{List,Tree}Ctrl.
This commit is contained in:
@@ -192,6 +192,10 @@ protected:
|
||||
return bundle;
|
||||
}
|
||||
|
||||
// Accessor to the images for the derived classes: this is only useful when
|
||||
// delegating SetImages() to another object.
|
||||
const Images& GetImages() const { return m_images; }
|
||||
|
||||
private:
|
||||
// Free the image list if necessary, i.e. if we own it.
|
||||
void FreeIfNeeded()
|
||||
|
||||
Reference in New Issue
Block a user