Introduce RelativeOffset type in scrollable

This commit is contained in:
Héctor Ramón Jiménez 2023-01-08 20:07:11 +01:00
parent 9f85e0c721
commit 624a4ada79
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
6 changed files with 75 additions and 69 deletions

View file

@ -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)
}
}