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

Method CommitFocus

ogsr_engine/xrGame/ui/UIWindow.cpp:227–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void CUIWindow::CommitFocus(bool focus_lost)
228{
229 if (m_bCursorOverWindowChanged && m_bCursorOverWindow == focus_lost)
230 {
231 if (m_bCursorOverWindow)
232 OnFocusLost();
233 else
234 OnFocusReceive();
235 m_bCursorOverWindowChanged = false;
236 }
237
238 for (auto it = m_ChildWndList.begin(); m_ChildWndList.end() != it; ++it)
239 if ((*it)->IsShown())
240 (*it)->CommitFocus(focus_lost);
241}
242
243void CUIWindow::Update()
244{

Callers 3

StartMenuMethod · 0.80
StopMenuMethod · 0.80
OnFrameMethod · 0.80

Calls 3

IsShownMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected