MCPcopy Create free account
hub / github.com/TankOs/SFGUI / RemoveAll

Method RemoveAll

src/SFGUI/Container.cpp:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28void Container::RemoveAll() {
29 while( !m_children.empty() ) {
30 auto widget = m_children.back();
31
32 m_children.pop_back();
33 widget->SetParent( Widget::Ptr() );
34 HandleRemove( widget );
35 }
36
37 RequestResize();
38}
39
40bool Container::IsChild( Widget::Ptr widget ) const {
41 return std::find( m_children.begin(), m_children.end(), widget ) != m_children.end();

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.80
SetParentMethod · 0.80

Tested by

no test coverage detected