OXYGENHUB
◆ main openmsx / src / imgui / ImGuiConnector.hh
601 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
#ifndef IMGUI_CONNECTOR_HH
2
#define IMGUI_CONNECTOR_HH
3
4
#include "ImGuiPart.hh"
5
6
namespace openmsx {
7
8
class PluggingController;
9
class Connector;
10
class Pluggable;
11
12
class ImGuiConnector final : public ImGuiPart
13
{
14
public:
15
	using ImGuiPart::ImGuiPart;
16
17
	void showMenu(MSXMotherBoard* motherBoard) override;
18
19
	enum class Mode {
20
		COMBO,
21
		VIEW,
22
		SUBMENU
23
	};
24
	void showPluggables(PluggingController& controller, Mode mode);
25
26
private:
27
	void paintPluggableSelectables(PluggingController& controller, const Connector& connector);
28
	void paintImGuiExtra(Pluggable& pluggable);
29
};
30
31
} // namespace openmsx
32
33
#endif