MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ClientToScreen

Method ClientToScreen

Source/Engine/Platform/Windows/WindowsWindow.cpp:545–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545Float2 WindowsWindow::ClientToScreen(const Float2& clientPos) const
546{
547 ASSERT(HasHWND());
548
549 if (_minimized)
550 {
551 // Return cached position when window is not on screen
552 return _minimizedScreenPosition + clientPos;
553 }
554
555 POINT p;
556 p.x = static_cast<LONG>(clientPos.X);
557 p.y = static_cast<LONG>(clientPos.Y);
558 ::ClientToScreen(_handle, &p);
559 return Float2(static_cast<float>(p.x), static_cast<float>(p.y));
560}
561
562void WindowsWindow::FlashWindow()
563{

Callers

nothing calls this directly

Calls 3

ClientToScreenFunction · 0.85
Float2Class · 0.85
HasHWNDFunction · 0.70

Tested by

no test coverage detected