Write missing documentation in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2023-05-11 15:37:56 +02:00
parent 8622e998f2
commit de638f44a5
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
6 changed files with 17 additions and 18 deletions

View file

@ -127,9 +127,9 @@ impl Frame {
self.transform = self.stack.pop().expect("Pop transform");
}
pub fn clip(&mut self, frame: Self, translation: Vector) {
pub fn clip(&mut self, frame: Self, at: Point) {
self.primitives.push(Primitive::Translate {
translation,
translation: Vector::new(at.x, at.y),
content: Box::new(frame.into_primitive()),
});
}