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

Method addOutput

src/app/ModuleWidget.cpp:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119void ModuleWidget::addOutput(PortWidget* output) {
120 // Check that the port is an output
121 assert(output->type == engine::Port::OUTPUT);
122 // Check that the port doesn't have a duplicate ID
123 PortWidget* output2 = getOutput(output->portId);
124 assert(!output2);
125 // Add port
126 addChild(output);
127}
128
129template <class T, typename F>
130T* getFirstDescendantOfTypeWithCondition(widget::Widget* w, F f) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected