void SampleApp::OnToggleSpinner() { if( !m_spinner->Started() ) { m_spinner->Start(); } else { m_spinner->Stop(); } }
void SpinnerExample::OnButtonClick() { // If the spinner is spinning... if( m_spinner->Started() ) { // ... stop the spinner. m_spinner->Stop(); return; } // ... otherwise start it. m_spinner->Start(); }