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.

Slider.hpp 550B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <widget/OpaqueWidget.hpp>
  3. #include <Quantity.hpp>
  4. #include <ui/common.hpp>
  5. #include <context.hpp>
  6. namespace rack {
  7. namespace ui {
  8. struct Slider : widget::OpaqueWidget {
  9. /** Not owned. */
  10. Quantity* quantity = NULL;
  11. Slider();
  12. void draw(const DrawArgs& args) override;
  13. void onDragStart(const DragStartEvent& e) override;
  14. void onDragMove(const DragMoveEvent& e) override;
  15. void onDragEnd(const DragEndEvent& e) override;
  16. void onDoubleClick(const DoubleClickEvent& e) override;
  17. };
  18. } // namespace ui
  19. } // namespace rack