pub struct TextMorph {
pub old: ShapeId,
pub new: ShapeId,
pub from: Xfrm,
pub to: Xfrm,
pub chars: bool,
pub t: f64,
}Expand description
The texts of two frame shapes (see crate::render_blend) morphed by words or characters.
Fields§
§old: ShapeIdThe frame shape from the old slide and the one from the new slide.
new: ShapeId§from: XfrmTheir boxes on their own slides: where the shared words start and end.
to: Xfrm§chars: boolCharacters instead of words.
t: f64Progress, 0..1 (already eased).
Trait Implementations§
impl Copy for TextMorph
impl StructuralPartialEq for TextMorph
Auto Trait Implementations§
impl Freeze for TextMorph
impl RefUnwindSafe for TextMorph
impl Send for TextMorph
impl Sync for TextMorph
impl Unpin for TextMorph
impl UnsafeUnpin for TextMorph
impl UnwindSafe for TextMorph
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more