| 81 | } |
| 82 | |
| 83 | bool 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 | |
| 102 | void Widget::GrabFocus( Ptr widget ) { |
| 103 | // Notify old focused widget. |
nothing calls this directly
no outgoing calls
no test coverage detected