[][src]Struct web_sys::TouchInit

#[repr(transparent)]pub struct TouchInit { /* fields omitted */ }

The TouchInit dictionary.

This API requires the following crate features to be activated: TouchInit

Implementations

impl TouchInit[src]

pub fn new(identifier: i32, target: &EventTarget) -> Self[src]

Construct a new TouchInit.

This API requires the following crate features to be activated: EventTarget, TouchInit

pub fn client_x(&mut self, val: i32) -> &mut Self[src]

Change the clientX field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn client_y(&mut self, val: i32) -> &mut Self[src]

Change the clientY field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn force(&mut self, val: f32) -> &mut Self[src]

Change the force field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn identifier(&mut self, val: i32) -> &mut Self[src]

Change the identifier field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn page_x(&mut self, val: i32) -> &mut Self[src]

Change the pageX field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn page_y(&mut self, val: i32) -> &mut Self[src]

Change the pageY field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn radius_x(&mut self, val: f32) -> &mut Self[src]

Change the radiusX field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn radius_y(&mut self, val: f32) -> &mut Self[src]

Change the radiusY field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn rotation_angle(&mut self, val: f32) -> &mut Self[src]

Change the rotationAngle field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn screen_x(&mut self, val: i32) -> &mut Self[src]

Change the screenX field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn screen_y(&mut self, val: i32) -> &mut Self[src]

Change the screenY field of this object.

This API requires the following crate features to be activated: TouchInit

pub fn target(&mut self, val: &EventTarget) -> &mut Self[src]

Change the target field of this object.

This API requires the following crate features to be activated: EventTarget, TouchInit

Trait Implementations

impl AsRef<JsValue> for TouchInit[src]

impl AsRef<Object> for TouchInit[src]

impl AsRef<TouchInit> for TouchInit[src]

impl Clone for TouchInit[src]

impl Debug for TouchInit[src]

impl Deref for TouchInit[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for TouchInit[src]

impl From<JsValue> for TouchInit[src]

impl From<TouchInit> for JsValue[src]

impl From<TouchInit> for Object[src]

impl FromWasmAbi for TouchInit[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for TouchInit[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a TouchInit[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for TouchInit[src]

impl OptionFromWasmAbi for TouchInit[src]

impl OptionIntoWasmAbi for TouchInit[src]

impl<'a> OptionIntoWasmAbi for &'a TouchInit[src]

impl PartialEq<TouchInit> for TouchInit[src]

impl RefFromWasmAbi for TouchInit[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<TouchInit>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for TouchInit[src]

impl StructuralPartialEq for TouchInit[src]

impl WasmDescribe for TouchInit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.