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.

25 lines
528B

  1. #pragma once
  2. #include "app/common.hpp"
  3. #include "widgets/OpaqueWidget.hpp"
  4. #include "widgets/FramebufferWidget.hpp"
  5. #include "widgets/SVGWidget.hpp"
  6. namespace rack {
  7. struct SVGButton : OpaqueWidget {
  8. FramebufferWidget *fb;
  9. SVGWidget *sw;
  10. std::vector<std::shared_ptr<SVG>> frames;
  11. SVGButton();
  12. void addFrame(std::shared_ptr<SVG> svg);
  13. void onDragStart(const event::DragStart &e) override;
  14. void onDragEnd(const event::DragEnd &e) override;
  15. void onDragDrop(const event::DragDrop &e) override;
  16. };
  17. } // namespace rack