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

Method HandleMouseLeave

examples/CustomWidget.cpp:187–193  ·  view source on GitHub ↗

This handler handles mouse leave events.

Source from the content-addressed store, hash-verified

185
186 // This handler handles mouse leave events.
187 void HandleMouseLeave( int x, int y ) override {
188 SetLabel( sf::String( "Mouse Leave: " + std::to_string( x ) + "," + std::to_string( y ) ) );
189
190 if( GetState() == State::PRELIGHT ) {
191 SetState( State::NORMAL );
192 }
193 }
194
195 // This handler handles mouse button events
196 void HandleMouseButtonEvent( sf::Mouse::Button button, bool press, int x, int y ) override {

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected