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

Method HandleMouseEnter

src/SFGUI/Button.cpp:46–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void Button::HandleMouseEnter( int /*x*/, int /*y*/ ) {
47 if( GetState() == State::NORMAL ) {
48 SetState( State::PRELIGHT );
49 }
50}
51
52void Button::HandleMouseLeave( int /*x*/, int /*y*/ ) {
53 if( GetState() == State::PRELIGHT ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected