Enumeration

NSAlignmentOptions

Values representing alignment operations.

Declaration

typedef enum NSAlignmentOptions : unsigned long long {
    ...
} NSAlignmentOptions;

Overview

These constants are used by the NSIntegralRectWithOptions function and other related methods, such as backingAlignedRect:options:.

Topics

Constants

NSAlignMinXInward

Specifies that alignment of the minimum X coordinate should be to the nearest inward integral value.

NSAlignMinYInward

Specifies that alignment of the minimum Y coordinate should be to the nearest inward integral value.

NSAlignMaxXInward

Specifies that alignment of the maximum X coordinate should be to the nearest inward integral value.

NSAlignMaxYInward

Specifies that alignment of the maximum X coordinate should be to the nearest inward integral value.

NSAlignWidthInward

Specifies that alignment of the width should be to the nearest inward integral value.

NSAlignHeightInward

Specifies that alignment of the height should be to the nearest inward integral value.

NSAlignMinXOutward

Specifies that alignment of the minimum X coordinate should be to the nearest outward integral value.

NSAlignMinYOutward

Specifies that alignment of the minimum Y coordinate should be to the nearest outward integral value.

NSAlignMaxXOutward

Specifies that alignment of the maximum X coordinate should be to the nearest outward integral value.

NSAlignMaxYOutward

Specifies that alignment of the maximum Y coordinate should be to the nearest outward integral value.

NSAlignWidthOutward

Specifies that alignment of the width should be to the nearest outward integral value.

NSAlignHeightOutward

Specifies that alignment of the height should be to the nearest outward integral value.

NSAlignMinXNearest

Specifies that alignment of the minimum X coordinate should be to the nearest integral value.

NSAlignMinYNearest

Specifies that alignment of the minimum Y coordinate should be to the nearest integral value.

NSAlignMaxXNearest

Specifies that alignment of the maximum X coordinate should be to the nearest integral value.

NSAlignMaxYNearest

Specifies that alignment of the maximum Y coordinate should be to the nearest integral value.

NSAlignWidthNearest

Specifies that alignment of the width should be to the nearest integral value.

NSAlignHeightNearest

Specifies that alignment of the height should be to the nearest integral value.

NSAlignRectFlipped

This option should be included if the rectangle is in a flipped coordinate system. This allows 0.5 to be treated in a visually consistent way.

NSAlignAllEdgesInward

Aligns all edges inward. This is the same as NSAlignMinXInward|NSAlignMaxXInward|NSAlignMinYInward|NSAlignMaxYInward.

NSAlignAllEdgesOutward

Aligns all edges outwards. This is the same as NSAlignMinXOutward|NSAlignMaxXOutward|NSAlignMinYOutward|NSAlignMaxYOutward.

NSAlignAllEdgesNearest

Aligns all edges to the nearest value. This is the same as NSAlignMinXNearest|NSAlignMaxXNearest|NSAlignMinYNearest|NSAlignMaxYNearest.

See Also

Related Types

NSRectArray

Type indicating a parameter is array of NSRect structures.

NSRectPointer

Type indicating a parameter is a pointer to an NSRect structure.