MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / isFocused

Method isFocused

Engine/source/windowManager/win32/win32Window.cpp:569–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569bool Win32Window::isFocused()
570{
571
572 if (mOffscreenRender)
573 return true;
574
575 // CodeReview This is enough to make the plugin and normal/editor scenarios
576 // coexist but it seems brittle. I think we need a better way to detect
577 // if we're the foreground window, maybe taking into account if any of our
578 // window's parents are foreground? [bjg 4/30/07]
579 if(mOwningManager->mParentWindow)
580 return (GetFocus() == mWindowHandle || IsChild(mWindowHandle, GetFocus()));
581 else
582 return ((GetFocus() == mWindowHandle || IsChild(mWindowHandle, GetFocus())) && GetForegroundWindow() == mWindowHandle);
583}
584
585bool Win32Window::isMinimized()
586{

Callers 2

getFocusedWindowMethod · 0.45
_dispatchFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected