Values representing alignment operations.

SDKs

- macOS 10.7+
- Mac Catalyst 13.0+

Framework

- Foundation

## Declaration

## Overview

These constants are used by the `NSIntegral`

function and other related methods, such as `backing`

.

Enumeration# NSAlignmentOptions

Values representing alignment operations.

SDKs

- macOS 10.7+
- Mac Catalyst 13.0+

Framework

- Foundation

These constants are used by the `NSIntegral`

function and other related methods, such as `backing`

.

`NSAlign`MinXInward

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

`NSAlign`MinYInward

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

`NSAlign`MaxXInward

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

`NSAlign`MaxYInward

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

`NSAlign`WidthInward

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

`NSAlign`HeightInward

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

`NSAlign`MinXOutward

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

`NSAlign`MinYOutward

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

`NSAlign`MaxXOutward

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

`NSAlign`MaxYOutward

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

`NSAlign`WidthOutward

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

`NSAlign`HeightOutward

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

`NSAlign`MinXNearest

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

`NSAlign`MinYNearest

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

`NSAlign`MaxXNearest

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

`NSAlign`MaxYNearest

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

`NSAlign`WidthNearest

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

`NSAlign`HeightNearest

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

`NSAlign`RectFlipped

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.

`NSAlign`AllEdgesInward

Aligns all edges inward. This is the same as `NSAlign`

.

`NSAlign`AllEdgesOutward

Aligns all edges outwards. This is the same as `NSAlign`

.

`NSAlign`AllEdgesNearest

Aligns all edges to the nearest value. This is the same as `NSAlign`

.

`NSRect`Array

Type indicating a parameter is array of `NSRect`

structures.

`NSRect`Pointer

Type indicating a parameter is a pointer to an `NSRect`

structure.