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

Method HandleRemove

src/SFGUI/Box.cpp:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void Box::HandleRemove( Widget::Ptr child ) {
92 ChildrenCont::iterator iter( std::find( m_box_children.begin(), m_box_children.end(), child ) );
93
94 if( iter != m_box_children.end() ) {
95 m_box_children.erase( iter );
96 }
97
98 RequestResize();
99 Invalidate();
100}
101
102sf::Vector2f Box::CalculateRequisition() {
103 sf::Vector2f requisition( 0.f, 0.f );

Callers

nothing calls this directly

Calls 1

endMethod · 0.80

Tested by

no test coverage detected