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.

26 lines
360B

  1. #include "app/SvgScrew.hpp"
  2. namespace rack {
  3. namespace app {
  4. SvgScrew::SvgScrew() {
  5. fb = new widget::FramebufferWidget;
  6. addChild(fb);
  7. sw = new widget::SvgWidget;
  8. fb->addChild(sw);
  9. }
  10. void SvgScrew::setSvg(std::shared_ptr<Svg> svg) {
  11. sw->setSvg(svg);
  12. fb->box.size = sw->box.size;
  13. box.size = sw->box.size;
  14. }
  15. } // namespace app
  16. } // namespace rack