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.

Menu.hpp 478B

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