pub struct GraphicsStateStack { /* private fields */ }Expand description
A graphics state stack that supports save/restore (q/Q operators).
Implementations§
Source§impl GraphicsStateStack
impl GraphicsStateStack
pub fn new() -> Self
Sourcepub fn current(&self) -> &GraphicsState
pub fn current(&self) -> &GraphicsState
Get the current graphics state.
Sourcepub fn current_mut(&mut self) -> &mut GraphicsState
pub fn current_mut(&mut self) -> &mut GraphicsState
Get a mutable reference to the current graphics state.
Trait Implementations§
Source§impl Debug for GraphicsStateStack
impl Debug for GraphicsStateStack
Auto Trait Implementations§
impl Freeze for GraphicsStateStack
impl RefUnwindSafe for GraphicsStateStack
impl Send for GraphicsStateStack
impl Sync for GraphicsStateStack
impl Unpin for GraphicsStateStack
impl UnsafeUnpin for GraphicsStateStack
impl UnwindSafe for GraphicsStateStack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more