openMSX
ImGuiTrainer.hh
Go to the documentation of this file.
1#ifndef IMGUI_TRAINER_HH
2#define IMGUI_TRAINER_HH
3
4#include "ImGuiPart.hh"
5
6#include "TclObject.hh"
7
8#include <optional>
9
10namespace openmsx {
11
12class ImGuiTrainer final : public ImGuiPart
13{
14public:
16
17 [[nodiscard]] zstring_view iniName() const override { return "trainer"; }
18 void save(ImGuiTextBuffer& buf) override;
19 void loadLine(std::string_view name, zstring_view value) override;
20 void paint(MSXMotherBoard* motherBoard) override;
21
22public:
23 bool show = false;
24
25private:
26 std::optional<TclObject> trainers;
27 std::vector<std::string> gameNames; // calculated from 'trainers'
28 std::string filterString;
29
30 static constexpr auto persistentElements = std::tuple{
32 };
33};
34
35} // namespace openmsx
36
37#endif
ImGuiPart(ImGuiManager &manager_)
Definition ImGuiPart.hh:12
void save(ImGuiTextBuffer &buf) override
void loadLine(std::string_view name, zstring_view value) override
void paint(MSXMotherBoard *motherBoard) override
zstring_view iniName() const override
Like std::string_view, but with the extra guarantee that it refers to a zero-terminated string.
This file implemented 3 utility functions:
Definition Autofire.cc:11