web_sys/features/
gen_TimeEvent.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 = TimeEvent , typescript_type = "TimeEvent")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `TimeEvent` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"]
14 pub type TimeEvent;
15 # [wasm_bindgen (structural , method , getter , js_class = "TimeEvent" , js_name = detail)]
16 #[doc = "Getter for the `detail` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/detail)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"]
21 pub fn detail(this: &TimeEvent) -> i32;
22 #[cfg(feature = "Window")]
23 # [wasm_bindgen (structural , method , getter , js_class = "TimeEvent" , js_name = view)]
24 #[doc = "Getter for the `view` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/view)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"]
29 pub fn view(this: &TimeEvent) -> Option<Window>;
30 # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)]
31 #[doc = "The `initTimeEvent()` method."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"]
36 pub fn init_time_event(this: &TimeEvent, a_type: &str);
37 #[cfg(feature = "Window")]
38 # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)]
39 #[doc = "The `initTimeEvent()` method."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"]
44 pub fn init_time_event_with_a_view(this: &TimeEvent, a_type: &str, a_view: Option<&Window>);
45 #[cfg(feature = "Window")]
46 # [wasm_bindgen (method , structural , js_class = "TimeEvent" , js_name = initTimeEvent)]
47 #[doc = "The `initTimeEvent()` method."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"]
52 pub fn init_time_event_with_a_view_and_a_detail(
53 this: &TimeEvent,
54 a_type: &str,
55 a_view: Option<&Window>,
56 a_detail: i32,
57 );
58}