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

Method getInput

src/app/ModuleWidget.cpp:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149PortWidget* ModuleWidget::getInput(int portId) {
150 return getFirstDescendantOfTypeWithCondition<PortWidget>(this, [&](PortWidget* pw) -> bool {
151 return pw->type == engine::Port::INPUT && pw->portId == portId;
152 });
153}
154
155PortWidget* ModuleWidget::getOutput(int portId) {
156 return getFirstDescendantOfTypeWithCondition<PortWidget>(this, [&](PortWidget* pw) -> bool {

Callers 1

setCableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected