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