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.
|
- #pragma once
- #include <ui/common.hpp>
- #include <ui/Menu.hpp>
- #include <ui/MenuEntry.hpp>
- #include <app.hpp>
-
-
- namespace rack {
- namespace ui {
-
-
- struct MenuItem : MenuEntry {
- std::string text;
- std::string rightText;
- bool disabled = false;
- bool active = false;
-
- void draw(const DrawArgs& args) override;
- void step() override;
- void onEnter(const event::Enter& e) override;
- void onDragDrop(const event::DragDrop& e) override;
- void doAction();
- virtual Menu* createChildMenu() {
- return NULL;
- }
- };
-
-
- } // namespace ui
- } // namespace rack
|