Instance Method

backingAlignedRect:options:

Returns a backing store pixel aligned rectangle in window coordinates.

Declaration

- (NSRect)backingAlignedRect:(NSRect)rect options:(NSAlignmentOptions)options;

Parameters

rect

The rectangle in view coordinates.

options

The alignment options. See NSAlignmentOptions for possible values.

Return Value

A rectangle that is aligned to the backing store pixels using the specified options. The rectangle is in window coordinates.

Discussion

Uses the NSIntegralRectWithOptions function to produce a backing store pixel aligned rectangle from the given input rectangle in window coordinates.

See Also

Converting Coordinates

backingScaleFactor

The backing scale factor.

- convertRectFromBacking:

Converts a rect from its pixel aligned backing store coordinate system to the window’s coordinate system.

- convertRectToBacking:

Converts a rectangle from the window’s coordinate system to its pixel aligned backing store coordinate system.

- convertRectToScreen:

Converts the rectangle to the screen coordinate system from the window’s coordinate system.

- convertRectFromScreen:

Converts the rectangle from the screen coordinate system to the window’s coordinate system

- convertBaseToScreen:

Converts a given point from the window’s base coordinate system to the screen coordinate system.

Deprecated
- convertScreenToBase:

Converts a given point from the screen coordinate system to the window’s base coordinate system.

Deprecated
- userSpaceScaleFactor

Returns the scale factor applied to the window.

Deprecated