| 147 | } |
| 148 | |
| 149 | PortWidget* 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 | |
| 155 | PortWidget* ModuleWidget::getOutput(int portId) { |
| 156 | return getFirstDescendantOfTypeWithCondition<PortWidget>(this, [&](PortWidget* pw) -> bool { |