Skip to main content

web_sys/features/
gen_BasePropertyIndexedKeyframe.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 = BasePropertyIndexedKeyframe)]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `BasePropertyIndexedKeyframe` dictionary."]
10    #[doc = ""]
11    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
12    pub type BasePropertyIndexedKeyframe;
13    #[doc = "Get the `composite` field of this object."]
14    #[doc = ""]
15    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
16    #[wasm_bindgen(method, getter = "composite")]
17    pub fn get_composite(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
18    #[doc = "Change the `composite` field of this object."]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
21    #[wasm_bindgen(method, setter = "composite")]
22    pub fn set_composite(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
23    #[cfg(feature = "CompositeOperation")]
24    #[doc = "Change the `composite` field of this object."]
25    #[doc = ""]
26    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
27    #[wasm_bindgen(method, setter = "composite")]
28    pub fn set_composite_opt_composite_operation(
29        this: &BasePropertyIndexedKeyframe,
30        val: Option<CompositeOperation>,
31    );
32    #[doc = "Change the `composite` field of this object."]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
35    #[wasm_bindgen(method, setter = "composite")]
36    pub fn set_composite_opt_composite_operation_sequence(
37        this: &BasePropertyIndexedKeyframe,
38        val: &::wasm_bindgen::JsValue,
39    );
40    #[doc = "Get the `easing` field of this object."]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
43    #[wasm_bindgen(method, getter = "easing")]
44    pub fn get_easing(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
45    #[doc = "Change the `easing` field of this object."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
48    #[wasm_bindgen(method, setter = "easing")]
49    pub fn set_easing(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
50    #[doc = "Change the `easing` field of this object."]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
53    #[wasm_bindgen(method, setter = "easing")]
54    pub fn set_easing_str(this: &BasePropertyIndexedKeyframe, val: &str);
55    #[doc = "Change the `easing` field of this object."]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
58    #[wasm_bindgen(method, setter = "easing")]
59    pub fn set_easing_str_sequence(
60        this: &BasePropertyIndexedKeyframe,
61        val: &::wasm_bindgen::JsValue,
62    );
63    #[doc = "Get the `offset` field of this object."]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
66    #[wasm_bindgen(method, getter = "offset")]
67    pub fn get_offset(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
68    #[doc = "Change the `offset` field of this object."]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
71    #[wasm_bindgen(method, setter = "offset")]
72    pub fn set_offset(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
73    #[doc = "Change the `offset` field of this object."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
76    #[wasm_bindgen(method, setter = "offset")]
77    pub fn set_offset_opt_f64(this: &BasePropertyIndexedKeyframe, val: Option<f64>);
78    #[doc = "Change the `offset` field of this object."]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
81    #[wasm_bindgen(method, setter = "offset")]
82    pub fn set_offset_opt_f64_sequence(
83        this: &BasePropertyIndexedKeyframe,
84        val: &::wasm_bindgen::JsValue,
85    );
86}
87impl BasePropertyIndexedKeyframe {
88    #[doc = "Construct a new `BasePropertyIndexedKeyframe`."]
89    #[doc = ""]
90    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
91    pub fn new() -> Self {
92        #[allow(unused_mut)]
93        let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
94        ret
95    }
96    #[deprecated = "Use `set_composite()` instead."]
97    pub fn composite(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
98        self.set_composite(val);
99        self
100    }
101    #[deprecated = "Use `set_easing()` instead."]
102    pub fn easing(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
103        self.set_easing(val);
104        self
105    }
106    #[deprecated = "Use `set_offset()` instead."]
107    pub fn offset(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
108        self.set_offset(val);
109        self
110    }
111}
112impl Default for BasePropertyIndexedKeyframe {
113    fn default() -> Self {
114        Self::new()
115    }
116}