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

Method HandleMouseLeave

src/SFGUI/Button.cpp:52–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void Button::HandleMouseLeave( int /*x*/, int /*y*/ ) {
53 if( GetState() == State::PRELIGHT ) {
54 SetState( State::NORMAL );
55 }
56}
57
58void Button::HandleMouseButtonEvent( sf::Mouse::Button button, bool press, int /*x*/, int /*y*/ ) {
59 if( !IsMouseInWidget() ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected