Returns a backing store pixel-aligned rectangle in local view coordinates.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
func backingAlignedRect(_ rect: NSRect, options: Alignment Options = []) -> NSRect
Parameters
aRect
The rectangle in the view’s interior coordinate system.
options
The alignment options. See
Alignment
for possible values. (Note that although the alignment options specify integral values, the rectangle returned by this method is pixel-aligned.)Options
Return Value
A rectangle in the view’s interior coordinate system that is aligned to the backing store pixels using the specified options.
Discussion
Uses the NSIntegral
function and the given input rectangle and options to produce a backing store pixel-aligned rectangle in the view’s interior coordinates.