Introduce RelativeOffset type in scrollable
This commit is contained in:
parent
9f85e0c721
commit
624a4ada79
6 changed files with 75 additions and 69 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue