| 153 | } |
| 154 | |
| 155 | PortWidget* ModuleWidget::getOutput(int portId) { |
| 156 | return getFirstDescendantOfTypeWithCondition<PortWidget>(this, [&](PortWidget* pw) -> bool { |
| 157 | return pw->type == engine::Port::OUTPUT && pw->portId == portId; |
| 158 | }); |
| 159 | } |
| 160 | |
| 161 | template <class T, typename F> |
| 162 | void doIfTypeRecursive(widget::Widget* w, F f) { |