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

Method DoOuch

examples/Test.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void Ouchy::DoOuch() {
97 if( !m_state ) {
98 m_button->SetLabel( "Ouch" );
99 }
100 else {
101 m_button->SetLabel( "Boom" );
102 }
103
104 m_state = !m_state;
105}
106
107SampleApp::SampleApp() :
108 m_window( sf::VideoMode( { 1024, 768 }, 32 ), "SFGUI test", sf::Style::Default, sf::State::Windowed, sf::ContextSettings{ 16, 0, 0, 2, 1 } ),

Callers 2

OnAddButtonHClickMethod · 0.80
OnAddButtonVClickMethod · 0.80

Calls 1

SetLabelMethod · 0.45

Tested by

no test coverage detected