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