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.

28 lines
524B

  1. #pragma once
  2. #include <widget/OpaqueWidget.hpp>
  3. #include <ui/common.hpp>
  4. #include <ui/MenuEntry.hpp>
  5. namespace rack {
  6. namespace ui {
  7. struct Menu : widget::OpaqueWidget {
  8. Menu* parentMenu = NULL;
  9. Menu* childMenu = NULL;
  10. /** The entry which created the child menu */
  11. MenuEntry* activeEntry = NULL;
  12. Menu();
  13. ~Menu();
  14. void setChildMenu(Menu* menu);
  15. void step() override;
  16. void draw(const DrawArgs& args) override;
  17. void onHoverScroll(const event::HoverScroll& e) override;
  18. };
  19. } // namespace ui
  20. } // namespace rack