|
12345678910111213141516171819202122232425262728 |
- #pragma once
- #include <widget/OpaqueWidget.hpp>
- #include <ui/common.hpp>
-
-
- namespace rack {
- namespace ui {
-
-
- /** Parent must be a ScrollWidget */
- struct ScrollBar : widget::OpaqueWidget {
- struct Internal;
- Internal* internal;
-
- bool vertical = false;
-
- ScrollBar();
- ~ScrollBar();
- void draw(const DrawArgs& args) override;
- void onButton(const event::Button& e) override;
- void onDragStart(const event::DragStart& e) override;
- void onDragEnd(const event::DragEnd& e) override;
- void onDragMove(const event::DragMove& e) override;
- };
-
-
- } // namespace ui
- } // namespace rack
|