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

Function doIfTypeRecursive

src/app/ModuleWidget.cpp:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161template <class T, typename F>
162void doIfTypeRecursive(widget::Widget* w, F f) {
163 T* t = dynamic_cast<T*>(w);
164 if (t)
165 f(t);
166
167 for (widget::Widget* child : w->children) {
168 doIfTypeRecursive<T>(child, f);
169 }
170}
171
172std::vector<ParamWidget*> ModuleWidget::getParams() {
173 std::vector<ParamWidget*> pws;

Callers

nothing calls this directly

Calls 1

fFunction · 0.50

Tested by

no test coverage detected