Struct Frame

pub struct Frame { /* private fields */ }

A single animation frame

Implementations

impl Frame

fn new(buffer: RgbaImage) -> Frame

Constructs a new frame without any delay.

fn from_parts(buffer: RgbaImage, left: u32, top: u32, delay: Delay) -> Frame

Constructs a new frame

fn delay(&self) -> Delay

Delay of this frame

fn buffer(&self) -> &RgbaImage

Returns the image buffer

fn buffer_mut(&mut self) -> &mut RgbaImage

Returns a mutable image buffer

fn into_buffer(self) -> RgbaImage

Returns the image buffer

fn left(&self) -> u32

Returns the x offset

fn top(&self) -> u32

Returns the y offset

Trait Implementations

impl Clone for Frame

fn clone(&self) -> Self
fn clone_from(&mut self, source: &Self)

Auto Trait Implementations

impl Freeze for Frame

impl RefUnwindSafe for Frame

impl Send for Frame

impl Sync for Frame

impl Unpin for Frame

impl UnsafeUnpin for Frame

impl UnwindSafe for Frame

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Frame where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Frame where ST: ?Sized, DT: ?Sized,

impl<T> Any for Frame where T: 'static + ?Sized,

impl<T> Borrow<T> for Frame where T: ?Sized,

impl<T> BorrowMut<T> for Frame where T: ?Sized,

impl<T> CloneToUninit for Frame where T: Clone,

impl<T> From<T> for Frame

impl<T> IntoEither for Frame

impl<T> Pointable for Frame

impl<T> Read<Exclusive, BecauseExclusive> for Frame where T: ?Sized,

impl<T> ToOwned for Frame where T: Clone,

impl<T, U> Into<U> for Frame where U: From<T>,

impl<T, U> TryFrom<U> for Frame where U: Into<T>,

impl<T, U> TryInto<U> for Frame where U: TryFrom<T>,