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.

MenuItem.hpp 541B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include "ui/common.hpp"
  3. #include "ui/Menu.hpp"
  4. #include "ui/MenuEntry.hpp"
  5. #include "ui/MenuOverlay.hpp"
  6. #include "app.hpp"
  7. namespace rack {
  8. #define BND_LABEL_FONT_SIZE 13
  9. struct MenuItem : MenuEntry {
  10. std::string text;
  11. std::string rightText;
  12. bool disabled = false;
  13. void draw(NVGcontext *vg) override;
  14. void step() override;
  15. void onEnter(const event::Enter &e) override;
  16. void onDragDrop(const event::DragDrop &e) override;
  17. void doAction();
  18. virtual Menu *createChildMenu() {return NULL;}
  19. };
  20. } // namespace rack