Struct web_sys::TouchEvent
source · #[repr(transparent)]pub struct TouchEvent { /* private fields */ }
Expand description
The TouchEvent
object
This API requires the following crate features to be activated: TouchEvent
Implementations§
source§impl TouchEvent
impl TouchEvent
source§impl TouchEvent
impl TouchEvent
sourcepub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &TouchEventInit
) -> Result<TouchEvent, JsValue>
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &TouchEventInit
) -> Result<TouchEvent, JsValue>
The new TouchEvent(..)
constructor, creating a new instance of TouchEvent
This API requires the following crate features to be activated: TouchEvent
, TouchEventInit
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event(&self, type_: &str)
pub fn init_touch_event(&self, type_: &str)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
pub fn init_touch_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
pub fn init_touch_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
source§impl TouchEvent
impl TouchEvent
source§impl TouchEvent
impl TouchEvent
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool
)
pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
, Window
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool
)
pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
, Window
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool
)
pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
, Window
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool
)
pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
, Window
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
touches: Option<&TouchList>
)
pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
touches: Option<&TouchList>
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
, TouchList
, Window
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
touches: Option<&TouchList>,
target_touches: Option<&TouchList>
)
pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
touches: Option<&TouchList>,
target_touches: Option<&TouchList>
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
, TouchList
, Window
source§impl TouchEvent
impl TouchEvent
sourcepub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches_and_changed_touches(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
touches: Option<&TouchList>,
target_touches: Option<&TouchList>,
changed_touches: Option<&TouchList>
)
pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches_and_changed_touches(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
view: Option<&Window>,
detail: i32,
ctrl_key: bool,
alt_key: bool,
shift_key: bool,
meta_key: bool,
touches: Option<&TouchList>,
target_touches: Option<&TouchList>,
changed_touches: Option<&TouchList>
)
The initTouchEvent()
method
This API requires the following crate features to be activated: TouchEvent
, TouchList
, Window
source§impl TouchEvent
impl TouchEvent
source§impl TouchEvent
impl TouchEvent
sourcepub fn target_touches(&self) -> TouchList
pub fn target_touches(&self) -> TouchList
The targetTouches
getter
This API requires the following crate features to be activated: TouchEvent
, TouchList
source§impl TouchEvent
impl TouchEvent
sourcepub fn changed_touches(&self) -> TouchList
pub fn changed_touches(&self) -> TouchList
The changedTouches
getter
This API requires the following crate features to be activated: TouchEvent
, TouchList
source§impl TouchEvent
impl TouchEvent
source§impl TouchEvent
impl TouchEvent
source§impl TouchEvent
impl TouchEvent
Trait Implementations§
source§impl AsRef<Event> for TouchEvent
impl AsRef<Event> for TouchEvent
source§impl AsRef<JsValue> for TouchEvent
impl AsRef<JsValue> for TouchEvent
source§impl AsRef<Object> for TouchEvent
impl AsRef<Object> for TouchEvent
source§impl AsRef<UiEvent> for TouchEvent
impl AsRef<UiEvent> for TouchEvent
source§impl Clone for TouchEvent
impl Clone for TouchEvent
source§fn clone(&self) -> TouchEvent
fn clone(&self) -> TouchEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TouchEvent
impl Debug for TouchEvent
source§impl From<JsValue> for TouchEvent
impl From<JsValue> for TouchEvent
source§fn from(obj: JsValue) -> TouchEvent
fn from(obj: JsValue) -> TouchEvent
source§impl From<TouchEvent> for Event
impl From<TouchEvent> for Event
source§fn from(obj: TouchEvent) -> Event
fn from(obj: TouchEvent) -> Event
source§impl From<TouchEvent> for JsValue
impl From<TouchEvent> for JsValue
source§fn from(obj: TouchEvent) -> JsValue
fn from(obj: TouchEvent) -> JsValue
source§impl From<TouchEvent> for Object
impl From<TouchEvent> for Object
source§fn from(obj: TouchEvent) -> Object
fn from(obj: TouchEvent) -> Object
source§impl From<TouchEvent> for UiEvent
impl From<TouchEvent> for UiEvent
source§fn from(obj: TouchEvent) -> UiEvent
fn from(obj: TouchEvent) -> UiEvent
source§impl FromWasmAbi for TouchEvent
impl FromWasmAbi for TouchEvent
source§impl<'a> IntoWasmAbi for &'a TouchEvent
impl<'a> IntoWasmAbi for &'a TouchEvent
source§impl IntoWasmAbi for TouchEvent
impl IntoWasmAbi for TouchEvent
source§impl JsCast for TouchEvent
impl JsCast for TouchEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for TouchEvent
impl OptionFromWasmAbi for TouchEvent
source§impl<'a> OptionIntoWasmAbi for &'a TouchEvent
impl<'a> OptionIntoWasmAbi for &'a TouchEvent
source§impl OptionIntoWasmAbi for TouchEvent
impl OptionIntoWasmAbi for TouchEvent
source§impl RefFromWasmAbi for TouchEvent
impl RefFromWasmAbi for TouchEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<TouchEvent>
type Anchor = ManuallyDrop<TouchEvent>
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 moreAuto Trait Implementations§
impl RefUnwindSafe for TouchEvent
impl Send for TouchEvent
impl Sync for TouchEvent
impl Unpin for TouchEvent
impl UnwindSafe for TouchEvent
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more