Skip to main content

PointerInputModifierNode

Trait PointerInputModifierNode 

Source
pub trait PointerInputModifierNode:
    Send
    + Sync
    + 'static {
    // Required method
    fn on_pointer_input(&self, input: PointerInput<'_>);
}
Expand description

A node-local pointer input modifier.

Required Methods§

Source

fn on_pointer_input(&self, input: PointerInput<'_>)

Handles pointer input for the current node.

Pointer modifiers should operate on pointer-specific event flow and local interaction state. Cross-cutting concerns such as semantics, hover cursors, and IME publication should use their dedicated modifier or session APIs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§