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

Method Remove

src/SFGUI/Container.cpp:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void Container::Remove( Widget::Ptr widget ) {
17 WidgetsList::iterator iter( std::find( m_children.begin(), m_children.end(), widget ) );
18
19 if( iter != m_children.end() ) {
20 m_children.erase( iter );
21 widget->SetParent( Widget::Ptr() );
22 HandleRemove( widget );
23
24 RequestResize();
25 }
26}
27
28void Container::RemoveAll() {
29 while( !m_children.empty() ) {

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
SetParentMethod · 0.80

Tested by

no test coverage detected