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.

MenuOverlay.hpp 460B

6 years ago
123456789101112131415161718192021
  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 event::Button& e) override;
  11. void onHoverKey(const event::HoverKey& e) override;
  12. void onAction(const event::Action& e) override;
  13. };
  14. } // namespace ui
  15. } // namespace rack