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

Method Move

src/SFGUI/Fixed.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void Fixed::Move( Widget::Ptr widget, const sf::Vector2f& position ) {
37 if( m_children_position_map.find( widget ) != m_children_position_map.end() ) {
38 m_children_position_map[ widget ] = position;
39
40 widget->SetAllocation( sf::FloatRect( position, widget->GetRequisition() ) );
41
42 RequestResize();
43 }
44}
45
46bool Fixed::HandleAdd( Widget::Ptr child ) {
47 // If there's no position info present for the widget, the user added the widget

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
SetAllocationMethod · 0.80

Tested by

no test coverage detected