#pragma once #include #include #include #include #include namespace rack { namespace app { /** A ParamWidget with multiple frames corresponding to its value */ struct SvgSwitch : Switch { widget::FramebufferWidget* fb; CircularShadow* shadow; widget::SvgWidget* sw; std::vector> frames; SvgSwitch(); /** Adds an SVG file to represent the next switch position */ void addFrame(std::shared_ptr svg); void onChange(const ChangeEvent& e) override; }; DEPRECATED typedef SvgSwitch SVGSwitch; } // namespace app } // namespace rack