MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / insertChild

Method insertChild

src/ui/widget.cpp:581–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581void Widget::insertChild(int index, Widget* child)
582{
583 ASSERT_VALID_WIDGET(this);
584 ASSERT_VALID_WIDGET(child);
585
586 m_children.insert(m_children.begin()+index, child);
587 child->m_parent = this;
588}
589
590// ===============================================================
591// LAYOUT & CONSTRAINT

Callers 2

reloadMethod · 0.80
handleWindowZOrderMethod · 0.80

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected