OXYGENHUB
◆ main openmsx / src / imgui / ImGuiKeyboard.hh
614 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef IMGUI_KEYBOARD_HH
2
#define IMGUI_KEYBOARD_HH
3
4
#include "ImGuiPart.hh"
5
6
namespace openmsx {
7
8
class ImGuiKeyboard final : public ImGuiPart
9
{
10
public:
11
	using ImGuiPart::ImGuiPart;
12
13
	[[nodiscard]] zstring_view iniName() const override { return "virtual keyboard"; }
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", &ImGuiKeyboard::show}
24
	};
25
};
26
27
} // namespace openmsx
28
29
#endif