From 3bd28ef9e8e73ab61b0ab59e921ea4d4d52bb831 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 12 Nov 2021 17:48:44 +0000 Subject: [PATCH] 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. --- include/wx/withimages.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/withimages.h b/include/wx/withimages.h index 697c842f43..9626cb1dca 100644 --- a/include/wx/withimages.h +++ b/include/wx/withimages.h @@ -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()