Add doc comment
This commit is contained in:
parent
16b63031c1
commit
f40da376ce
1 changed files with 8 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue