1 | /// A Rectangle defined by its top left corner, width and height. |
---|---|
2 | #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] |
3 | pub struct Rect { |
4 | /// The x coordinate of the top left corner. |
5 | pub x: u32, |
6 | /// The y coordinate of the top left corner. |
7 | pub y: u32, |
8 | /// The rectangle's width. |
9 | pub width: u32, |
10 | /// The rectangle's height. |
11 | pub height: u32, |
12 | } |
13 |