pub trait PointerInteraction: InteractionElementOffset + ModifiersInteraction {
// Required methods
fn trigger_button(&self) -> Option<MouseButton>;
fn held_buttons(&self) -> MouseButtonSet;
}Expand description
A interaction that contains data about the pointer button(s) that triggered the event.
Required Methods§
Gets the button that triggered the event.
Gets the buttons that are currently held down.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl PointerInteraction for DragData
impl PointerInteraction for MouseData
impl PointerInteraction for PointerData
impl PointerInteraction for SerializedDragData
impl PointerInteraction for SerializedMouseData
Available on crate feature
serialize only.impl PointerInteraction for SerializedPointInteraction
Available on crate feature
serialize only.impl PointerInteraction for SerializedPointerData
Available on crate feature
serialize only.impl PointerInteraction for SerializedWheelData
Available on crate feature
serialize only.