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

Method addInput

src/app/ModuleWidget.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void ModuleWidget::addInput(PortWidget* input) {
110 // Check that the port is an input
111 assert(input->type == engine::Port::INPUT);
112 // Check that the port doesn't have a duplicate ID
113 PortWidget* input2 = getInput(input->portId);
114 assert(!input2);
115 // Add port
116 addChild(input);
117}
118
119void ModuleWidget::addOutput(PortWidget* output) {
120 // Check that the port is an output

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected