pub enum AgentAction {
Click {
node_id: u64,
},
DoubleClick {
node_id: u64,
},
Hover {
node_id: u64,
},
SetValue {
node_id: u64,
value: String,
},
ScrollIntoView {
node_id: u64,
},
ScrollBy {
node_id: u64,
delta_x: f64,
delta_y: f64,
},
Input(InputCommand),
}Variants§
Click
Activate one semantic node without resolving it back through screen coordinates. The runtime dispatches pointer, mouse and click events in browser order directly to this target.
DoubleClick
Two activations in one runtime call, inside the platform’s double-click interval. Used for rows whose single click only selects or folds them.
Hover
Present one semantic node as hovered. The target is still named by id; the runtime owns any renderer-specific positioning needed to update CSS hover state.
SetValue
ScrollIntoView
ScrollBy
Scroll a specific node’s nearest scroll container by a delta.
Wheel events carry no coordinates and are delivered to whatever the document last saw hovered, which an injected pointer move does not reliably set. That made every scrollable panel in the application undrivable from outside, so a bug that only appears further down a long page could not be reproduced without a human at the keyboard.
Input(InputCommand)
Trait Implementations§
Source§impl Clone for AgentAction
impl Clone for AgentAction
Source§fn clone(&self) -> AgentAction
fn clone(&self) -> AgentAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more