pub enum Event {
TouchBegin {
id: usize,
position: LocalPoint,
},
TouchMove {
id: usize,
position: LocalPoint,
delta: LocalOffset,
},
TouchEnd {
id: usize,
position: LocalPoint,
},
Command(String),
Key(Key),
Anim,
}
Expand description
User interface event.
Variants§
TouchBegin
Touch event, or mouse down.
TouchMove
Touch moved or mouse moved while down.
TouchEnd
Touch went up or mouse button released.
Command(String)
Menu command.
Key(Key)
Key press.
Anim
Animation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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