Incular logoIncular
API ReferencePlatform & Testing

Displays

Display identity, logical and physical geometry, and placement.

DisplayId is generational identity (from_parts(index, generation); names/order/handles are not identity).

Geometry

TypeShape
LogicalDisplayPositionLogical point relative to one display (x, y f64)
LogicalScreenPositionDesktop-global logical point (coherent spaces only)
LogicalScreenRectGlobal rect (origin, width, height); absent on mixed-DPI
PhysicalDisplayPositionPhysical point relative to one display (x, y i32)
PhysicalScreenRectNative-pixel global rect with centered_position() and intersection()

DisplayPlacementCapabilities covers discovery, bounds, work area, and positioning support. LogicalSizeLimits::new(min, max)? validates dynamic constraints (LogicalSizeLimitsError: invalid minimum/maximum, minimum-exceeds-maximum). LogicalWindowPosition::new(x, y)? blocks non-finite cursor coordinates (LogicalWindowPositionError on rejection).

Related: Desktop, WindowHandle.

On this page