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

  1. #pragma once
  2. #include "ui/common.hpp"
  3. #include "widget/OpaqueWidget.hpp"
  4. #include "Quantity.hpp"
  5. namespace rack {
  6. namespace ui {
  7. struct RadioButton : widget::OpaqueWidget {
  8. BNDwidgetState state = BND_DEFAULT;
  9. /** Not owned. */
  10. Quantity *quantity = NULL;
  11. RadioButton();
  12. void draw(const DrawArgs &args) override;
  13. void onEnter(const event::Enter &e) override;
  14. void onLeave(const event::Leave &e) override;
  15. void onDragDrop(const event::DragDrop &e) override;
  16. };
  17. } // namespace ui
  18. } // namespace rack