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

Method HandleGlobalVisibilityChange

src/SFGUI/Widget.cpp:776–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776void Widget::HandleGlobalVisibilityChange() {
777 auto state = GetState();
778
779 if( ( state == State::PRELIGHT ) || ( state == State::ACTIVE ) ) {
780 SetState( State::NORMAL );
781 }
782
783 if( m_drawable ) {
784 m_drawable->Show( IsGloballyVisible() );
785 }
786}
787
788void Widget::HandleAbsolutePositionChange() {
789 UpdateDrawablePosition();

Callers

nothing calls this directly

Calls 1

ShowMethod · 0.45

Tested by

no test coverage detected