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<ValueSpec> values {
28 .reader = [ev] {
return ev->is_active() ?
"true" :
"false"; },
34 std::vector<RowBuffer> rbufs;
35 rbufs.reserve(values.size());
36 for (
const auto& spec : values)
40 surface, cursor, x_min, x_max, row_h,
false);
43 result.
group = std::move(group);
50 float x_min,
float x_max,
float row_h)
52 const std::vector<ValueSpec> root_values {
63 std::vector<RowBuffer> rbufs;
64 rbufs.reserve(root_values.size());
65 for (
const auto& spec : root_values)
69 surface, cursor, x_min, x_max, row_h,
true);
72 result.
group = std::move(root_group);
80 std::string header_label =
"(unnamed)";
81 for (
const auto& n : names) {
88 std::vector<ValueSpec> values {
91 .reader = [ev] {
return ev->is_active() ?
"true" :
"false"; },
97 std::vector<RowBuffer> ev_rbufs;
98 ev_rbufs.reserve(values.size());
99 for (
const auto& spec : values)
103 surface, cursor, x_min, x_max, row_h,
false);
106 ev_result.
group = std::move(ev_group);
109 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)