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

Method onAdd

src/app/CableWidget.cpp:394–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392
393
394void CableWidget::onAdd(const AddEvent& e) {
395 Widget* plugContainer = APP->scene->rack->getPlugContainer();
396 plugContainer->addChild(outputPlug);
397 plugContainer->addChild(inputPlug);
398 Widget::onAdd(e);
399}
400
401
402void CableWidget::onRemove(const RemoveEvent& e) {

Callers 5

addChildMethod · 0.45
addChildBottomMethod · 0.45
addChildBelowMethod · 0.45
addChildAboveMethod · 0.45
addModule_NoLockMethod · 0.45

Calls 2

getPlugContainerMethod · 0.80
addChildMethod · 0.80

Tested by

no test coverage detected