Skip to main content

web_sys/features/
gen_AnimationEffect.rs

1#![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 = "AnimationEffect",
10        typescript_type = "AnimationEffect"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `AnimationEffect` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"]
18    pub type AnimationEffect;
19    #[cfg(feature = "ComputedEffectTiming")]
20    #[wasm_bindgen(method, js_class = "AnimationEffect", js_name = "getComputedTiming")]
21    #[doc = "The `getComputedTiming()` method."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getComputedTiming)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `ComputedEffectTiming`*"]
26    pub fn get_computed_timing(this: &AnimationEffect) -> ComputedEffectTiming;
27    #[cfg(feature = "EffectTiming")]
28    #[wasm_bindgen(method, js_class = "AnimationEffect", js_name = "getTiming")]
29    #[doc = "The `getTiming()` method."]
30    #[doc = ""]
31    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getTiming)"]
32    #[doc = ""]
33    #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `EffectTiming`*"]
34    pub fn get_timing(this: &AnimationEffect) -> EffectTiming;
35    #[wasm_bindgen(catch, method, js_class = "AnimationEffect", js_name = "updateTiming")]
36    #[doc = "The `updateTiming()` method."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"]
41    pub fn update_timing(this: &AnimationEffect) -> Result<(), JsValue>;
42    #[cfg(feature = "OptionalEffectTiming")]
43    #[wasm_bindgen(catch, method, js_class = "AnimationEffect", js_name = "updateTiming")]
44    #[doc = "The `updateTiming()` method."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `OptionalEffectTiming`*"]
49    pub fn update_timing_with_timing(
50        this: &AnimationEffect,
51        timing: &OptionalEffectTiming,
52    ) -> Result<(), JsValue>;
53}