Contents

convertFromScreen(_:)

Converts a rectangle from the screen coordinate system to the window’s coordinate system.

Declaration

func convertFromScreen(_ rect: NSRect) -> NSRect

Parameters

  • rect:

    A rectangle in the screen’s coordinate system.

Return Value

A rectangle in the window’s coordinate system.

See Also

Converting Coordinates