void remove(sfg::Desktop& desktop)
		{
			desktop.Remove(windowProperties);
			desktop.Remove(windowObjectBrowser);
			desktop.Remove(windowLayer);
			desktop.Remove(windowTool);
		}
Пример #2
0
void DesktopExample::OnDestroyWindowClick() {
	// Obtain parent window.
	sfg::Widget::Ptr widget( sfg::Context::Get().GetActiveWidget() );

	while( widget->GetName() != "Window" ) {
		widget = widget->GetParent();
	}

	// Remove window from desktop.
	m_desktop.Remove( widget );
}
Пример #3
0
void ChatBox::remove(sfg::Desktop & desktop)
{
	desktop.Remove(mWindow);
}