diff options
Diffstat (limited to 'graphics/src/widget/canvas/frame.rs')
-rw-r--r-- | graphics/src/widget/canvas/frame.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/src/widget/canvas/frame.rs b/graphics/src/widget/canvas/frame.rs index 01b27451..23db843d 100644 --- a/graphics/src/widget/canvas/frame.rs +++ b/graphics/src/widget/canvas/frame.rs @@ -244,7 +244,14 @@ impl Frame { self.transforms.current = self.transforms.previous.pop().unwrap(); } - /// TODO... + /// Stores the current transform of the [`Frame`] and executes the given + /// drawing operations within a clipped [`Rectange`] at translation / size, + /// restoring the transform afterwards. + /// + /// This method is userful to perform drawing operations that need to be + /// clipped. + /// + /// [`Rectange`]: crate::Rectangle #[inline] pub fn with_clip( &mut self, |