| 194 | } |
| 195 | |
| 196 | Float2 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 | |
| 203 | class MacDropData : public IGuiData |
| 204 | { |
no test coverage detected