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