#pragma once #include #include 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