pub struct GifAnimation { /* private fields */ }Expand description
Decoded multi-frame animated GIF player model supporting looping and frame-accurate stepping.
Implementations§
Source§impl GifAnimation
Playback stepping and sample generation for GifAnimation.
impl GifAnimation
Playback stepping and sample generation for GifAnimation.
Sourcepub fn sample_neon_gif() -> Self
pub fn sample_neon_gif() -> Self
Sourcepub fn next_frame(&mut self)
pub fn next_frame(&mut self)
Advances immediately to the next animation frame (useful when paused).
§Arguments
&Self- Mutable GIF animation.
Sourcepub fn active_image(&self) -> ImageBuffer
pub fn active_image(&self) -> ImageBuffer
Source§impl GifAnimation
impl GifAnimation
pub fn get_frames(&self) -> &Vec<MediaFrame>
pub fn get_mut_frames(&mut self) -> &mut Vec<MediaFrame>
pub fn set_frames(&mut self, val: Vec<MediaFrame>) -> &mut Self
pub fn get_loop_count(&self) -> u32
pub fn get_mut_loop_count(&mut self) -> &mut u32
pub fn set_loop_count(&mut self, val: u32) -> &mut Self
pub fn get_current_frame(&self) -> usize
pub fn get_mut_current_frame(&mut self) -> &mut usize
pub fn set_current_frame(&mut self, val: usize) -> &mut Self
pub fn get_elapsed_ms(&self) -> u32
pub fn get_mut_elapsed_ms(&mut self) -> &mut u32
pub fn set_elapsed_ms(&mut self, val: u32) -> &mut Self
pub fn get_playing(&self) -> bool
pub fn get_mut_playing(&mut self) -> &mut bool
pub fn set_playing(&mut self, val: bool) -> &mut Self
pub fn get_metadata(&self) -> &MediaMetadata
pub fn get_mut_metadata(&mut self) -> &mut MediaMetadata
pub fn set_metadata(&mut self, val: MediaMetadata) -> &mut Self
Trait Implementations§
Source§impl Clone for GifAnimation
impl Clone for GifAnimation
Source§impl Debug for GifAnimation
impl Debug for GifAnimation
Source§impl Default for GifAnimation
impl Default for GifAnimation
Source§impl PartialEq for GifAnimation
impl PartialEq for GifAnimation
impl StructuralPartialEq for GifAnimation
Auto Trait Implementations§
impl Forget for GifAnimation
impl Freeze for GifAnimation
impl Move for GifAnimation
impl RefUnwindSafe for GifAnimation
impl Send for GifAnimation
impl Sync for GifAnimation
impl Unpin for GifAnimation
impl UnsafeUnpin for GifAnimationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<MediaFrame>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for GifAnimation
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