21 std::vector<std::shared_ptr<window::Svg>>
frames;
30 void addFrame(std::shared_ptr<window::Svg> svg);
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:26
DEPRECATED typedef SvgSwitch SVGSwitch
Definition SvgSwitch.hpp:38
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Definition CircularShadow.hpp:10
A ParamWidget with multiple frames corresponding to its value.
Definition SvgSwitch.hpp:14
void addFrame(std::shared_ptr< window::Svg > svg)
Adds an SVG file to represent the next switch position.
void onChange(const ChangeEvent &e) override
void onDragStart(const DragStartEvent &e) override
CircularShadow * shadow
Definition SvgSwitch.hpp:19
widget::SvgWidget * sw
Definition SvgSwitch.hpp:20
widget::FramebufferWidget * fb
Definition SvgSwitch.hpp:18
void onDragEnd(const DragEndEvent &e) override
bool latch
Use frames 0 and 1 when the mouse is pressed and released, instead of using the param value as the fr...
Definition SvgSwitch.hpp:25
std::vector< std::shared_ptr< window::Svg > > frames
Definition SvgSwitch.hpp:21
Internal * internal
Definition SvgSwitch.hpp:16
A ParamWidget that represents an integer.
Definition Switch.hpp:15