Structure

NSEdgeInsets

A description of the distance between the edges of two rectangles.

Declaration

typedef struct NSEdgeInsets {
    ...
} NSEdgeInsets;

Overview

Edge insets describe the distance between the edges of one rectangle to a related rectangle that can be described by measuring a constant but edge-specific distance from each edge.

A common use for this structure is to describe the relationship between a view’s frame and its alignment rectangle.

Topics

Edges

bottom

The distance from the bottom of the source rectangle to the bottom of the result rectangle.

left

The distance from the left side of the source rectangle to the left side of the result rectangle.

right

The distance from the right side of the source rectangle to the right side of the result rectangle.

top

The distance from the top of the source rectangle to the top of the result rectangle.

Zero Constant

See Also

Geometry

CGFloat

The basic type for all floating-point values.

NSPoint

A point in a Cartesian coordinate system.

NSSize

A two-dimensional size.

NSRect

A rectangle.

NSAffineTransform

A graphics coordinate transformation.