backingAlignedRect(_:options:)
Returns a backing store pixel-aligned rectangle in window coordinates.
Declaration
func backingAlignedRect(_ rect: NSRect, options: AlignmentOptions = []) -> NSRectParameters
- rect:
The rectangle in view coordinates.
- options:
The alignment options. Alignmentoptions specifies the possible values.
Return Value
A rectangle, in window coordinates, aligned to the backing store pixels according to the specified options.
Discussion
This method uses NSIntegralRectWithOptions(_:_:) to align the input rectangle, and produces a backing store pixel-aligned rectangle.