pub trait PointerEventMethods<D>where
D: DomTypes,{
Show 16 methods
// Required methods
fn PointerId(&self) -> i32;
fn Width(&self) -> i32;
fn Height(&self) -> i32;
fn Pressure(&self) -> Finite<f32>;
fn TangentialPressure(&self) -> Finite<f32>;
fn TiltX(&self) -> i32;
fn TiltY(&self) -> i32;
fn Twist(&self) -> i32;
fn AltitudeAngle(&self) -> Finite<f64>;
fn AzimuthAngle(&self) -> Finite<f64>;
fn PointerType(&self) -> DOMString;
fn IsPrimary(&self) -> bool;
fn GetCoalescedEvents(
&self,
) -> Vec<Root<Dom<<D as DomTypes>::PointerEvent>>>;
fn GetPredictedEvents(
&self,
) -> Vec<Root<Dom<<D as DomTypes>::PointerEvent>>>;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &PointerEventInit<D>,
) -> Root<Dom<<D as DomTypes>::PointerEvent>>;
}
Required Methods§
fn PointerId(&self) -> i32
fn Width(&self) -> i32
fn Height(&self) -> i32
fn Pressure(&self) -> Finite<f32>
fn TangentialPressure(&self) -> Finite<f32>
fn TiltX(&self) -> i32
fn TiltY(&self) -> i32
fn Twist(&self) -> i32
fn AltitudeAngle(&self) -> Finite<f64>
fn AzimuthAngle(&self) -> Finite<f64>
fn PointerType(&self) -> DOMString
fn IsPrimary(&self) -> bool
fn GetCoalescedEvents(&self) -> Vec<Root<Dom<<D as DomTypes>::PointerEvent>>>
fn GetPredictedEvents(&self) -> Vec<Root<Dom<<D as DomTypes>::PointerEvent>>>
fn IsTrusted(&self) -> bool
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: &PointerEventInit<D>, ) -> Root<Dom<<D as DomTypes>::PointerEvent>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.