rust_macios/core_graphics/cg_rect.rs
1use super::{CGPoint, CGSize};
2
3/// A structure that contains a rectangle in a two-dimensional coordinate system.
4#[derive(Debug, Default, Copy, Clone, PartialEq)]
5#[repr(C)]
6pub struct CGRect {
7 /// A point that specifies the coordinates of the rectangle’s origin.
8 pub origin: CGPoint,
9 /// A size that specifies the height and width of the rectangle.
10 pub size: CGSize,
11}