pub enum EventListener {
Show 32 variants
KeyDown,
KeyUp,
Click,
DoubleClick,
SecondaryClick,
DragStart,
DragEnd,
DragOver,
DragEnter,
DragLeave,
Drop,
PointerDown,
PointerMove,
PointerUp,
PointerEnter,
PointerLeave,
PinchGesture,
ImeEnabled,
ImeDisabled,
ImePreedit,
ImeCommit,
PointerWheel,
FocusGained,
FocusLost,
ThemeChanged,
WindowClosed,
WindowResized,
WindowMoved,
WindowGotFocus,
WindowLostFocus,
WindowMaximizeChanged,
DroppedFile,
}
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
PinchGesture
Receives Event::PinchGesture
ImeEnabled
Receives Event::ImeEnabled
ImeDisabled
Receives Event::ImeDisabled
ImePreedit
Receives Event::ImePreedit
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
DroppedFile
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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