pub enum EventName {
Show 31 variants
Click,
MiddleClick,
RightClick,
MouseUp,
MouseDown,
MouseMove,
MouseEnter,
MouseLeave,
Wheel,
PointerOver,
PointerDown,
PointerEnter,
PointerLeave,
PointerUp,
PointerPress,
KeyDown,
KeyUp,
GlobalKeyDown,
GlobalKeyUp,
TouchCancel,
TouchStart,
TouchMove,
TouchEnd,
GlobalClick,
GlobalPointerUp,
CaptureGlobalMouseMove,
GlobalMouseDown,
GlobalMouseMove,
GlobalFileHover,
GlobalFileHoverCancelled,
FileDrop,
}
Variants§
Click
MiddleClick
RightClick
MouseUp
MouseDown
MouseMove
MouseEnter
MouseLeave
Wheel
PointerOver
PointerDown
PointerEnter
PointerLeave
PointerUp
PointerPress
KeyDown
KeyUp
GlobalKeyDown
GlobalKeyUp
TouchCancel
TouchStart
TouchMove
TouchEnd
GlobalClick
GlobalPointerUp
CaptureGlobalMouseMove
GlobalMouseDown
GlobalMouseMove
GlobalFileHover
GlobalFileHoverCancelled
FileDrop
Implementations§
Trait Implementations§
Source§impl NameOfEvent for EventName
impl NameOfEvent for EventName
Source§fn get_global_events(&self) -> Vec<Self>
fn get_global_events(&self) -> Vec<Self>
Get a set of global events derived from this event.
Source§fn get_derived_events(&self) -> Vec<Self>
fn get_derived_events(&self) -> Vec<Self>
Get a set of events derived from this event. For example, mouse movement derives into mouse movement + mouse enter.
Source§fn get_cancellable_events(&self) -> Vec<Self>
fn get_cancellable_events(&self) -> Vec<Self>
Get a set of events that will be discarded once this event is cancelled.
Source§fn is_enter(&self) -> bool
fn is_enter(&self) -> bool
Check if this event means that the pointer device started hovering a node.
Source§fn is_global(&self) -> bool
fn is_global(&self) -> bool
Check if this event is global, where global means that an event will be emitted to every node independently of where they are or how they are.
Source§fn is_moved(&self) -> bool
fn is_moved(&self) -> bool
Check if this event means that the pointer device as moved while hovering a node.
Source§fn does_bubble(&self) -> bool
fn does_bubble(&self) -> bool
Check if this event bubbles, where bubbling means that an ancestor of the event node will be called with the same event unless the event node stops the bubbling.
Source§fn does_go_through_solid(&self) -> bool
fn does_go_through_solid(&self) -> bool
Check if this event can go through solid surfaces, e.g keyboard events.
Source§fn is_pressed(&self) -> bool
fn is_pressed(&self) -> bool
Check if this event means that the pointer device was pressed while hovering a node.
Source§fn is_released(&self) -> bool
fn is_released(&self) -> bool
Check if this event means that the pointer device was released while hovering and hovering a node.
Source§impl Ord for EventName
impl Ord for EventName
Source§impl PartialOrd for EventName
impl PartialOrd for EventName
impl Copy for EventName
impl Eq for EventName
impl StructuralPartialEq for EventName
Auto Trait Implementations§
impl Freeze for EventName
impl RefUnwindSafe for EventName
impl Send for EventName
impl Sync for EventName
impl Unpin for EventName
impl UnwindSafe for EventName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Checks if this value is equivalent to the given key. Read more
§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>
Converts
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>
Converts
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.