#pragma once #include "ui/common.hpp" #include "ui/Menu.hpp" #include "ui/MenuEntry.hpp" #include "ui/MenuOverlay.hpp" #include "app.hpp" namespace rack { namespace ui { #define BND_LABEL_FONT_SIZE 13 struct MenuItem : MenuEntry { std::string text; std::string rightText; bool disabled = false; void draw(const widget::DrawContext &ctx) override; void step() override; void onEnter(const event::Enter &e) override; void onDragStart(const event::DragStart &e) override; void onDragDrop(const event::DragDrop &e) override; void doAction(); virtual Menu *createChildMenu() {return NULL;} }; } // namespace ui } // namespace rack