pub enum ActionTrigger {
Show 23 variants
Default,
DragStart,
DragUpdate,
DragEnd,
HoverEnter,
HoverExit,
HoverCursor,
Focus,
Blur,
TapOutside,
Change,
NumberChange,
EditingComplete,
Submit,
CursorChange,
Drop,
DragEnter,
DragLeave,
SecondaryClick,
TextChanged,
ViewportInteractionStart,
ViewportInteractionUpdate,
ViewportInteractionEnd,
}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 (for example, a slider moved).
NumberChange
TextInput uses TextChanged and carries live edits in ActionInput
Reserved legacy numeric text-change trigger.
Fission 0.11 TextInput never emits this trigger and shells must not
interpret it. It remains in place to preserve serialized IR enum
discriminants for the variants that follow it.
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.
TextChanged
A text field changed.
The bound action payload remains unchanged. The edited value, widget identity, caret, and anchor are delivered as runtime action input.
ViewportInteractionStart
An interactive viewport began a pan or zoom gesture.
ViewportInteractionUpdate
An interactive viewport’s camera changed during a gesture.
ViewportInteractionEnd
An interactive viewport gesture ended; configured inertia may continue.
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 more