MCPcopy Create free account
hub / github.com/VCVRack/Rack / setChildMenu

Method setChildMenu

src/ui/Menu.cpp:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void Menu::setChildMenu(Menu* menu) {
17 if (childMenu) {
18 childMenu->parent->removeChild(childMenu);
19 delete childMenu;
20 childMenu = NULL;
21 }
22 if (menu) {
23 childMenu = menu;
24 assert(parent);
25 parent->addChild(childMenu);
26 }
27}
28
29void Menu::step() {
30 Widget::step();

Callers 1

onEnterMethod · 0.80

Calls 2

removeChildMethod · 0.80
addChildMethod · 0.80

Tested by

no test coverage detected