pub enum EventName {
Show 28 variants
MouseUp,
MouseDown,
MouseMove,
PointerPress,
PointerDown,
PointerEnter,
PointerLeave,
PointerOver,
PointerOut,
KeyDown,
KeyUp,
TouchCancel,
TouchStart,
TouchMove,
TouchEnd,
GlobalPointerMove,
GlobalPointerPress,
GlobalPointerDown,
GlobalKeyDown,
GlobalKeyUp,
GlobalFileHover,
GlobalFileHoverCancelled,
CaptureGlobalPointerMove,
CaptureGlobalPointerPress,
Wheel,
Sized,
FileDrop,
ImePreedit,
}Variants§
MouseUp
MouseDown
MouseMove
PointerPress
PointerDown
PointerEnter
PointerLeave
PointerOver
PointerOut
KeyDown
KeyUp
TouchCancel
TouchStart
TouchMove
TouchEnd
GlobalPointerMove
GlobalPointerPress
GlobalPointerDown
GlobalKeyDown
GlobalKeyUp
GlobalFileHover
GlobalFileHoverCancelled
CaptureGlobalPointerMove
CaptureGlobalPointerPress
Wheel
Sized
FileDrop
ImePreedit
Implementations§
Source§impl EventName
impl EventName
Sourcepub fn is_capture(&self) -> bool
pub fn is_capture(&self) -> bool
Check if this even captures others or not
Sourcepub fn is_global_pointer(&self) -> bool
pub fn is_global_pointer(&self) -> bool
Check if this is a global pointer event
pub fn is_left(&self) -> bool
pub fn is_exclusive_left(&self) -> bool
pub fn is_down(&self) -> bool
pub fn is_press(&self) -> bool
Trait Implementations§
Source§impl From<FileEventName> for EventName
impl From<FileEventName> for EventName
Source§fn from(value: FileEventName) -> EventName
fn from(value: FileEventName) -> EventName
Converts to this type from the input type.
Source§impl From<ImeEventName> for EventName
impl From<ImeEventName> for EventName
Source§fn from(value: ImeEventName) -> EventName
fn from(value: ImeEventName) -> EventName
Converts to this type from the input type.
Source§impl From<KeyboardEventName> for EventName
impl From<KeyboardEventName> for EventName
Source§fn from(value: KeyboardEventName) -> EventName
fn from(value: KeyboardEventName) -> EventName
Converts to this type from the input type.
Source§impl From<MouseEventName> for EventName
impl From<MouseEventName> for EventName
Source§fn from(value: MouseEventName) -> EventName
fn from(value: MouseEventName) -> EventName
Converts to this type from the input type.
Source§impl From<TouchEventName> for EventName
impl From<TouchEventName> for EventName
Source§fn from(value: TouchEventName) -> EventName
fn from(value: TouchEventName) -> EventName
Converts to this type from the input type.
Source§impl From<WheelEventName> for EventName
impl From<WheelEventName> for EventName
Source§fn from(value: WheelEventName) -> EventName
fn from(value: WheelEventName) -> EventName
Converts to this type from the input type.
Source§impl NameOfEvent for EventName
impl NameOfEvent for EventName
Source§fn get_global_events(&self) -> HashSet<EventName>
fn get_global_events(&self) -> HashSet<EventName>
Get a set of global events derived from this event.
Source§fn get_derived_events(&self) -> HashSet<EventName>
fn get_derived_events(&self) -> HashSet<EventName>
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) -> HashSet<EventName>
fn get_cancellable_events(&self) -> HashSet<EventName>
Get a set of events that will be discarded once this event is cancelled.
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_enter(&self) -> bool
fn is_enter(&self) -> bool
Check if this event means that the pointer device started hovering a node.
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§fn is_exclusive_enter(&self) -> bool
fn is_exclusive_enter(&self) -> bool
Check if this enter event should only fire on the deepest (most specific) node,
not on all nodes under the cursor simultaneously.
Source§fn is_exclusive_leave(&self) -> bool
fn is_exclusive_leave(&self) -> bool
Check if this leave event corresponds to an exclusive enter
Source§fn new_leave() -> EventName
fn new_leave() -> EventName
Create a new event that means the pointer device left a hovering node.
Source§fn new_exclusive_leave() -> EventName
fn new_exclusive_leave() -> EventName
Create a new exclusive leave event for when the deepest (entered) node changes
without the node necessarily leaving the cursor area entirely.
Source§fn new_exclusive_enter() -> EventName
fn new_exclusive_enter() -> EventName
Create a new exclusive leave event for when the deepest (entered) node changes
without the node necessarily leaving the cursor area entirely.
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§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
Source§impl<T> ComponentProps for T
impl<T> ComponentProps for T
fn changed(&self, other: &(dyn ComponentProps + 'static)) -> bool
§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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&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
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