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.

26 lines
531B

  1. #pragma once
  2. #include "widgets/OpaqueWidget.hpp"
  3. #include "ui/Quantity.hpp"
  4. #include "ui/common.hpp"
  5. #include "app.hpp"
  6. namespace rack {
  7. struct Slider : OpaqueWidget {
  8. BNDwidgetState state = BND_DEFAULT;
  9. Quantity *quantity = NULL;
  10. Slider();
  11. ~Slider();
  12. void draw(NVGcontext *vg) override;
  13. void onDragStart(const event::DragStart &e) override;
  14. void onDragMove(const event::DragMove &e) override;
  15. void onDragEnd(const event::DragEnd &e) override;
  16. void onButton(const event::Button &e) override;
  17. };
  18. } // namespace rack