Instance Method

convertRectFromBacking(_:)

Converts the rectangle from the device pixel aligned coordinates system of a screen.

Declaration

func convertRectFromBacking(_ rect: NSRect) -> NSRect

Parameters

aRect

The rectangle.

Return Value

The rectangle converted from the device pixel aligned coordinates system of the screen.

See Also

Screen Backing Coordinate Conversion

func backingAlignedRect(NSRect, options: AlignmentOptions) -> NSRect

Converts a rectangle in global screen coordinates to a pixel aligned rectangle.

var backingScaleFactor: CGFloat

The backing store pixel scale factor for the screen.

func convertRectToBacking(NSRect) -> NSRect

Converts the rectangle to the device pixel aligned coordinates system of a screen.