pub enum InputEvent {
KeyDown {
key: Key,
modifiers: Modifiers,
},
KeyUp {
key: Key,
modifiers: Modifiers,
},
PointerDown {
x: f32,
y: f32,
button: PointerButton,
modifiers: Modifiers,
},
PointerMove {
x: f32,
y: f32,
modifiers: Modifiers,
},
PointerUp {
x: f32,
y: f32,
button: PointerButton,
modifiers: Modifiers,
},
Wheel {
x: f32,
y: f32,
dx: f32,
dy: f32,
},
Resize {
width: f32,
height: f32,
},
Tick,
FocusGained,
FocusLost,
}Variants§
KeyDown
KeyUp
PointerDown
PointerMove
PointerUp
Wheel
Resize
Tick
Background work finished, so the host should refresh whatever it draws from outside the view tree: a pty’s latest output, a reloaded file, a finished task. A cross-thread redraw request arrives as a tick, on the thread that owns the window.
FocusGained
FocusLost
Implementations§
Source§impl InputEvent
impl InputEvent
pub fn is_save_shortcut(&self) -> bool
Trait Implementations§
Source§impl Clone for InputEvent
impl Clone for InputEvent
Source§impl Debug for InputEvent
impl Debug for InputEvent
Source§impl PartialEq for InputEvent
impl PartialEq for InputEvent
impl StructuralPartialEq for InputEvent
Auto Trait Implementations§
impl Freeze for InputEvent
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin for InputEvent
impl UnsafeUnpin for InputEvent
impl UnwindSafe for InputEvent
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