11 const std::shared_ptr<Vruta::Event>& ev,
12 std::string_view
name,
15 float x_min,
float x_max,
float row_h)
17 const std::string header_label =
name.empty() ?
"(unnamed)" : std::string(
name);
19 std::vector<EntrySpec> entrys {
28 .reader = [ev] {
return ev->is_active() ?
"true" :
"false"; },
36 surface, cursor, x_min, x_max, row_h,
false);
39 result.
group = std::move(group);
46 float x_min,
float x_max,
float row_h)
52 const std::vector<EntrySpec> root_entrys {
64 auto root_group =
make_entry_group(root_entrys,
"EventManager", std::move(hbuf), rbufs,
65 surface, cursor, x_min, x_max, row_h,
true);
68 result.
group = std::move(root_group);
76 std::string header_label =
"(unnamed)";
77 for (
const auto& n : names) {
84 std::vector<EntrySpec> entrys {
87 .reader = [ev] {
return ev->is_active() ?
"true" :
"false"; },
94 auto ev_group =
make_entry_group(entrys, header_label, std::move(ev_hbuf), ev_rbufs,
95 surface, cursor, x_min, x_max, row_h,
false);
98 ev_result.
group = std::move(ev_group);
101 result.
children.push_back(std::move(ev_result));
std::vector< std::string > get_event_names() const
Get all event names for debugging/inspection.
std::vector< std::shared_ptr< Event > > get_all_events() const
Get all managed events.
std::shared_ptr< Event > get_event(const std::string &name) const
Get a named event.
constexpr std::string_view enum_to_string(EnumType value) noexcept
Universal enum to string converter using magic_enum (original case)
A single entry to display in a EntryGroup body row.