pub struct Animation {
pub timelines: Vec<Timeline>,
pub current: usize,
pub onion_skin: Option<OnionSkin>,
pub frame: Frame,
}Expand description
All animation data of a file.
Fields§
§timelines: Vec<Timeline>Timelines in their linked order.
current: usizeIndex (0-based, in Animation::timelines) of the current timeline.
onion_skin: Option<OnionSkin>オニオンスキン settings, when the canvas has them.
frame: FrameThe 基準フレーム.
Implementations§
Source§impl Animation
impl Animation
Sourcepub fn frame_state(
&self,
file: &ClipFile,
index: usize,
frame: f64,
) -> Result<FrameState>
pub fn frame_state( &self, file: &ClipFile, index: usize, frame: f64, ) -> Result<FrameState>
The state of 0-based frame frame of the timeline at index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Animation
impl RefUnwindSafe for Animation
impl Send for Animation
impl Sync for Animation
impl Unpin for Animation
impl UnsafeUnpin for Animation
impl UnwindSafe for Animation
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