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

Method HandleAdd

src/SFGUI/Container.cpp:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool Container::HandleAdd( Widget::Ptr child ) {
87 if( IsChild( child ) ) {
88 return false;
89 }
90
91 m_children.push_back( child );
92
93 child->SetViewport( GetViewport() );
94
95 return true;
96}
97
98void Container::HandleRemove( Widget::Ptr /*child*/ ) {
99}

Callers

nothing calls this directly

Calls 1

SetViewportMethod · 0.45

Tested by

no test coverage detected