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.

22 lines
454B

  1. #pragma once
  2. #include <widget/OpaqueWidget.hpp>
  3. #include <ui/common.hpp>
  4. namespace rack {
  5. namespace ui {
  6. /** Deletes itself from parent when clicked */
  7. struct MenuOverlay : widget::OpaqueWidget {
  8. void draw(const DrawArgs& args) override;
  9. void step() override;
  10. void onButton(const ButtonEvent& e) override;
  11. void onHoverKey(const HoverKeyEvent& e) override;
  12. void onAction(const ActionEvent& e) override;
  13. };
  14. } // namespace ui
  15. } // namespace rack