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

Function GetWindowTitleSize

Source/Engine/Platform/SDL/SDLPlatform.Mac.cpp:307–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307Float2 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
318Float2 GetMousePosition(SDLWindow* window, NSEvent* event)
319{

Callers 6

GetMousePositionFunction · 0.85
GetMousePositionFunction · 0.85
GetDragDropDataFunction · 0.85
SetClientBoundsMethod · 0.85
ScreenToClientMethod · 0.85
ClientToScreenMethod · 0.85

Calls 1

GetSettingsMethod · 0.80

Tested by

no test coverage detected