From 6e0f691a96fb54d99cc265088d2d8f389519af0a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 7 Mar 2025 14:52:13 -0500 Subject: Share icons across popups --- src/icons.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/icons.h (limited to 'src/icons.h') diff --git a/src/icons.h b/src/icons.h new file mode 100644 index 0000000..23dca2a --- /dev/null +++ b/src/icons.h @@ -0,0 +1,25 @@ +#ifndef ICONS_H_B95159A6 +#define ICONS_H_B95159A6 + +#include + +#ifndef WX_PRECOMP +#include +#endif + +#include +#include +#include + +class IconCache { + public: + const wxBitmap* GetIcon(const std::string& filename, wxSize size); + + private: + std::map, wxBitmap> icons_; +}; + +void SetTheIconCache(IconCache* instance); +IconCache& GetTheIconCache(); + +#endif /* end of include guard: ICONS_H_B95159A6 */ -- cgit 1.4.1