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