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

Method IsGloballyVisible

src/SFGUI/Widget.cpp:83–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83bool Widget::IsGloballyVisible() const {
84 // If not locally visible, also cannot be globally visible.
85 if( !IsLocallyVisible() ) {
86 return false;
87 }
88
89 // At this point we know the widget is locally visible.
90
91 PtrConst parent( m_parent.lock() );
92
93 // If locally visible and no parent, globally visible.
94 if( !parent ) {
95 return true;
96 }
97
98 // Return parent's global visibility.
99 return parent->IsGloballyVisible();
100}
101
102void Widget::GrabFocus( Ptr widget ) {
103 // Notify old focused widget.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected