summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_PointerEventInit.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_PointerEventInit.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_PointerEventInit.rs')
-rw-r--r--vendor/web-sys/src/features/gen_PointerEventInit.rs643
1 files changed, 643 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_PointerEventInit.rs b/vendor/web-sys/src/features/gen_PointerEventInit.rs
new file mode 100644
index 000000000..30655a4ab
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_PointerEventInit.rs
@@ -0,0 +1,643 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PointerEventInit)]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `PointerEventInit` dictionary."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub type PointerEventInit;
+}
+impl PointerEventInit {
+ #[doc = "Construct a new `PointerEventInit`."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn new() -> Self {
+ #[allow(unused_mut)]
+ let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
+ ret
+ }
+ #[doc = "Change the `bubbles` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn bubbles(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("bubbles"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `cancelable` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn cancelable(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("cancelable"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `composed` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn composed(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("composed"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `detail` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn detail(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(feature = "Window")]
+ #[doc = "Change the `view` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`, `Window`*"]
+ pub fn view(&mut self, val: Option<&Window>) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `altKey` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn alt_key(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `ctrlKey` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn ctrl_key(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("ctrlKey"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `metaKey` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn meta_key(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("metaKey"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierAltGraph` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierAltGraph"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierCapsLock` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierCapsLock"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierFn` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_fn(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierFn"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierFnLock` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierFnLock"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierNumLock` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierNumLock"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierOS` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_os(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierOS"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierScrollLock` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierScrollLock"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierSymbol` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_symbol(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierSymbol"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `modifierSymbolLock` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("modifierSymbolLock"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `shiftKey` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn shift_key(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("shiftKey"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `button` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn button(&mut self, val: i16) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `buttons` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn buttons(&mut self, val: u16) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("buttons"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `clientX` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn client_x(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("clientX"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `clientY` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn client_y(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("clientY"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `movementX` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn movement_x(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("movementX"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `movementY` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn movement_y(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("movementY"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[cfg(feature = "EventTarget")]
+ #[doc = "Change the `relatedTarget` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `PointerEventInit`*"]
+ pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("relatedTarget"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `screenX` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn screen_x(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("screenX"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `screenY` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn screen_y(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("screenY"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `coalescedEvents` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn coalesced_events(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("coalescedEvents"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `height` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn height(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r =
+ ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `isPrimary` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn is_primary(&mut self, val: bool) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("isPrimary"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `pointerId` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn pointer_id(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("pointerId"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `pointerType` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn pointer_type(&mut self, val: &str) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("pointerType"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `pressure` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn pressure(&mut self, val: f32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("pressure"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `tangentialPressure` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn tangential_pressure(&mut self, val: f32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(
+ self.as_ref(),
+ &JsValue::from("tangentialPressure"),
+ &JsValue::from(val),
+ );
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `tiltX` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn tilt_x(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tiltX"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `tiltY` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn tilt_y(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tiltY"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `twist` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn twist(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("twist"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+ #[doc = "Change the `width` field of this object."]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
+ pub fn width(&mut self, val: i32) -> &mut Self {
+ use wasm_bindgen::JsValue;
+ let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val));
+ debug_assert!(
+ r.is_ok(),
+ "setting properties should never fail on our dictionary objects"
+ );
+ let _ = r;
+ self
+ }
+}
+impl Default for PointerEventInit {
+ fn default() -> Self {
+ Self::new()
+ }
+}