Contents

CGDisplayBounds(_:)

Returns the bounds of a display in the global display coordinate space.

Declaration

func CGDisplayBounds(_ display: CGDirectDisplayID) -> CGRect

Parameters

  • display:

    The identifier of the display to be accessed.

Return Value

The bounds of the display, expressed as a rectangle in the global display coordinate space (relative to the upper-left corner of the main display).

See Also

Functions