| e8555c89 Andy McCall |
1 |
#ifndef IMGUI_SLOTMAP_HH |
| 2 |
#define IMGUI_SLOTMAP_HH |
| 3 |
|
| 4 |
#include "ImGuiPart.hh" |
| 5 |
|
| 6 |
namespace openmsx { |
| 7 |
|
| 8 |
class ImGuiSlotMap final : public ImGuiPart |
| 9 |
{ |
| 10 |
public: |
| 11 |
using ImGuiPart::ImGuiPart; |
| 12 |
|
| 13 |
[[nodiscard]] zstring_view iniName() const override { return "slot-map"; } |
| 14 |
void save(ImGuiTextBuffer& buf) override; |
| 15 |
void loadLine(std::string_view name, zstring_view value) override; |
| 16 |
void paint(MSXMotherBoard* motherBoard) override; |
| 17 |
|
| 18 |
public: |
| 19 |
bool show = false; |
| 20 |
|
| 21 |
private: |
| 22 |
static constexpr auto persistentElements = std::tuple{ |
| 23 |
PersistentElement{"show", &ImGuiSlotMap::show} |
| 24 |
}; |
| 25 |
}; |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
#endif |