示例#1
0
void ButtonsExample::ButtonToggle() {
	// When the ToggleButton is active hide the window's titlebar.
	if( m_toggle_button->IsActive() ) {
		m_window->SetStyle( m_window->GetStyle() & ~sfg::Window::TITLEBAR );
	}
	else {
		m_window->SetStyle( m_window->GetStyle() | sfg::Window::TITLEBAR );
	}
}
示例#2
0
void ButtonsExample::ButtonCheck() {
	// When the CheckButton is active hide the window's background.
	if( m_check_button->IsActive() ) {
		m_window->SetStyle( m_window->GetStyle() & ~sfg::Window::BACKGROUND );
	}
	else {
		m_window->SetStyle( m_window->GetStyle() | sfg::Window::BACKGROUND );
	}
}
示例#3
0
void SampleApp::OnToggleTitlebarClick() {
	m_wndmain->SetStyle( m_wndmain->GetStyle() ^ sfg::Window::TITLEBAR );
}