pub struct PointerEvent {Show 17 fields
pub pointer_id: i32,
pub pointer_type: PointerType,
pub is_primary: bool,
pub phase: PointerPhase,
pub position: PhysicalPosition,
pub button: Option<MouseButton>,
pub buttons: PointerButtons,
pub width: f32,
pub height: f32,
pub pressure: Option<f32>,
pub tangential_pressure: Option<f32>,
pub tilt_x: Option<f32>,
pub tilt_y: Option<f32>,
pub twist: Option<f32>,
pub altitude_angle: Option<f32>,
pub azimuth_angle: Option<f32>,
pub modifiers: KeyboardModifiers,
}Expand description
Hardware-neutral input following the W3C Pointer Events fields. Optional sensor values distinguish “not reported by the host” from a real zero; the engine applies the specification’s DOM defaults when it dispatches.
Fields§
§pointer_id: i32§pointer_type: PointerType§is_primary: bool§phase: PointerPhase§position: PhysicalPositionThe button whose state changed for Down/Up, if any.
All buttons held after this native event.
width: f32Contact geometry in CSS-pixel shape, expressed here in physical pixels at the host boundary. Engines perform their normal device-scale mapping.
height: f32§pressure: Option<f32>§tangential_pressure: Option<f32>§tilt_x: Option<f32>Degrees in the Pointer Events -90..=90 convention.
tilt_y: Option<f32>§twist: Option<f32>Clockwise degrees in 0..=359.
altitude_angle: Option<f32>Radians in the Pointer Events conventions.
azimuth_angle: Option<f32>§modifiers: KeyboardModifiersTrait Implementations§
Source§impl Clone for PointerEvent
impl Clone for PointerEvent
Source§impl Debug for PointerEvent
impl Debug for PointerEvent
Source§impl<'de> Deserialize<'de> for PointerEvent
impl<'de> Deserialize<'de> for PointerEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PointerEvent
impl PartialEq for PointerEvent
Source§impl Serialize for PointerEvent
impl Serialize for PointerEvent
impl StructuralPartialEq for PointerEvent
Auto Trait Implementations§
impl Freeze for PointerEvent
impl RefUnwindSafe for PointerEvent
impl Send for PointerEvent
impl Sync for PointerEvent
impl Unpin for PointerEvent
impl UnsafeUnpin for PointerEvent
impl UnwindSafe for PointerEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more