MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / BarDivisionItem

Class BarDivisionItem

plugins/Cardinal/src/HostTime.cpp:319–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317
318 void appendContextMenu(Menu* menu) override {
319 struct BarDivisionItem : MenuItem {
320 HostTime* module;
321 HostTime::BarDivisions value;
322 void onAction(const event::Action& e) override {
323 module->barDivision = value;
324 }
325 };
326
327 menu->addChild(new MenuSeparator);
328 menu->addChild(construct<MenuLabel>(&MenuLabel::text, "Bar Division"));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected