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

Method HandleAdd

src/SFGUI/Window.cpp:229–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229bool Window::HandleAdd( Widget::Ptr child ) {
230 if( !Bin::HandleAdd( child ) ) {
231 return false;
232 }
233
234 // Reset allocation so the window will be as large as required.
235 SetAllocation( sf::FloatRect( GetAllocation().position, { 1.f, 1.f } ) );
236 RequestResize();
237
238 return true;
239}
240
241}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected