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

6 years ago
123456789101112131415161718192021222324
  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. NVGcolor bgColor;
  9. MenuOverlay();
  10. void draw(const DrawArgs& args) override;
  11. void step() override;
  12. void onButton(const ButtonEvent& e) override;
  13. void onHoverKey(const HoverKeyEvent& e) override;
  14. void onAction(const ActionEvent& e) override;
  15. };
  16. } // namespace ui
  17. } // namespace rack