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

Method HandleMouseClick

src/SFGUI/RadioButton.cpp:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void RadioButton::HandleMouseClick( sf::Mouse::Button button, int x, int y ) {
57 if( !IsActive() && ( button == sf::Mouse::Button::Left ) ) {
58 SetActive( true );
59 }
60
61 Button::HandleMouseClick( button, x, y );
62}
63
64const std::string& RadioButton::GetName() const {
65 static const std::string name( "RadioButton" );

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected