PointerInteraction

Trait PointerInteraction 

Source
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§

Source

fn trigger_button(&self) -> Option<MouseButton>

Gets the button that triggered the event.

Source

fn held_buttons(&self) -> MouseButtonSet

Gets the buttons that are currently held down.

Implementors§

Source§

impl PointerInteraction for DragData

Source§

impl PointerInteraction for MouseData

Source§

impl PointerInteraction for PointerData

Source§

impl PointerInteraction for SerializedDragData

Source§

impl PointerInteraction for SerializedMouseData

Available on crate feature serialize only.
Source§

impl PointerInteraction for SerializedPointerData

Available on crate feature serialize only.
Source§

impl PointerInteraction for SerializedWheelData

Available on crate feature serialize only.
Source§

impl PointerInteraction for WheelData

Source§

impl PointerInteraction for SerializedPointInteraction

Available on crate feature serialize only.