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    #[doc = "Get the `easing` field of this object."]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
26    #[wasm_bindgen(method, getter = "easing")]
27    pub fn get_easing(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
28    #[doc = "Change the `easing` field of this object."]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
31    #[wasm_bindgen(method, setter = "easing")]
32    pub fn set_easing(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
33    #[doc = "Get the `offset` field of this object."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
36    #[wasm_bindgen(method, getter = "offset")]
37    pub fn get_offset(this: &BasePropertyIndexedKeyframe) -> ::wasm_bindgen::JsValue;
38    #[doc = "Change the `offset` field of this object."]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
41    #[wasm_bindgen(method, setter = "offset")]
42    pub fn set_offset(this: &BasePropertyIndexedKeyframe, val: &::wasm_bindgen::JsValue);
43}
44impl BasePropertyIndexedKeyframe {
45    #[doc = "Construct a new `BasePropertyIndexedKeyframe`."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"]
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_composite()` instead."]
54    pub fn composite(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
55        self.set_composite(val);
56        self
57    }
58    #[deprecated = "Use `set_easing()` instead."]
59    pub fn easing(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
60        self.set_easing(val);
61        self
62    }
63    #[deprecated = "Use `set_offset()` instead."]
64    pub fn offset(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
65        self.set_offset(val);
66        self
67    }
68}
69impl Default for BasePropertyIndexedKeyframe {
70    fn default() -> Self {
71        Self::new()
72    }
73}