Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
binding_diagnostics.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <string>
5
14
15namespace pulp::view {
16
18enum class BindingTarget : std::uint8_t {
23};
24
40
51
53const char* describe(BindingOutcome o) noexcept;
54
62
63} // namespace pulp::view
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
const char * describe(BindingOutcome o) noexcept
Human-readable reason, for diagnostics and test failure messages.
constexpr bool is_bound(BindingOutcome o) noexcept
True for the three outcomes that produced a live binding.
Definition binding_diagnostics.hpp:47
BindingOutcome
The outcome of one bindWidgetToParam / bindMeter call.
Definition binding_diagnostics.hpp:26
@ undeclared_uniform
shader does not declare the requested uniform
Definition binding_diagnostics.hpp:38
@ deferred_widget_missing
bound; the view does not exist YET, which is legal
Definition binding_diagnostics.hpp:28
@ empty_param_name
Definition binding_diagnostics.hpp:31
@ incompatible_widget
the widget cannot accept this target (e.g. a meter on a Knob)
Definition binding_diagnostics.hpp:33
@ ok
bound; the widget exists and accepts this target
Definition binding_diagnostics.hpp:27
@ replaced_prior_binding
bound, displacing an earlier binding for this widget
Definition binding_diagnostics.hpp:29
@ empty_widget_id
─── below here nothing was bound ───
Definition binding_diagnostics.hpp:30
@ null_widget
the id maps to a null view
Definition binding_diagnostics.hpp:32
@ unknown_param
the store declares no parameter with that name
Definition binding_diagnostics.hpp:34
@ unknown_value_channel
A value:<name> source named no channel the processor declares — or the processor declares none at all...
Definition binding_diagnostics.hpp:37
BindingTarget
What a binding drives on its widget.
Definition binding_diagnostics.hpp:18
@ value
the widget's primary value (Knob, Fader, RangeSlider, Toggle, ProgressBar)
Definition binding_diagnostics.hpp:19
@ scope
a block of samples for a SpectrumView / WaveformView
Definition binding_diagnostics.hpp:21
@ meter
a Meter's level
Definition binding_diagnostics.hpp:20
@ uniform
a custom shader uniform
Definition binding_diagnostics.hpp:22
@ o
Definition input_events.hpp:40
One recorded attempt, successful or not.
Definition binding_diagnostics.hpp:56
BindingTarget target
Definition binding_diagnostics.hpp:59
std::string widget_id
Definition binding_diagnostics.hpp:57
BindingOutcome outcome
Definition binding_diagnostics.hpp:60
std::string param_name
Definition binding_diagnostics.hpp:58