| 774 | } |
| 775 | |
| 776 | void 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 | |
| 788 | void Widget::HandleAbsolutePositionChange() { |
| 789 | UpdateDrawablePosition(); |