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

Method HandleMouseClick

src/SFGUI/ToggleButton.cpp:57–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void ToggleButton::HandleMouseClick( sf::Mouse::Button button, int x, int y ) {
58 if( button == sf::Mouse::Button::Left ) {
59 SetActive( !IsActive() );
60 }
61
62 Button::HandleMouseClick( button, x, y );
63}
64
65}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected