void remove(sfg::Desktop& desktop)
		{
			desktop.Remove(windowProperties);
			desktop.Remove(windowObjectBrowser);
			desktop.Remove(windowLayer);
			desktop.Remove(windowTool);
		}
Exemplo n.º 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 );
}
Exemplo n.º 3
0
void ChatBox::remove(sfg::Desktop & desktop)
{
	desktop.Remove(mWindow);
}