Struct rog_anime::AnimeGif [−][src]
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]
file_name: &Path,
duration: AnimTime,
brightness: f32
) -> Result<Self, AnimeError>
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]
file_name: &Path,
scale: f32,
angle: f32,
translation: Vec2,
duration: AnimTime,
brightness: f32
) -> Result<Self, AnimeError>
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for AnimeGif
[src]
Auto Trait Implementations
impl RefUnwindSafe for AnimeGif
impl Send for AnimeGif
impl Sync for AnimeGif
impl Unpin for AnimeGif
impl UnwindSafe for AnimeGif
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,