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.

RadioButton.hpp 428B

123456789101112131415161718192021
  1. #pragma once
  2. #include <ui/common.hpp>
  3. #include <ui/Button.hpp>
  4. namespace rack {
  5. namespace ui {
  6. /** Toggles a Quantity between 1.0 and 0.0 when clicked.
  7. */
  8. struct RadioButton : Button {
  9. void draw(const DrawArgs& args) override;
  10. void onDragStart(const DragStartEvent& e) override;
  11. void onDragEnd(const DragEndEvent& e) override;
  12. void onDragDrop(const DragDropEvent& e) override;
  13. };
  14. } // namespace ui
  15. } // namespace rack