pub enum EventKind {
MouseMove,
MouseButton {
state: ElementState,
button: MouseButton,
},
MouseScroll {
delta: LogicalVector,
},
KeyInput {
input: KeyboardInput,
},
ReceivedCharacter(char),
DroppedFile(PathBuf),
HoveredFile(PathBuf),
HoveredFileCancelled,
Focused(bool),
CloseRequested,
}
Variants
MouseMove
MouseButton
MouseScroll
Fields
delta: LogicalVector
KeyInput
Fields
input: KeyboardInput
ReceivedCharacter(char)
DroppedFile(PathBuf)
HoveredFile(PathBuf)
HoveredFileCancelled
Focused(bool)
CloseRequested
Auto Trait Implementations
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnwindSafe for EventKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more