pub enum EventListener {
Show 36 variants
KeyDown,
KeyUp,
Click,
DoubleClick,
SecondaryClick,
DragStart,
DragEnd,
DragOver,
DragEnter,
DragLeave,
Drop,
PointerDown,
PointerMove,
PointerUp,
PointerEnter,
PointerLeave,
GotPointerCapture,
LostPointerCapture,
PinchGesture,
ImeEnabled,
ImeDisabled,
ImePreedit,
ImeDeleteSurrounding,
ImeCommit,
PointerWheel,
FocusGained,
FocusLost,
ThemeChanged,
WindowClosed,
WindowResized,
WindowMoved,
WindowGotFocus,
WindowLostFocus,
WindowMaximizeChanged,
WindowScaleChanged,
DroppedFiles,
}Variants§
KeyDown
Receives [Event::KeyDown]
KeyUp
Receives [Event::KeyUp]
Click
Receives [Event::PointerUp] or [Event::KeyDown]
KeyDown occurs when using enter on a focused element, such as a button.
DoubleClick
Receives [Event::PointerUp]
SecondaryClick
Receives [Event::PointerUp]
DragStart
Receives [Event::PointerMove]
DragEnd
Receives [Event::PointerUp]
DragOver
Receives [Event::PointerMove]
DragEnter
Receives [Event::PointerMove]
DragLeave
Receives [Event::PointerMove]
Drop
Receives [Event::PointerUp]
PointerDown
Receives [Event::PointerDown]
PointerMove
Receives [Event::PointerMove]
PointerUp
Receives [Event::PointerUp]
PointerEnter
Receives [Event::PointerMove]
PointerLeave
Receives [Event::PointerLeave]
GotPointerCapture
Fired when a view gains pointer capture.
Receives Event::GotPointerCapture
LostPointerCapture
Fired when a view loses pointer capture.
Receives Event::LostPointerCapture
PinchGesture
Receives [Event::PinchGesture]
ImeEnabled
Receives Event::ImeEnabled
ImeDisabled
Receives Event::ImeDisabled
ImePreedit
Receives Event::ImePreedit
ImeDeleteSurrounding
Receives Event::ImeDeleteSurrounding
ImeCommit
Receives Event::ImeCommit
PointerWheel
Receives [Event::PointerWheel]
FocusGained
Receives Event::FocusGained
FocusLost
Receives Event::FocusLost
ThemeChanged
Receives Event::ThemeChanged
WindowClosed
Receives Event::WindowClosed
WindowResized
Receives Event::WindowResized
WindowMoved
Receives Event::WindowMoved
WindowGotFocus
Receives Event::WindowGotFocus
WindowLostFocus
Receives Event::WindowLostFocus
WindowMaximizeChanged
Receives Event::WindowMaximizeChanged
WindowScaleChanged
Receives Event::WindowScaleChanged
DroppedFiles
Receives [Event::DroppedFile]
Trait Implementations§
Source§impl Clone for EventListener
impl Clone for EventListener
Source§fn clone(&self) -> EventListener
fn clone(&self) -> EventListener
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EventListener
impl Debug for EventListener
Source§impl Hash for EventListener
impl Hash for EventListener
Source§impl PartialEq for EventListener
impl PartialEq for EventListener
impl Copy for EventListener
impl Eq for EventListener
impl StructuralPartialEq for EventListener
Auto Trait Implementations§
impl Freeze for EventListener
impl RefUnwindSafe for EventListener
impl Send for EventListener
impl Sync for EventListener
impl Unpin for EventListener
impl UnwindSafe for EventListener
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more