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§
§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: KeyModifiersImplementations§
Trait Implementations§
Source§impl From<&ArkEventData> for MouseData
impl From<&ArkEventData> for MouseData
Source§fn from(data: &ArkEventData) -> Self
fn from(data: &ArkEventData) -> Self
Converts to this type from the input type.
Source§impl From<ArkEventData> for MouseData
impl From<ArkEventData> for MouseData
Source§fn from(data: ArkEventData) -> Self
fn from(data: ArkEventData) -> Self
Converts to this type from the input type.