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

Method addChild

src/widget/Widget.cpp:165–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164
165void Widget::addChild(Widget* child) {
166 assert(child);
167 assert(!child->parent);
168 // Add child
169 child->parent = this;
170 children.push_back(child);
171 // Dispatch Add event
172 AddEvent eAdd;
173 child->onAdd(eAdd);
174}
175
176
177void Widget::addChildBottom(Widget* child) {

Callers 15

appendContextMenuMethod · 0.80
screenshotModulesMethod · 0.80
setModuleMethod · 0.80
appendContextMenuMethod · 0.80
appendContextMenuMethod · 0.80
appendContextMenuMethod · 0.80
appendContextMenuMethod · 0.80
appendContextMenuMethod · 0.80
appendContextMenuMethod · 0.80
appendContextMenuMethod · 0.80
createPreviewMethod · 0.80
setTooltipMethod · 0.80

Calls 1

onAddMethod · 0.45

Tested by

no test coverage detected