OXYGENHUB
◆ main openmsx / src / imgui / ImGuiPlotterViewer.hh
654 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
1
#ifndef IMGUI_PLOTTER_VIEWER_HH
2
#define IMGUI_PLOTTER_VIEWER_HH
3
4
#include "ImGuiPart.hh"
5
6
namespace openmsx {
7
8
class ImGuiPlotterViewer final : public ImGuiPart {
9
public:
10
	explicit ImGuiPlotterViewer(ImGuiManager &manager);
11
12
	[[nodiscard]] zstring_view iniName() const override {
13
		return "Plotter viewer";
14
	}
15
	void save(ImGuiTextBuffer& buf) override;
16
	void loadLine(std::string_view name, zstring_view value) override;
17
	void paint(MSXMotherBoard* motherBoard) override;
18
19
	bool show = false;
20
21
private:
22
	static constexpr auto persistentElements = std::tuple{
23
		PersistentElement{"show", &ImGuiPlotterViewer::show},
24
	};
25
};
26
27
} // namespace openmsx
28
29
#endif