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.

27 lines
584B

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