blob: 23dca2ab90e30250fe8dec6626a5d6b4a3302006 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef ICONS_H_B95159A6
#define ICONS_H_B95159A6
#include <wx/wxprec.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <map>
#include <string>
#include <tuple>
class IconCache {
public:
const wxBitmap* GetIcon(const std::string& filename, wxSize size);
private:
std::map<std::tuple<std::string, int, int>, wxBitmap> icons_;
};
void SetTheIconCache(IconCache* instance);
IconCache& GetTheIconCache();
#endif /* end of include guard: ICONS_H_B95159A6 */
|