Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
designed_control_painter.hpp
Go to the documentation of this file.
1#pragma once
2
15
18
19namespace pulp::view {
20
21class View;
22
26 canvas::Color track{0.25f, 0.28f, 0.32f, 1.0f};
27 canvas::Color accent{0.08f, 0.72f, 0.65f, 1.0f};
28 canvas::Color indicator{0.92f, 0.94f, 0.96f, 1.0f};
32 bool indicator_authored = false;
33 float ring_width = 4.0f;
34 float indicator_width = 2.5f;
45 float ring_radius_scale = 0.46f;
46
59
75 bool draw_ring = true;
76 bool draw_indicator = true;
77};
78
82
83} // namespace pulp::view
Definition view.hpp:73
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
void apply_designed_control_skin(View &control, const DesignedControlSkin &skin)
Install the value-only painter on control.
Definition canvas.hpp:52
Colours and geometry for the value layer, taken from the design's own tokens so the ring belongs to t...
Definition designed_control_painter.hpp:25
float ring_radius_scale
Ring radius as a fraction of the shorter side of the control box.
Definition designed_control_painter.hpp:45
canvas::Color indicator
the pointer / thumb
Definition designed_control_painter.hpp:28
float ring_width
Definition designed_control_painter.hpp:33
canvas::Color accent
the value arc / fill
Definition designed_control_painter.hpp:27
bool draw_indicator
Definition designed_control_painter.hpp:76
bool indicator_authored
True only when this control supplied its own indicator colour.
Definition designed_control_painter.hpp:32
float indicator_width
Definition designed_control_painter.hpp:34
canvas::Color track
the inactive arc / track
Definition designed_control_painter.hpp:26
bool draw_ring
Which rotary value layers the DESIGN authorized.
Definition designed_control_painter.hpp:75
float indicator_outer_scale
Definition designed_control_painter.hpp:58
float indicator_inner_scale
Where the POINTER starts and ends, as fractions of the shorter side.
Definition designed_control_painter.hpp:57
A pluggable paint delegate for Pulp's stock widgets.