| 524 | } |
| 525 | |
| 526 | void Widget::SetMouseButtonDown( std::optional<sf::Mouse::Button> button ) { |
| 527 | if( button.has_value() ) { |
| 528 | m_mouse_button_down = static_cast<unsigned char>( static_cast<unsigned int>(*button) & 0x3f ); // 6 bits |
| 529 | } |
| 530 | else { |
| 531 | m_mouse_button_down = sf::Mouse::ButtonCount; |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | void Widget::Show( bool show ) { |
| 536 | if( show == IsLocallyVisible() ) { |
nothing calls this directly
no outgoing calls
no test coverage detected