pub struct MovieKeyframe {Show 17 fields
pub index: usize,
pub duration: usize,
pub symbol_name: String,
pub symbol: Option<Rc<dyn Symbol<MovieSprite>>>,
pub label: String,
pub x: f32,
pub y: f32,
pub scale_x: f32,
pub scale_y: f32,
pub skew_x: f32,
pub skew_y: f32,
pub pivot_x: f32,
pub pivot_y: f32,
pub alpha: f32,
pub visible: bool,
pub tweened: bool,
pub ease: f32,
}
Fields
index: usize
duration: usize
The length of this keyframe in frames.
symbol_name: String
symbol: Option<Rc<dyn Symbol<MovieSprite>>>
label: String
x: f32
y: f32
scale_x: f32
scale_y: f32
skew_x: f32
skew_y: f32
pivot_x: f32
pivot_y: f32
alpha: f32
visible: bool
tweened: bool
Whether this keyframe should be tweened to the next.
ease: f32
Easing amount, if tweened is true.
Implementations
sourceimpl MovieKeyframe
impl MovieKeyframe
pub fn new(json: KeyframeFormat, prev_kf: Option<MovieKeyframe>) -> Self
Trait Implementations
sourceimpl Clone for MovieKeyframe
impl Clone for MovieKeyframe
sourcefn clone(&self) -> MovieKeyframe
fn clone(&self) -> MovieKeyframe
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 MovieKeyframe
impl Debug for MovieKeyframe
sourceimpl Default for MovieKeyframe
impl Default for MovieKeyframe
sourcefn default() -> MovieKeyframe
fn default() -> MovieKeyframe
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for MovieKeyframe
impl !Send for MovieKeyframe
impl !Sync for MovieKeyframe
impl Unpin for MovieKeyframe
impl !UnwindSafe for MovieKeyframe
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<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.