pub struct ShapeState {
pub visible: bool,
pub opacity: f64,
pub offset: Vec2,
pub scale: (f64, f64),
pub rotate: f64,
pub clip: Option<[f64; 4]>,
pub tint: Option<Rgba>,
pub paras: Vec<(usize, ParaState)>,
}Expand description
Animation state of one shape during a slide show or preview.
Fields§
§visible: bool§opacity: f64§offset: Vec2Applied in slide space around the shape’s centre: translation (pt), scale, rotation (deg).
scale: (f64, f64)§rotate: f64§clip: Option<[f64; 4]>Reveal clip in shape-local unit space (0..1): l, t, r, b.
tint: Option<Rgba>Colour override for emphasis effects (fill).
paras: Vec<(usize, ParaState)>Per-paragraph states of by-paragraph text builds (paragraph index, state).
Trait Implementations§
Source§impl Clone for ShapeState
impl Clone for ShapeState
Source§impl Debug for ShapeState
impl Debug for ShapeState
Auto Trait Implementations§
impl Freeze for ShapeState
impl RefUnwindSafe for ShapeState
impl Send for ShapeState
impl Sync for ShapeState
impl Unpin for ShapeState
impl UnsafeUnpin for ShapeState
impl UnwindSafe for ShapeState
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