MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / FindChild

Method FindChild

ogsr_engine/xrGame/ui/UIWindow.cpp:693–713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693CUIWindow* CUIWindow::FindChild(const shared_str name, u32 max_nested)
694{
695 if (WindowName() == name)
696 return this;
697
698 if (0 == max_nested)
699 return NULL;
700
701 //. m_dbg_flag.set(256,TRUE);
702 WINDOW_LIST::const_iterator it = m_ChildWndList.begin();
703 WINDOW_LIST::const_iterator it_e = m_ChildWndList.end();
704 for (; it != it_e; ++it)
705 {
706 CUIWindow* pRes = (*it)->FindChild(name, max_nested - 1);
707 if (pRes != NULL)
708 return pRes;
709 }
710
711 //. m_dbg_flag.set(256,FALSE);
712 return NULL;
713}
714
715const shared_str CUIWindow::WindowName() const
716{

Callers 4

InitZoomParamsMethod · 0.80
UpdateMethod · 0.80
StartMethod · 0.80
GetStaticRawFunction · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected