pub struct AnimationData {
pub frames: Vec<AnimationFrame>,
pub loop_count: LoopCount,
}Expand description
Validated, pre-decoded frame sequence and playback configuration.
Fields§
§frames: Vec<AnimationFrame>§loop_count: LoopCountImplementations§
Source§impl AnimationData
impl AnimationData
Sourcepub fn new(
frames: Vec<AnimationFrame>,
loop_count: LoopCount,
) -> GuiResult<Self>
pub fn new( frames: Vec<AnimationFrame>, loop_count: LoopCount, ) -> GuiResult<Self>
Creates animation data after validating frame count, delays, and loop count.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Number of frames in this animation.
Trait Implementations§
Source§impl Clone for AnimationData
impl Clone for AnimationData
Source§impl Debug for AnimationData
impl Debug for AnimationData
impl Eq for AnimationData
Source§impl PartialEq for AnimationData
impl PartialEq for AnimationData
impl StructuralPartialEq for AnimationData
Auto Trait Implementations§
impl Forget for AnimationData
impl Freeze for AnimationData
impl Move for AnimationData
impl RefUnwindSafe for AnimationData
impl Send for AnimationDatawhere
RawVecInner: Send,
impl Sync for AnimationDatawhere
RawVecInner: Sync,
impl Unpin for AnimationData
impl UnsafeUnpin for AnimationData
impl UnwindSafe for AnimationDatawhere
RawVecInner: UnwindSafe,
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