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<f64>,
pub scale_y: Option<f64>,
pub dpi: Option<f64>,
}
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<f64>
scale_y: Option<f64>
dpi: Option<f64>
If set to None, will be set to 300.0 for images
Trait Implementations
sourceimpl Clone for SvgTransform
impl Clone for SvgTransform
sourcefn clone(&self) -> SvgTransform
fn clone(&self) -> SvgTransform
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SvgTransform
impl Debug for SvgTransform
sourceimpl Default for SvgTransform
impl Default for SvgTransform
sourcefn default() -> SvgTransform
fn default() -> SvgTransform
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SvgTransform> for SvgTransform
impl PartialEq<SvgTransform> for SvgTransform
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for T where
T: Default + PartialEq<T> + Copy,
sourcefn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.