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

Method HandleMouseEnter

examples/CustomWidget.cpp:178–184  ·  view source on GitHub ↗

This handler handles mouse enter events.

Source from the content-addressed store, hash-verified

176 private:
177 // This handler handles mouse enter events.
178 void HandleMouseEnter( int x, int y ) override {
179 SetLabel( sf::String( "Mouse Enter: " + std::to_string( x ) + "," + std::to_string( y ) ) );
180
181 if( GetState() == State::NORMAL ) {
182 SetState( State::PRELIGHT );
183 }
184 }
185
186 // This handler handles mouse leave events.
187 void HandleMouseLeave( int x, int y ) override {

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected