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