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
Full gif sequence. Immutable.
AsusImage
Image designed to be pixel perfect using the slanted template
ImageAnimation
Animated gif. If the file is a png a static gif is created using the time
properties
Image
Pause(Duration)
Tuple Fields
0: Duration
A pause to be used between sequences
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ActionLoader
impl Send for ActionLoader
impl Sync for ActionLoader
impl Unpin for ActionLoader
impl UnwindSafe for ActionLoader
Blanket Implementations
Mutably borrows from an owned value. Read more