PlatformWindowMetrics struct

Public functions

auto LogicalToUI() const -> float
Logical pixels (pointer positions, window rects) -> UI units.

Public variables

int32_t Width
int32_t Height
logical pixels (window coordinates)
int32_t PixelWidth
int32_t PixelHeight
physical pixels (swapchain size)
float PixelDensity
physical pixels per logical pixel
float DisplayScale
OS scale of the window's monitor.
float Scale
UI scale: physical pixels per UI unit.