Skip to main content

MouseData

Type Alias MouseData 

Source
pub type MouseData = MousePayload;
Expand description

Data for a native mouse event.

Aliased Type§

pub struct MouseData {
    pub button: MouseButton,
    pub action: PointerAction,
    pub x: f32,
    pub y: f32,
    pub window_x: f32,
    pub window_y: f32,
    pub target_x: f32,
    pub target_y: f32,
    pub target_width: f32,
    pub target_height: f32,
    pub modifiers: KeyModifiers,
}

Fields§

§button: MouseButton§action: PointerAction§x: f32§y: f32§window_x: f32§window_y: f32§target_x: f32§target_y: f32§target_width: f32§target_height: f32§modifiers: KeyModifiers

Implementations§

Trait Implementations§

Source§

impl From<&ArkEventData> for MouseData

Source§

fn from(data: &ArkEventData) -> Self

Converts to this type from the input type.
Source§

impl From<ArkEventData> for MouseData

Source§

fn from(data: ArkEventData) -> Self

Converts to this type from the input type.