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