#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 ButtonEvent& e) override; void onDragStart(const DragStartEvent& e) override; void onDragEnd(const DragEndEvent& e) override; void onDragMove(const DragMoveEvent& e) override; }; DEPRECATED typedef Scrollbar ScrollBar; } // namespace ui } // namespace rack