web_sys/features/
gen_TransitionEvent.rs

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