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

Method hasChild

src/widget/Widget.cpp:157–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156
157bool Widget::hasChild(Widget* child) {
158 if (!child)
159 return false;
160 auto it = std::find(children.begin(), children.end(), child);
161 return (it != children.end());
162}
163
164
165void Widget::addChild(Widget* child) {

Callers

nothing calls this directly

Calls 1

findFunction · 0.85

Tested by

no test coverage detected