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.

32 lines
610B

  1. #pragma once
  2. #include <widget/OpaqueWidget.hpp>
  3. #include <ui/common.hpp>
  4. namespace rack {
  5. namespace ui {
  6. /** Parent must be a ScrollWidget */
  7. struct Scrollbar : widget::OpaqueWidget {
  8. struct Internal;
  9. Internal* internal;
  10. bool vertical = false;
  11. Scrollbar();
  12. ~Scrollbar();
  13. void draw(const DrawArgs& args) override;
  14. void onButton(const ButtonEvent& e) override;
  15. void onDragStart(const DragStartEvent& e) override;
  16. void onDragEnd(const DragEndEvent& e) override;
  17. void onDragMove(const DragMoveEvent& e) override;
  18. };
  19. DEPRECATED typedef Scrollbar ScrollBar;
  20. } // namespace ui
  21. } // namespace rack