about summary refs log tree commit diff stats
path: root/src/icons.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-07 14:52:13 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-07 14:52:13 -0500
commit6e0f691a96fb54d99cc265088d2d8f389519af0a (patch)
tree4627947e9c2bf81711490ee085e1a89b592fecfe /src/icons.h
parentba59d40760e2a5a11bfbe2f7cf6b0e2a71b590d7 (diff)
downloadlingo-ap-tracker-6e0f691a96fb54d99cc265088d2d8f389519af0a.tar.gz
lingo-ap-tracker-6e0f691a96fb54d99cc265088d2d8f389519af0a.tar.bz2
lingo-ap-tracker-6e0f691a96fb54d99cc265088d2d8f389519af0a.zip
Share icons across popups
Diffstat (limited to 'src/icons.h')
-rw-r--r--src/icons.h25
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
14class 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
22void SetTheIconCache(IconCache* instance);
23IconCache& GetTheIconCache();
24
25#endif /* end of include guard: ICONS_H_B95159A6 */