web_sys/features/
gen_DeviceRotationRateInit.rs1#![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 = DeviceRotationRateInit)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DeviceRotationRateInit` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
12 pub type DeviceRotationRateInit;
13 #[doc = "Get the `alpha` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
16 #[wasm_bindgen(method, getter = "alpha")]
17 pub fn get_alpha(this: &DeviceRotationRateInit) -> Option<f64>;
18 #[doc = "Change the `alpha` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
21 #[wasm_bindgen(method, setter = "alpha")]
22 pub fn set_alpha(this: &DeviceRotationRateInit, val: Option<f64>);
23 #[doc = "Get the `beta` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
26 #[wasm_bindgen(method, getter = "beta")]
27 pub fn get_beta(this: &DeviceRotationRateInit) -> Option<f64>;
28 #[doc = "Change the `beta` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
31 #[wasm_bindgen(method, setter = "beta")]
32 pub fn set_beta(this: &DeviceRotationRateInit, val: Option<f64>);
33 #[doc = "Get the `gamma` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
36 #[wasm_bindgen(method, getter = "gamma")]
37 pub fn get_gamma(this: &DeviceRotationRateInit) -> Option<f64>;
38 #[doc = "Change the `gamma` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
41 #[wasm_bindgen(method, setter = "gamma")]
42 pub fn set_gamma(this: &DeviceRotationRateInit, val: Option<f64>);
43}
44impl DeviceRotationRateInit {
45 #[doc = "Construct a new `DeviceRotationRateInit`."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"]
48 pub fn new() -> Self {
49 #[allow(unused_mut)]
50 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
51 ret
52 }
53 #[deprecated = "Use `set_alpha()` instead."]
54 pub fn alpha(&mut self, val: Option<f64>) -> &mut Self {
55 self.set_alpha(val);
56 self
57 }
58 #[deprecated = "Use `set_beta()` instead."]
59 pub fn beta(&mut self, val: Option<f64>) -> &mut Self {
60 self.set_beta(val);
61 self
62 }
63 #[deprecated = "Use `set_gamma()` instead."]
64 pub fn gamma(&mut self, val: Option<f64>) -> &mut Self {
65 self.set_gamma(val);
66 self
67 }
68}
69impl Default for DeviceRotationRateInit {
70 fn default() -> Self {
71 Self::new()
72 }
73}