diff options
Diffstat (limited to 'src/icons.h')
-rw-r--r-- | src/icons.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ | |||
1 | #ifndef ICONS_H_B95159A6 | ||
2 | #define ICONS_H_B95159A6 | ||
3 | |||
4 | #include <wx/wxprec.h> | ||
5 | |||
6 | #ifndef WX_PRECOMP | ||
7 | #include <wx/wx.h> | ||
8 | #endif | ||
9 | |||
10 | #include <map> | ||
11 | #include <string> | ||
12 | #include <tuple> | ||
13 | |||
14 | class IconCache { | ||
15 | public: | ||
16 | const wxBitmap* GetIcon(const std::string& filename, wxSize size); | ||
17 | |||
18 | private: | ||
19 | std::map<std::tuple<std::string, int, int>, wxBitmap> icons_; | ||
20 | }; | ||
21 | |||
22 | void SetTheIconCache(IconCache* instance); | ||
23 | IconCache& GetTheIconCache(); | ||
24 | |||
25 | #endif /* end of include guard: ICONS_H_B95159A6 */ | ||