about summary refs log blame commit diff stats
path: root/src/icons.h
blob: 23dca2ab90e30250fe8dec6626a5d6b4a3302006 (plain) (tree)























                                                                    
#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 */