18 enum class SectionType {
29 SectionType type = SectionType::kText;
33 std::vector<section> sections;
35 void add_section(SectionType type,
const std::string& content) {
36 sections.push_back({ type, content });
41 std::vector<gui_group_ptr> groups;
52 void on_register()
override;
55 void unregister()
override;
62 add_section(SectionType::kHeading1, text);
67 add_section(SectionType::kHeading2, text);
72 add_section(SectionType::kHeading3, text);
77 add_section(SectionType::kHeading4, text);
82 add_section(SectionType::kText, text);
89 add_section(SectionType::kItems, items);
96 add_section(SectionType::kKeyBindings, key_bindings);