diff options
Diffstat (limited to 'vendor/web-sys/src/features/gen_DeviceAcceleration.rs')
-rw-r--r-- | vendor/web-sys/src/features/gen_DeviceAcceleration.rs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_DeviceAcceleration.rs b/vendor/web-sys/src/features/gen_DeviceAcceleration.rs new file mode 100644 index 000000000..8fbfb8b67 --- /dev/null +++ b/vendor/web-sys/src/features/gen_DeviceAcceleration.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceAcceleration , typescript_type = "DeviceAcceleration")] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceAcceleration` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub type DeviceAcceleration; + # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = x)] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub fn x(this: &DeviceAcceleration) -> Option<f64>; + # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = y)] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub fn y(this: &DeviceAcceleration) -> Option<f64>; + # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = z)] + #[doc = "Getter for the `z` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/z)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub fn z(this: &DeviceAcceleration) -> Option<f64>; +} |