Struct pdf_writer::writers::Transition
source · [−]pub struct Transition<'a> { /* private fields */ }
Expand description
Writer for a transition dictionary.
This struct is created by Page::transition
.
Implementations
sourceimpl<'a> Transition<'a>
impl<'a> Transition<'a>
sourcepub fn style(&mut self, kind: TransitionStyle) -> &mut Self
pub fn style(&mut self, kind: TransitionStyle) -> &mut Self
Write the /S
attribute to set the transition style.
sourcepub fn duration(&mut self, seconds: f32) -> &mut Self
pub fn duration(&mut self, seconds: f32) -> &mut Self
Write the /D
attribute to set the transition duration.
sourcepub fn dimension(&mut self, vertical: bool) -> &mut Self
pub fn dimension(&mut self, vertical: bool) -> &mut Self
Write the /Dm
attribute to set the transition direction. Will be
horizontal if the argument is false
.
sourcepub fn direction(&mut self, outward: bool) -> &mut Self
pub fn direction(&mut self, outward: bool) -> &mut Self
Write the /M
attribute to set the transition direction. Will be
inwards if the argument is false
.
sourcepub fn angle(&mut self, angle: TransitionAngle) -> &mut Self
pub fn angle(&mut self, angle: TransitionAngle) -> &mut Self
Write the /Di
attribute to set the transition angle.
Methods from Deref<Target = Dict<'a>>
Trait Implementations
sourceimpl<'a> Deref for Transition<'a>
impl<'a> Deref for Transition<'a>
sourceimpl<'a> DerefMut for Transition<'a>
impl<'a> DerefMut for Transition<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Transition<'a>
impl<'a> Send for Transition<'a>
impl<'a> Sync for Transition<'a>
impl<'a> Unpin for Transition<'a>
impl<'a> !UnwindSafe for Transition<'a>
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