maxcountryman_web_sys/features/
gen_AnimationEffect.rs

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