VCV Rack API v2
Loading...
Searching...
No Matches
SvgKnob.hpp
Go to the documentation of this file.
1#pragma once
2#include <app/common.hpp>
3#include <app/Knob.hpp>
8
9
10namespace rack {
11namespace app {
12
13
15struct SvgKnob : Knob {
20
22 void setSvg(std::shared_ptr<window::Svg> svg);
23 DEPRECATED void setSVG(std::shared_ptr<window::Svg> svg) {
24 setSvg(svg);
25 }
26 void onChange(const ChangeEvent& e) override;
27};
28
29
31
32
33} // namespace app
34} // namespace rack
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:26
DEPRECATED typedef SvgKnob SVGKnob
Definition SvgKnob.hpp:30
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition CircularShadow.hpp:10
Implements vertical dragging behavior for ParamWidgets.
Definition Knob.hpp:12
A knob which rotates an SVG and caches it in a framebuffer.
Definition SvgKnob.hpp:15
CircularShadow * shadow
Definition SvgKnob.hpp:17
widget::SvgWidget * sw
Definition SvgKnob.hpp:19
void setSvg(std::shared_ptr< window::Svg > svg)
DEPRECATED void setSVG(std::shared_ptr< window::Svg > svg)
Definition SvgKnob.hpp:23
widget::FramebufferWidget * fb
Definition SvgKnob.hpp:16
void onChange(const ChangeEvent &e) override
widget::TransformWidget * tw
Definition SvgKnob.hpp:18
Caches its children's draw() result to a framebuffer image.
Definition FramebufferWidget.hpp:12
Owns and draws a window::Svg.
Definition SvgWidget.hpp:10
Transforms appearance only, not positions of events.
Definition TransformWidget.hpp:10
Occurs after the value of a Widget changes.
Definition Widget.hpp:451