Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
inspector_facts.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <string_view>
5#include <vector>
6
7namespace pulp::view {
8
9class View;
10
16 public:
17 struct Fact {
18 std::string key;
19 std::string label;
20 double value = 0.0;
21 bool integral = false;
22 bool show_in_properties = false;
23 };
24
25 virtual ~InspectorFacts();
26 virtual std::string_view inspector_type_name() const = 0;
27 virtual void inspector_facts(std::vector<Fact>& out) const = 0;
28};
29
34std::string view_type_name(const View& view);
35
36} // namespace pulp::view
Lets a widget describe itself to the component inspector (ViewInspector) and to view-core's layout an...
Definition inspector_facts.hpp:15
virtual std::string_view inspector_type_name() const =0
virtual void inspector_facts(std::vector< Fact > &out) const =0
Definition view.hpp:73
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
std::string view_type_name(const View &view)
The type name the inspector and the layout/appearance diagnostics show for view ("Knob",...
Definition inspector_facts.hpp:17
std::string label
row label in ViewInspector::view_properties
Definition inspector_facts.hpp:19
bool show_in_properties
Definition inspector_facts.hpp:22
bool integral
serialized as an integer
Definition inspector_facts.hpp:21
std::string key
JSON member name in ViewInspector::to_json.
Definition inspector_facts.hpp:18
double value
Definition inspector_facts.hpp:20