maxcountryman_web_sys/features/
gen_DeviceAcceleration.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[wasm_bindgen]
5extern "C" {
6    # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceAcceleration , typescript_type = "DeviceAcceleration")]
7    #[derive(Debug, Clone, PartialEq, Eq)]
8    #[doc = "The `DeviceAcceleration` class."]
9    #[doc = ""]
10    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration)"]
11    #[doc = ""]
12    #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"]
13    pub type DeviceAcceleration;
14    # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = x)]
15    #[doc = "Getter for the `x` field of this object."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/x)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"]
20    pub fn x(this: &DeviceAcceleration) -> Option<f64>;
21    # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = y)]
22    #[doc = "Getter for the `y` field of this object."]
23    #[doc = ""]
24    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/y)"]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"]
27    pub fn y(this: &DeviceAcceleration) -> Option<f64>;
28    # [wasm_bindgen (structural , method , getter , js_class = "DeviceAcceleration" , js_name = z)]
29    #[doc = "Getter for the `z` field of this object."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/z)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"]
34    pub fn z(this: &DeviceAcceleration) -> Option<f64>;
35}