Struct rog_anime::AnimeGif[][src]

pub struct AnimeGif(_, _);

A gif animation. This is a collection of frames from the gif, and a duration that the animation should be shown for.

Implementations

impl AnimeGif[src]

pub fn create_diagonal_gif(
    file_name: &Path,
    duration: AnimTime,
    brightness: f32
) -> Result<Self, AnimeError>
[src]

Create an animation using the 74x36 ASUS gif format

pub fn create_png_gif(
    file_name: &Path,
    scale: f32,
    angle: f32,
    translation: Vec2,
    duration: AnimTime,
    brightness: f32
) -> Result<Self, AnimeError>
[src]

Create an animation using a gif of any size. This method must precompute the result.

pub fn frames(&self) -> &[AnimeFrame][src]

Get a slice of the frames this gif has

pub fn duration(&self) -> AnimTime[src]

Get the time/count for this gif

Trait Implementations

impl Clone for AnimeGif[src]

impl Debug for AnimeGif[src]

impl<'de> Deserialize<'de> for AnimeGif[src]

impl Serialize for AnimeGif[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.