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
文件: ChatBox.cpp 项目: kiwon0905/PT
void ChatBox::remove(sfg::Desktop & desktop)
{
	desktop.Remove(mWindow);
}