| 305 | } |
| 306 | |
| 307 | Float2 GetWindowTitleSize(const SDLWindow* window) |
| 308 | { |
| 309 | Float2 size = Float2::Zero; |
| 310 | if (window->GetSettings().HasBorder) |
| 311 | { |
| 312 | NSRect frameStart = [(NSWindow*)window->GetNativePtr() frameRectForContentRect:NSMakeRect(0, 0, 0, 0)]; |
| 313 | size.Y = frameStart.size.height; |
| 314 | } |
| 315 | return size * MacPlatform::ScreenScale; |
| 316 | } |
| 317 | |
| 318 | Float2 GetMousePosition(SDLWindow* window, NSEvent* event) |
| 319 | { |
no test coverage detected