Enumeration

NSViewLayerContentsPlacement

These constants specify the location of the layer content when the content is not rerendered in response to view resizing. For more information, see the layerContentsPlacement property.

Declaration

typedef enum NSViewLayerContentsPlacement : NSInteger {
    ...
} NSViewLayerContentsPlacement;

Topics

Constants

NSViewLayerContentsPlacementScaleAxesIndependently

The content is resized to fit the entire bounds rectangle.

NSViewLayerContentsPlacementScaleProportionallyToFit

The content is resized to fit the bounds rectangle, preserving the aspect of the content. If the content does not completely fill the bounds rectangle, the content is centered in the partial axis.

NSViewLayerContentsPlacementScaleProportionallyToFill

The content is resized to completely fill the bounds rectangle, while still preserving the aspect of the content. The content is centered in the axis it exceeds.

NSViewLayerContentsPlacementCenter

The content is horizontally and vertically centered in the bounds rectangle.

NSViewLayerContentsPlacementTop

The content is horizontally centered at the top-edge of the bounds rectangle.

NSViewLayerContentsPlacementTopRight

The content is positioned in the top-right corner of the bounds rectangle.

NSViewLayerContentsPlacementRight

The content is vertically centered at the right-edge of the bounds rectangle.

NSViewLayerContentsPlacementBottomRight

The content is positioned in the bottom-right corner of the bounds rectangle.

NSViewLayerContentsPlacementBottom

The content is horizontally centered at the bottom-edge of the bounds rectangle.

NSViewLayerContentsPlacementBottomLeft

The content is positioned in the bottom-left corner of the bounds rectangle.

NSViewLayerContentsPlacementLeft

The content is vertically centered at the left-edge of the bounds rectangle.

NSViewLayerContentsPlacementTopLeft

The content is positioned in the top-left corner of the bounds rectangle.