pub struct Transforms {
transform: Affine,
paint_transform: Affine,
}Expand description
Context for holding transforms for paths and paints.
Fields§
§transform: Affine§paint_transform: AffineImplementations§
Source§impl Transforms
impl Transforms
Sourcepub fn scene_transform(&self) -> Affine
pub fn scene_transform(&self) -> Affine
Return the transform used for rendering scene geometry.
Sourcepub fn set_transform(&mut self, transform: Affine)
pub fn set_transform(&mut self, transform: Affine)
Set the current scene transform.
Sourcepub fn reset_transform(&mut self)
pub fn reset_transform(&mut self)
Reset the current scene transform.
Sourcepub fn paint_transform(&self) -> &Affine
pub fn paint_transform(&self) -> &Affine
Return the current paint transform.
Sourcepub fn scene_paint_transform(&self) -> Affine
pub fn scene_paint_transform(&self) -> Affine
Return the transform used for rendering scene paints.
Sourcepub fn set_paint_transform(&mut self, paint_transform: Affine)
pub fn set_paint_transform(&mut self, paint_transform: Affine)
Set the current paint transform.
Sourcepub fn reset_paint_transform(&mut self)
pub fn reset_paint_transform(&mut self)
Reset the current paint transform.
Sourcepub fn clip_path_transform(&self) -> Affine
pub fn clip_path_transform(&self) -> Affine
Return the transform used for non-isolated clip paths.
Trait Implementations§
Source§impl Clone for Transforms
impl Clone for Transforms
Source§fn clone(&self) -> Transforms
fn clone(&self) -> Transforms
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Transforms
impl Debug for Transforms
Auto Trait Implementations§
impl Freeze for Transforms
impl RefUnwindSafe for Transforms
impl Send for Transforms
impl Sync for Transforms
impl Unpin for Transforms
impl UnsafeUnpin for Transforms
impl UnwindSafe for Transforms
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