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