MCPcopy Create free account
hub / github.com/VCVRack/AudibleInstruments / ElementsModalItem

Class ElementsModalItem

src/Elements.cpp:291–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289
290
291struct ElementsModalItem : MenuItem {
292 Elements* elements;
293 int model;
294 void onAction(const event::Action& e) override {
295 elements->setModel(model);
296 }
297 void step() override {
298 rightText = CHECKMARK(elements->getModel() == model);
299 MenuItem::step();
300 }
301};
302
303
304struct ElementsWidget : ModuleWidget {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected