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.
|
- #pragma once
- #include "ui/common.hpp"
- #include "widgets/OpaqueWidget.hpp"
- #include "ui/ScrollBar.hpp"
-
-
- namespace rack {
-
-
- /** Handles a container with ScrollBar */
- struct ScrollWidget : OpaqueWidget {
- Widget *container;
- ScrollBar *horizontalScrollBar;
- ScrollBar *verticalScrollBar;
- math::Vec offset;
-
- ScrollWidget();
- void scrollTo(math::Rect r);
- void draw(NVGcontext *vg) override;
- void step() override;
- void onHover(const event::Hover &e) override;
- void onHoverScroll(const event::HoverScroll &e) override;
- };
-
-
- } // namespace rack
|