Enum rog_anime::ActionLoader[][src]

pub enum ActionLoader {
    AsusAnimation {
        file: PathBuf,
        time: AnimTime,
        brightness: f32,
    },
    AsusImage {
        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,
        time: AnimTime,
        brightness: f32,
    },
    Pause(Duration),
}
Expand description

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

Variants

AsusAnimation

Fields

file: PathBuf
time: AnimTime
brightness: f32

Full gif sequence. Immutable.

AsusImage

Fields

file: PathBuf
time: AnimTime
brightness: f32

Image designed to be pixel perfect using the slanted template

ImageAnimation

Fields

file: PathBuf
scale: f32
angle: f32
translation: Vec2
time: AnimTime
brightness: f32

Animated gif. If the file is a png a static gif is created using the time properties

Image

Fields

file: PathBuf
scale: f32
angle: f32
translation: Vec2
time: AnimTime
brightness: f32

Pause(Duration)

Tuple Fields

A pause to be used between sequences

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.