diff options
author | 2023-01-08 20:07:11 +0100 | |
---|---|---|
committer | 2023-01-08 20:07:11 +0100 | |
commit | 624a4ada7981eb05c0b50cafa7e9545ad8347cb5 (patch) | |
tree | 4ef01bfbe31333aff06d738ae51272a570c6f11b /core | |
parent | 9f85e0c721927f1e3bd195a998ec7a80ec0e7455 (diff) | |
download | iced-624a4ada7981eb05c0b50cafa7e9545ad8347cb5.tar.gz iced-624a4ada7981eb05c0b50cafa7e9545ad8347cb5.tar.bz2 iced-624a4ada7981eb05c0b50cafa7e9545ad8347cb5.zip |
Introduce `RelativeOffset` type in `scrollable`
Diffstat (limited to '')
-rw-r--r-- | core/src/point.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/core/src/point.rs b/core/src/point.rs index d351befd..9bf7726b 100644 --- a/core/src/point.rs +++ b/core/src/point.rs @@ -75,11 +75,3 @@ impl std::ops::Sub<Point> for Point { Vector::new(self.x - point.x, self.y - point.y) } } - -impl std::ops::Add<Point> for Point { - type Output = Point; - - fn add(self, point: Point) -> Point { - Point::new(self.x + point.x, self.y + point.y) - } -} |