diff options
Diffstat (limited to 'vendor/image/src/math/rect.rs')
-rw-r--r-- | vendor/image/src/math/rect.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/image/src/math/rect.rs b/vendor/image/src/math/rect.rs new file mode 100644 index 0000000..74696be --- /dev/null +++ b/vendor/image/src/math/rect.rs @@ -0,0 +1,12 @@ +/// A Rectangle defined by its top left corner, width and height. +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] +pub struct Rect { + /// The x coordinate of the top left corner. + pub x: u32, + /// The y coordinate of the top left corner. + pub y: u32, + /// The rectangle's width. + pub width: u32, + /// The rectangle's height. + pub height: u32, +} |