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.

35 lines
621B

  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <widget/TransparentWidget.hpp>
  4. #include <widget/FramebufferWidget.hpp>
  5. #include <widget/SvgWidget.hpp>
  6. #include <context.hpp>
  7. namespace rack {
  8. namespace app {
  9. struct PanelBorder : widget::TransparentWidget {
  10. void draw(const DrawArgs& args) override;
  11. };
  12. struct SvgPanel : widget::Widget {
  13. widget::FramebufferWidget* fb;
  14. widget::SvgWidget* sw;
  15. PanelBorder* panelBorder;
  16. std::shared_ptr<Svg> svg;
  17. SvgPanel();
  18. void step() override;
  19. void setBackground(std::shared_ptr<Svg> svg);
  20. };
  21. DEPRECATED typedef SvgPanel SVGPanel;
  22. } // namespace app
  23. } // namespace rack