Struct rog_anime::AnimeGif[][src]

pub struct AnimeGif(_, _);
Expand description

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

Implementations

Create an animation using the 74x36 ASUS gif format

Create an animation using the 74x36 ASUS gif format from a png

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

Make a static gif out of a greyscale png. If no duration is specified then the default will be 1 second long. If AnimTime::Cycles is specified for duration then this can be considered how many seconds the image will show for.

Get a slice of the frames this gif has

Get the time/count for this gif

Get the frame count

Get total gif time for one run

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.