Write missing documentation in iced_wgpu
This commit is contained in:
parent
8622e998f2
commit
de638f44a5
6 changed files with 17 additions and 18 deletions
|
|
@ -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()),
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue