| 34 | } |
| 35 | |
| 36 | void 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 | |
| 46 | bool Fixed::HandleAdd( Widget::Ptr child ) { |
| 47 | // If there's no position info present for the widget, the user added the widget |
nothing calls this directly
no test coverage detected