pub enum HFlip {
Dynamic(usize, Easing, i32, i32),
}Expand description
HFlip event
Variants§
Trait Implementations§
Source§impl Into<HFlip> for (i32, i32)
Creates a HFlip event with the timestamps
impl Into<HFlip> for (i32, i32)
Creates a HFlip event with the timestamps
Uses a Linear easing
Example:
use osb::Sprite;
let start_time = 0;
let end_time = 1000;
let mut sprite = Sprite::new("res/sprite.png");
sprite.hflip_((start_time, end_time));Source§impl Into<HFlip> for (Easing, i32, i32)
Creates a HFlip event with the easing and the timestamps
impl Into<HFlip> for (Easing, i32, i32)
Creates a HFlip event with the easing and the timestamps
Example:
use osb::{Easing, Sprite};
let easing = Easing::Out;
let start_time = 0;
let end_time = 1000;
let mut sprite = Sprite::new("res/sprite.png");
sprite.hflip_((easing, start_time, end_time));Auto Trait Implementations§
impl Freeze for HFlip
impl RefUnwindSafe for HFlip
impl Send for HFlip
impl Sync for HFlip
impl Unpin for HFlip
impl UnsafeUnpin for HFlip
impl UnwindSafe for HFlip
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more