Type Alias objc2_foundation::NSRect

source ·
pub type NSRect = CGRect;
Available on crate feature NSGeometry only.
Expand description

A rectangle.

This is a convenience alias for CGRect. For ease of use, it is available on all platforms, though in practice it is only useful on macOS.

See Apple’s documentation.

Aliased Type§

struct NSRect {
    pub origin: CGPoint,
    pub size: CGSize,
}

Fields§

§origin: CGPoint

The coordinates of the rectangle’s origin.

§size: CGSize

The dimensions of the rectangle.