Type Alias objc2::foundation::NSRect
source · pub type NSRect = CGRect;
Expand description
A rectangle.
This is just a convenience alias for CGRect
. For ease of use, it is
available on all platforms, though in practice it is only useful on macOS.
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.