maxcountryman_web_sys/features/
gen_TimeEvent.rs

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