OXYGENHUB
◆ main openmsx / src / imgui / ImGuiIoPorts.hh
747 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
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
	// Note: not "ioports", that's already taken by the hex editor on the
14
	// 'ioports' debuggable (DebuggableEditor::iniName() returns its title).
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
} // namespace openmsx
30
31
#endif