Type Alias NSRect

Source
pub type NSRect = CGRect;
Available on crate features NSGeometry and objc2-core-foundation 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.