Contents

convertFromBacking(_:)

Converts a rectangle from its pixel-aligned backing store coordinate system to the window’s coordinate system.

Declaration

func convertFromBacking(_ rect: NSRect) -> NSRect

Parameters

  • rect:

    The rectangle aligned to the pixel backing store coordinate system.

Return Value

A rectangle in the window’s coordinate system.

See Also

Converting Coordinates