void LinkButtonParser::RemoveLinkBtnFromWindow(CEGUI::Window *Wnd)
{
    mapLinkInfo::iterator iterInfo = LinkMap.begin();
    while(iterInfo != LinkMap.end())
    {
        CEGUI::Window *pChildWin = iterInfo->first;

        if (Wnd == pChildWin->getParent())
        {
            pChildWin->destroy();
            iterInfo = LinkMap.erase(iterInfo);
            continue;
        }
        ++iterInfo;
    }
}
Пример #2
0
 virtual void exit() {
   if (m_pRoot) {
     m_pRoot->destroy();
     m_pRoot = nullptr;
   }
 }