| 533 | } |
| 534 | |
| 535 | void Widget::Show( bool show ) { |
| 536 | if( show == IsLocallyVisible() ) { |
| 537 | return; |
| 538 | } |
| 539 | |
| 540 | auto old_global_visibility = IsGloballyVisible(); |
| 541 | |
| 542 | // Flip the visible bit since we know show != IsLocallyVisible() |
| 543 | m_visible = !m_visible; |
| 544 | |
| 545 | HandleLocalVisibilityChange(); |
| 546 | |
| 547 | if( old_global_visibility != IsGloballyVisible() ) { |
| 548 | HandleGlobalVisibilityChange(); |
| 549 | } |
| 550 | |
| 551 | RequestResize(); |
| 552 | } |
| 553 | |
| 554 | const sf::Vector2f& Widget::GetRequisition() const { |
| 555 | return m_requisition; |
no outgoing calls