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

6 years ago
1234567891011121314151617181920
  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. };
  13. } // namespace ui
  14. } // namespace rack