web_sys/features/
gen_AnimationPropertyDetails.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 = AnimationPropertyDetails)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `AnimationPropertyDetails` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
12 pub type AnimationPropertyDetails;
13 #[doc = "Get the `property` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
16 #[wasm_bindgen(method, getter = "property")]
17 pub fn get_property(this: &AnimationPropertyDetails) -> ::alloc::string::String;
18 #[doc = "Change the `property` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
21 #[wasm_bindgen(method, setter = "property")]
22 pub fn set_property(this: &AnimationPropertyDetails, val: &str);
23 #[doc = "Get the `runningOnCompositor` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
26 #[wasm_bindgen(method, getter = "runningOnCompositor")]
27 pub fn get_running_on_compositor(this: &AnimationPropertyDetails) -> bool;
28 #[doc = "Change the `runningOnCompositor` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
31 #[wasm_bindgen(method, setter = "runningOnCompositor")]
32 pub fn set_running_on_compositor(this: &AnimationPropertyDetails, val: bool);
33 #[doc = "Get the `values` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
36 #[wasm_bindgen(method, getter = "values")]
37 pub fn get_values(this: &AnimationPropertyDetails) -> ::js_sys::Array;
38 #[doc = "Change the `values` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
41 #[wasm_bindgen(method, setter = "values")]
42 pub fn set_values(this: &AnimationPropertyDetails, val: &::wasm_bindgen::JsValue);
43 #[doc = "Get the `warning` field of this object."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
46 #[wasm_bindgen(method, getter = "warning")]
47 pub fn get_warning(this: &AnimationPropertyDetails) -> Option<::alloc::string::String>;
48 #[doc = "Change the `warning` field of this object."]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
51 #[wasm_bindgen(method, setter = "warning")]
52 pub fn set_warning(this: &AnimationPropertyDetails, val: &str);
53}
54impl AnimationPropertyDetails {
55 #[doc = "Construct a new `AnimationPropertyDetails`."]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"]
58 pub fn new(
59 property: &str,
60 running_on_compositor: bool,
61 values: &::wasm_bindgen::JsValue,
62 ) -> Self {
63 #[allow(unused_mut)]
64 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
65 ret.set_property(property);
66 ret.set_running_on_compositor(running_on_compositor);
67 ret.set_values(values);
68 ret
69 }
70 #[deprecated = "Use `set_property()` instead."]
71 pub fn property(&mut self, val: &str) -> &mut Self {
72 self.set_property(val);
73 self
74 }
75 #[deprecated = "Use `set_running_on_compositor()` instead."]
76 pub fn running_on_compositor(&mut self, val: bool) -> &mut Self {
77 self.set_running_on_compositor(val);
78 self
79 }
80 #[deprecated = "Use `set_values()` instead."]
81 pub fn values(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
82 self.set_values(val);
83 self
84 }
85 #[deprecated = "Use `set_warning()` instead."]
86 pub fn warning(&mut self, val: &str) -> &mut Self {
87 self.set_warning(val);
88 self
89 }
90}