backingAlignedRect(_:options:)
Converts a rectangle in global screen coordinates to a pixel aligned rectangle.
Declaration
func backingAlignedRect(_ rect: NSRect, options: AlignmentOptions = []) -> NSRectParameters
- rect:
The input rectangle in global screen coordinates.
- options:
Specifies the alignment options. See Alignmentoptions for possible values.
Return Value
Returns a a pixel aligned rectangle on the target screen from the given input rectangle in global screen coordinates.
Discussion
This method uses NSIntegralRectWithOptions(_:_:) to produce the pixel aligned rectangle.