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

Method ScreenToClient

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

Source from the content-addressed store, hash-verified

532}
533
534Float2 WindowsWindow::ScreenToClient(const Float2& screenPos) const
535{
536 ASSERT(HasHWND());
537
538 POINT p;
539 p.x = static_cast<LONG>(screenPos.X);
540 p.y = static_cast<LONG>(screenPos.Y);
541 ::ScreenToClient(_handle, &p);
542 return Float2(static_cast<float>(p.x), static_cast<float>(p.y));
543}
544
545Float2 WindowsWindow::ClientToScreen(const Float2& clientPos) const
546{

Callers

nothing calls this directly

Calls 3

ScreenToClientFunction · 0.85
Float2Class · 0.85
HasHWNDFunction · 0.70

Tested by

no test coverage detected