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

Function GetMousePosition

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

Source from the content-addressed store, hash-verified

194}
195
196Float2 GetMousePosition(MacWindow* window, NSEvent* event)
197{
198 NSRect frame = [(NSWindow*)window->GetNativePtr() frame];
199 NSPoint point = [event locationInWindow];
200 return Float2(point.x, frame.size.height - point.y) * MacPlatform::ScreenScale - GetWindowTitleSize(window);
201}
202
203class MacDropData : public IGuiData
204{

Callers 5

MacWindow.cppFile · 0.70
OnUpdateMethod · 0.70
DoDragDropMethod · 0.50

Calls 2

Float2Class · 0.85
GetWindowTitleSizeFunction · 0.85

Tested by

no test coverage detected