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.

Scrollbar.hpp 618B

12345678910111213141516171819202122232425262728293031
  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 event::Button& e) override;
  15. void onDragStart(const event::DragStart& e) override;
  16. void onDragEnd(const event::DragEnd& e) override;
  17. void onDragMove(const event::DragMove& e) override;
  18. };
  19. DEPRECATED typedef Scrollbar ScrollBar;
  20. } // namespace ui
  21. } // namespace rack