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

Method addChildBottom

src/widget/Widget.cpp:177–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176
177void Widget::addChildBottom(Widget* child) {
178 assert(child);
179 assert(!child->parent);
180 // Add child
181 child->parent = this;
182 children.push_front(child);
183 // Dispatch Add event
184 AddEvent eAdd;
185 child->onAdd(eAdd);
186}
187
188
189void Widget::addChildBelow(Widget* child, Widget* sibling) {

Callers

nothing calls this directly

Calls 1

onAddMethod · 0.45

Tested by

no test coverage detected