Enum gpui2::InputEvent
source · pub enum InputEvent {
KeyDown(KeyDownEvent),
KeyUp(KeyUpEvent),
ModifiersChanged(ModifiersChangedEvent),
MouseDown(MouseDownEvent),
MouseUp(MouseUpEvent),
MouseMove(MouseMoveEvent),
MouseExited(MouseExitEvent),
ScrollWheel(ScrollWheelEvent),
FileDrop(FileDropEvent),
}
Variants§
KeyDown(KeyDownEvent)
KeyUp(KeyUpEvent)
ModifiersChanged(ModifiersChangedEvent)
MouseDown(MouseDownEvent)
MouseUp(MouseUpEvent)
MouseMove(MouseMoveEvent)
MouseExited(MouseExitEvent)
ScrollWheel(ScrollWheelEvent)
FileDrop(FileDropEvent)
Implementations§
source§impl InputEvent
impl InputEvent
source§impl InputEvent
impl InputEvent
pub unsafe fn from_native( native_event: id, window_height: Option<Pixels> ) -> Option<Self>
Trait Implementations§
source§impl Clone for InputEvent
impl Clone for InputEvent
source§fn clone(&self) -> InputEvent
fn clone(&self) -> InputEvent
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 moreAuto Trait Implementations§
impl RefUnwindSafe for InputEvent
impl Send for InputEvent
impl Sync for InputEvent
impl Unpin 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