pub enum EventObject<'a> {
Background {
filename: Cow<'a, str>,
time: Time<i32>,
x: i32,
y: i32,
},
Video {
filename: Cow<'a, str>,
time: Time<i32>,
x: i32,
y: i32,
},
Break {
time: Time<i32>,
end_time: Time<i32>,
},
Colour {
time: Time<i32>,
colour: Colour,
},
Sprite {
filename: Cow<'a, str>,
x: f64,
y: f64,
origin: EventOrigin,
layer: EventLayer,
},
Sample {
filename: Cow<'a, str>,
time: Time<i32>,
volume: f64,
layer: EventLayer,
},
Animation {
filename: Cow<'a, str>,
x: f64,
y: f64,
origin: EventOrigin,
layer: EventLayer,
frame_count: i32,
frame_delay: f64,
loop_type: EventLoop,
},
}
Variants§
Trait Implementations§
Source§impl<'a> Clone for EventObject<'a>
impl<'a> Clone for EventObject<'a>
Source§fn clone(&self) -> EventObject<'a>
fn clone(&self) -> EventObject<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for EventObject<'a>
impl<'a> Debug for EventObject<'a>
Source§impl<'a> PartialEq for EventObject<'a>
impl<'a> PartialEq for EventObject<'a>
impl<'a> StructuralPartialEq for EventObject<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventObject<'a>
impl<'a> RefUnwindSafe for EventObject<'a>
impl<'a> Send for EventObject<'a>
impl<'a> Sync for EventObject<'a>
impl<'a> Unpin for EventObject<'a>
impl<'a> UnwindSafe for EventObject<'a>
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