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 "widget/Widget.hpp"
- #include "ui/ScrollBar.hpp"
-
-
- namespace rack {
- namespace ui {
-
-
- /** Handles a container with ScrollBar */
- struct ScrollWidget : widget::Widget {
- widget::Widget *container;
- ScrollBar *horizontalScrollBar;
- ScrollBar *verticalScrollBar;
- math::Vec offset;
-
- ScrollWidget();
- void scrollTo(math::Rect r);
- void draw(const DrawArgs &args) override;
- void step() override;
- void onHover(const widget::HoverEvent &e) override;
- void onHoverScroll(const widget::HoverScrollEvent &e) override;
- };
-
-
- } // namespace ui
- } // namespace rack
|