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.

RackScrollWidget.hpp 610B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <ui/ScrollWidget.hpp>
  4. #include <widget/ZoomWidget.hpp>
  5. #include <app/RackWidget.hpp>
  6. namespace rack {
  7. namespace app {
  8. struct RackScrollWidget : ui::ScrollWidget {
  9. widget::ZoomWidget *zoomWidget;
  10. RackWidget *rackWidget;
  11. /** The pivot point for zooming */
  12. math::Vec zoomPos;
  13. math::Vec oldOffset;
  14. RackScrollWidget();
  15. void step() override;
  16. void draw(const DrawArgs &args) override;
  17. void onHoverKey(const event::HoverKey &e) override;
  18. void onHoverScroll(const event::HoverScroll &e) override;
  19. void reset();
  20. };
  21. } // namespace app
  22. } // namespace rack