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 = AnimationPlaybackEvent , typescript_type = "AnimationPlaybackEvent")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `AnimationPlaybackEvent` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
13     pub type AnimationPlaybackEvent;
14     # [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = currentTime)]
15     #[doc = "Getter for the `currentTime` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/currentTime)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
20     pub fn current_time(this: &AnimationPlaybackEvent) -> Option<f64>;
Init()21     # [wasm_bindgen (structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = timelineTime)]
22     #[doc = "Getter for the `timelineTime` field of this object."]
23     #[doc = ""]
24     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/timelineTime)"]
25     #[doc = ""]
26     #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
27     pub fn timeline_time(this: &AnimationPlaybackEvent) -> Option<f64>;
28     #[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")]
29     #[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."]
30     #[doc = ""]
31     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"]
32     #[doc = ""]
33     #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"]
34     pub fn new(type_: &str) -> Result<AnimationPlaybackEvent, JsValue>;
35     #[cfg(feature = "AnimationPlaybackEventInit")]
36     #[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")]
37     #[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."]
38     #[doc = ""]
39     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"]
40     #[doc = ""]
41     #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`, `AnimationPlaybackEventInit`*"]
42     pub fn new_with_event_init_dict(
43         type_: &str,
44         event_init_dict: &AnimationPlaybackEventInit,
45     ) -> Result<AnimationPlaybackEvent, JsValue>;
46 }
47