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:
Vadim Zeitlin
2021-11-12 17:48:44 +00:00
parent 5ae30d2fbe
commit 3bd28ef9e8

View File

@@ -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()