Struct printpdf::svg::SvgTransform
source · pub struct SvgTransform {
pub translate_x: Option<Pt>,
pub translate_y: Option<Pt>,
pub rotate: Option<SvgRotation>,
pub scale_x: Option<f32>,
pub scale_y: Option<f32>,
pub dpi: Option<f32>,
}
Expand description
Transform that is applied immediately before the image gets painted. Does not affect anything other than the image.
Fields§
§translate_x: Option<Pt>
§translate_y: Option<Pt>
§rotate: Option<SvgRotation>
Rotate (clockwise), in degree angles
scale_x: Option<f32>
§scale_y: Option<f32>
§dpi: Option<f32>
If set to None, will be set to 300.0 for images
Trait Implementations§
source§impl Clone for SvgTransform
impl Clone for SvgTransform
source§fn clone(&self) -> SvgTransform
fn clone(&self) -> SvgTransform
Returns a copy of the value. Read more
1.0.0 · 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 SvgTransform
impl Debug for SvgTransform
source§impl Default for SvgTransform
impl Default for SvgTransform
source§fn default() -> SvgTransform
fn default() -> SvgTransform
Returns the “default value” for a type. Read more
source§impl PartialEq for SvgTransform
impl PartialEq for SvgTransform
source§fn eq(&self, other: &SvgTransform) -> bool
fn eq(&self, other: &SvgTransform) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SvgTransform
impl StructuralPartialEq for SvgTransform
Auto Trait Implementations§
impl RefUnwindSafe for SvgTransform
impl Send for SvgTransform
impl Sync for SvgTransform
impl Unpin for SvgTransform
impl UnwindSafe for SvgTransform
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