web_sys/features/
gen_GamepadPose.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GamepadPose , typescript_type = "GamepadPose")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `GamepadPose` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
14    pub type GamepadPose;
15    # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasOrientation)]
16    #[doc = "Getter for the `hasOrientation` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasOrientation)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
21    pub fn has_orientation(this: &GamepadPose) -> bool;
22    # [wasm_bindgen (structural , method , getter , js_class = "GamepadPose" , js_name = hasPosition)]
23    #[doc = "Getter for the `hasPosition` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasPosition)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
28    pub fn has_position(this: &GamepadPose) -> bool;
29    # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = position)]
30    #[doc = "Getter for the `position` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/position)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
35    pub fn position(this: &GamepadPose) -> Result<Option<::alloc::vec::Vec<f32>>, JsValue>;
36    # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearVelocity)]
37    #[doc = "Getter for the `linearVelocity` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearVelocity)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
42    pub fn linear_velocity(this: &GamepadPose) -> Result<Option<::alloc::vec::Vec<f32>>, JsValue>;
43    # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearAcceleration)]
44    #[doc = "Getter for the `linearAcceleration` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearAcceleration)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
49    pub fn linear_acceleration(
50        this: &GamepadPose,
51    ) -> Result<Option<::alloc::vec::Vec<f32>>, JsValue>;
52    # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = orientation)]
53    #[doc = "Getter for the `orientation` field of this object."]
54    #[doc = ""]
55    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/orientation)"]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
58    pub fn orientation(this: &GamepadPose) -> Result<Option<::alloc::vec::Vec<f32>>, JsValue>;
59    # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularVelocity)]
60    #[doc = "Getter for the `angularVelocity` field of this object."]
61    #[doc = ""]
62    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularVelocity)"]
63    #[doc = ""]
64    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
65    pub fn angular_velocity(this: &GamepadPose) -> Result<Option<::alloc::vec::Vec<f32>>, JsValue>;
66    # [wasm_bindgen (structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularAcceleration)]
67    #[doc = "Getter for the `angularAcceleration` field of this object."]
68    #[doc = ""]
69    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularAcceleration)"]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"]
72    pub fn angular_acceleration(
73        this: &GamepadPose,
74    ) -> Result<Option<::alloc::vec::Vec<f32>>, JsValue>;
75}