|
12345678910111213141516171819202122232425262728 |
- #pragma once
- #include "app/common.hpp"
- #include "ui/ScrollWidget.hpp"
- #include "widget/ZoomWidget.hpp"
- #include "app/RackWidget.hpp"
-
-
- namespace rack {
- namespace app {
-
-
- struct RackScrollWidget : ui::ScrollWidget {
- widget::ZoomWidget *zoomWidget;
- RackWidget *rackWidget;
- /** The pivot point for zooming */
- math::Vec zoomPos;
-
- RackScrollWidget();
- void step() override;
- void draw(const DrawArgs &args) override;
- void onHoverKey(const event::HoverKey &e) override;
- void onHoverScroll(const event::HoverScroll &e) override;
- void reset();
- };
-
-
- } // namespace app
- } // namespace rack
|