示例#1
0
void SampleApp::OnToggleSpinner() {
	if( !m_spinner->Started() ) {
		m_spinner->Start();
	}
	else {
		m_spinner->Stop();
	}
}
示例#2
0
文件: Spinner.cpp 项目: Cruel/SFGUI
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();
}