Instance Method

convertRectToBacking(_:)

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

Declaration

func convertRectToBacking(_ rect: NSRect) -> NSRect

Parameters

aRect

The rectangle.

Return Value

The rectangle converted to 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 convertRectFromBacking(NSRect) -> NSRect

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