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
| Type | Shape |
|---|---|
LogicalDisplayPosition | Logical point relative to one display (x, y f64) |
LogicalScreenPosition | Desktop-global logical point (coherent spaces only) |
LogicalScreenRect | Global rect (origin, width, height); absent on mixed-DPI |
PhysicalDisplayPosition | Physical point relative to one display (x, y i32) |
PhysicalScreenRect | Native-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.