1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = AnimationEvent , typescript_type = "AnimationEvent")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `AnimationEvent` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
13     pub type AnimationEvent;
14     # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = animationName)]
15     #[doc = "Getter for the `animationName` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
animation_name(this: &AnimationEvent) -> String20     pub fn animation_name(this: &AnimationEvent) -> String;
21     # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = elapsedTime)]
22     #[doc = "Getter for the `elapsedTime` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/elapsedTime)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
elapsed_time(this: &AnimationEvent) -> f3227     pub fn elapsed_time(this: &AnimationEvent) -> f32;
28     # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = pseudoElement)]
29     #[doc = "Getter for the `pseudoElement` field of this object."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
pseudo_element(this: &AnimationEvent) -> String34     pub fn pseudo_element(this: &AnimationEvent) -> String;
35     #[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")]
36     #[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."]
37     #[doc = ""]
38     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"]
39     #[doc = ""]
40     #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"]
new(type_: &str) -> Result<AnimationEvent, JsValue>41     pub fn new(type_: &str) -> Result<AnimationEvent, JsValue>;
42     #[cfg(feature = "AnimationEventInit")]
43     #[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")]
44     #[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`, `AnimationEventInit`*"]
new_with_event_init_dict( type_: &str, event_init_dict: &AnimationEventInit, ) -> Result<AnimationEvent, JsValue>49     pub fn new_with_event_init_dict(
50         type_: &str,
51         event_init_dict: &AnimationEventInit,
52     ) -> Result<AnimationEvent, JsValue>;
53 }
54