Enum rog_anime::AnimeAction[][src]

pub enum AnimeAction {
    AsusAnimation {
        file: PathBuf,
        time: AnimTime,
        brightness: f32,
    },
    ImageAnimation {
        file: PathBuf,
        scale: f32,
        angle: f32,
        translation: Vec2,
        time: AnimTime,
        brightness: f32,
    },
    Image {
        file: PathBuf,
        scale: f32,
        angle: f32,
        translation: Vec2,
        brightness: f32,
    },
    Pause(Duration),
}

All the possible AniMe actions that can be used. This enum is intended to be a helper for loading up ActionData.

Variants

AsusAnimation

Full gif sequence. Immutable.

Fields of AsusAnimation

file: PathBuftime: AnimTimebrightness: f32
ImageAnimation

Basic image, can have properties changed

Fields of ImageAnimation

file: PathBufscale: f32angle: f32translation: Vec2time: AnimTimebrightness: f32
Image

Fields of Image

file: PathBufscale: f32angle: f32translation: Vec2brightness: f32
Pause(Duration)

A pause to be used between sequences

Trait Implementations

impl Clone for AnimeAction[src]

impl Debug for AnimeAction[src]

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

impl Serialize for AnimeAction[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.