web_sys/features/
gen_TextTrackCue.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackCue , typescript_type = "TextTrackCue")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `TextTrackCue` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
14    pub type TextTrackCue;
15    #[cfg(feature = "TextTrack")]
16    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = track)]
17    #[doc = "Getter for the `track` field of this object."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/track)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCue`*"]
22    pub fn track(this: &TextTrackCue) -> Option<TextTrack>;
23    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = id)]
24    #[doc = "Getter for the `id` field of this object."]
25    #[doc = ""]
26    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/id)"]
27    #[doc = ""]
28    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
29    pub fn id(this: &TextTrackCue) -> ::alloc::string::String;
30    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = id)]
31    #[doc = "Setter for the `id` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/id)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
36    pub fn set_id(this: &TextTrackCue, value: &str);
37    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = startTime)]
38    #[doc = "Getter for the `startTime` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
43    pub fn start_time(this: &TextTrackCue) -> f64;
44    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = startTime)]
45    #[doc = "Setter for the `startTime` field of this object."]
46    #[doc = ""]
47    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"]
48    #[doc = ""]
49    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
50    pub fn set_start_time(this: &TextTrackCue, value: f64);
51    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = endTime)]
52    #[doc = "Getter for the `endTime` field of this object."]
53    #[doc = ""]
54    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"]
55    #[doc = ""]
56    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
57    pub fn end_time(this: &TextTrackCue) -> f64;
58    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = endTime)]
59    #[doc = "Setter for the `endTime` field of this object."]
60    #[doc = ""]
61    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
64    pub fn set_end_time(this: &TextTrackCue, value: f64);
65    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = pauseOnExit)]
66    #[doc = "Getter for the `pauseOnExit` field of this object."]
67    #[doc = ""]
68    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"]
69    #[doc = ""]
70    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
71    pub fn pause_on_exit(this: &TextTrackCue) -> bool;
72    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = pauseOnExit)]
73    #[doc = "Setter for the `pauseOnExit` field of this object."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
78    pub fn set_pause_on_exit(this: &TextTrackCue, value: bool);
79    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = onenter)]
80    #[doc = "Getter for the `onenter` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
85    pub fn onenter(this: &TextTrackCue) -> Option<::js_sys::Function>;
86    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = onenter)]
87    #[doc = "Setter for the `onenter` field of this object."]
88    #[doc = ""]
89    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
92    pub fn set_onenter(this: &TextTrackCue, value: Option<&::js_sys::Function>);
93    # [wasm_bindgen (structural , method , getter , js_class = "TextTrackCue" , js_name = onexit)]
94    #[doc = "Getter for the `onexit` field of this object."]
95    #[doc = ""]
96    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"]
97    #[doc = ""]
98    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
99    pub fn onexit(this: &TextTrackCue) -> Option<::js_sys::Function>;
100    # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = onexit)]
101    #[doc = "Setter for the `onexit` field of this object."]
102    #[doc = ""]
103    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"]
106    pub fn set_onexit(this: &TextTrackCue, value: Option<&::js_sys::Function>);
107}