Beispiel #1
0
void SampleApp::OnToggleSpinner() {
	if( !m_spinner->Started() ) {
		m_spinner->Start();
	}
	else {
		m_spinner->Stop();
	}
}
Beispiel #2
0
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();
}