Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
widget_schema.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace pulp::canvas {
6class Canvas;
7}
8
9namespace pulp::view {
10
11class View;
12
13// Interprets a declarative JSON widget definition and paints it onto the given
14// canvas. `w`/`h` are the widget bounds; `value` is the normalized (0..1)
15// parameter value bound to angle/line elements. On invalid JSON it paints an
16// error indicator rectangle. Moved verbatim out of widgets.cpp.
17void render_schema(canvas::Canvas& canvas, const std::string& json,
18 float w, float h, float value, View& view);
19
20} // namespace pulp::view
Definition canvas.hpp:240
Definition view.hpp:73
Definition affine_transform.hpp:24
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
@ value
the widget's primary value (Knob, Fader, RangeSlider, Toggle, ProgressBar)
Definition binding_diagnostics.hpp:19
@ h
Definition input_events.hpp:39
@ w
Definition input_events.hpp:41
void render_schema(canvas::Canvas &canvas, const std::string &json, float w, float h, float value, View &view)