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