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 591B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include "widget/OpaqueWidget.hpp"
  3. #include "Quantity.hpp"
  4. #include "ui/common.hpp"
  5. #include "app.hpp"
  6. namespace rack {
  7. namespace ui {
  8. struct Slider : widget::OpaqueWidget {
  9. BNDwidgetState state = BND_DEFAULT;
  10. /** Not owned. */
  11. Quantity *quantity = NULL;
  12. Slider();
  13. void draw(const DrawArgs &args) override;
  14. void onDragStart(const event::DragStart &e) override;
  15. void onDragMove(const event::DragMove &e) override;
  16. void onDragEnd(const event::DragEnd &e) override;
  17. void onDoubleClick(const event::DoubleClick &e) override;
  18. };
  19. } // namespace ui
  20. } // namespace rack