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

Method Show

src/SFGUI/Widget.cpp:535–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535void 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
554const sf::Vector2f& Widget::GetRequisition() const {
555 return m_requisition;

Callers 10

InsertPageMethod · 0.45
NextPageMethod · 0.45
PreviousPageMethod · 0.45
SetCurrentPageMethod · 0.45
RecalculateSizeMethod · 0.45
UpdateMethod · 0.45
OnHideWindowClickedMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

OnHideWindowClickedMethod · 0.36