Add <functional> to files that use std::function
[lsnes.git] / include / platform / wxwidgets / menu_loadrom.hpp
blob25f88e029db51375d31488c4b020ad7f3134daf0
1 #ifndef _plat_wxwidgets__menu_loadrom__hpp__included__
2 #define _plat_wxwidgets__menu_loadrom__hpp__included__
4 #include <functional>
5 #include <wx/string.h>
6 #include <wx/wx.h>
7 #include "interface/romtype.hpp"
8 #include "core/dispatch.hpp"
9 #include <map>
11 class loadrom_menu : public wxMenu
13 public:
14 loadrom_menu(wxWindow* win, int wxid_low, int wxid_high, std::function<void(core_type* name)> cb);
15 void on_select(wxCommandEvent& e);
16 void update();
17 private:
18 wxWindow* pwin;
19 std::map<int, core_type*> entries;
20 std::map<int, wxMenuItem*> items;
21 int wxid_range_low;
22 int wxid_range_high;
23 std::function<void(core_type* name)> callback;
24 struct dispatch::target<> corelistener;
27 #endif