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

Method ScreenToClient

Source/Engine/Platform/Mac/MacWindow.cpp:1051–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049}
1050
1051Float2 MacWindow::ScreenToClient(const Float2& screenPos) const
1052{
1053 NSWindow* window = (NSWindow*)_window;
1054 if (!window)
1055 return screenPos;
1056 Float2 titleSize = GetWindowTitleSize(this);
1057 return screenPos - GetPosition() - titleSize;
1058}
1059
1060Float2 MacWindow::ClientToScreen(const Float2& clientPos) const
1061{

Callers

nothing calls this directly

Calls 2

GetWindowTitleSizeFunction · 0.85
GetPositionFunction · 0.50

Tested by

no test coverage detected