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

Method SetMouseButtonDown

src/SFGUI/Widget.cpp:526–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526void 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
535void Widget::Show( bool show ) {
536 if( show == IsLocallyVisible() ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected