You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
436B

  1. #pragma once
  2. #include "app/common.hpp"
  3. namespace rack {
  4. /** A ParamWidget with multiple frames corresponding to its value */
  5. struct SVGSwitch : virtual ParamWidget, FramebufferWidget {
  6. std::vector<std::shared_ptr<SVG>> frames;
  7. SVGWidget *sw;
  8. SVGSwitch();
  9. /** Adds an SVG file to represent the next switch position */
  10. void addFrame(std::shared_ptr<SVG> svg);
  11. void onChange(event::Change &e) override;
  12. };
  13. } // namespace rack