pub enum ActionTrigger {
Show 19 variants
Default,
DragStart,
DragUpdate,
DragEnd,
HoverEnter,
HoverExit,
HoverCursor,
Focus,
Blur,
TapOutside,
Change,
NumberChange,
EditingComplete,
Submit,
CursorChange,
Drop,
DragEnter,
DragLeave,
SecondaryClick,
}Expand description
What user interaction triggers an action.
Each ActionEntry pairs an ActionTrigger with an action ID so the event
system knows which callback to invoke for a given input gesture.
Variants§
Default
Primary activation: tap, click, or Enter key.
DragStart
The user began dragging this node.
DragUpdate
The drag position changed (fires continuously).
DragEnd
The user released the drag.
HoverEnter
The pointer entered the node’s hit area.
HoverExit
The pointer left the node’s hit area.
HoverCursor
A semantic cursor request applied while the pointer hovers this node.
This is metadata, not a dispatched reducer action.
Focus
The node received keyboard focus.
Blur
The node lost keyboard focus.
TapOutside
A pointer-down happened outside the active text field.
Change
The node’s value changed (sliders, text inputs, etc.).
NumberChange
A text field changed and requests numeric f32 payload dispatch.
This is intentionally separate from [Change] so a numeric keyboard
hint alone does not change the generic text-input payload contract.
EditingComplete
Text editing was explicitly completed by the current input method.
Submit
The user submitted a text field.
CursorChange
The caret or selection anchor position changed in a text field.
Drop
A dragged payload was dropped onto this node.
DragEnter
A drag entered this node’s hit area (for drop targets).
DragLeave
A drag left this node’s hit area (for drop targets).
SecondaryClick
Right-click or secondary mouse button.
Trait Implementations§
Source§impl Clone for ActionTrigger
impl Clone for ActionTrigger
Source§fn clone(&self) -> ActionTrigger
fn clone(&self) -> ActionTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ActionTrigger
Source§impl Debug for ActionTrigger
impl Debug for ActionTrigger
Source§impl Default for ActionTrigger
impl Default for ActionTrigger
Source§fn default() -> ActionTrigger
fn default() -> ActionTrigger
Source§impl<'de> Deserialize<'de> for ActionTrigger
impl<'de> Deserialize<'de> for ActionTrigger
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionTrigger, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ActionTrigger, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ActionTrigger
Source§impl Hash for ActionTrigger
impl Hash for ActionTrigger
Source§impl PartialEq for ActionTrigger
impl PartialEq for ActionTrigger
Source§impl Serialize for ActionTrigger
impl Serialize for ActionTrigger
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ActionTrigger
Auto Trait Implementations§
impl Freeze for ActionTrigger
impl RefUnwindSafe for ActionTrigger
impl Send for ActionTrigger
impl Sync for ActionTrigger
impl Unpin for ActionTrigger
impl UnsafeUnpin for ActionTrigger
impl UnwindSafe for ActionTrigger
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
impl<T> Brush for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§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.Source§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.Source§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.Source§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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().