summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs')
-rw-r--r--vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs61
1 files changed, 61 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs b/vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs
new file mode 100644
index 000000000..361fb54c9
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_SpeechSynthesisEvent.rs
@@ -0,0 +1,61 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisEvent , typescript_type = "SpeechSynthesisEvent")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `SpeechSynthesisEvent` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"]
+ pub type SpeechSynthesisEvent;
+ #[cfg(feature = "SpeechSynthesisUtterance")]
+ # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = utterance)]
+ #[doc = "Getter for the `utterance` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/utterance)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisUtterance`*"]
+ pub fn utterance(this: &SpeechSynthesisEvent) -> SpeechSynthesisUtterance;
+ # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charIndex)]
+ #[doc = "Getter for the `charIndex` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charIndex)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"]
+ pub fn char_index(this: &SpeechSynthesisEvent) -> u32;
+ # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charLength)]
+ #[doc = "Getter for the `charLength` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charLength)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"]
+ pub fn char_length(this: &SpeechSynthesisEvent) -> Option<u32>;
+ # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = elapsedTime)]
+ #[doc = "Getter for the `elapsedTime` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/elapsedTime)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"]
+ pub fn elapsed_time(this: &SpeechSynthesisEvent) -> f32;
+ # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = name)]
+ #[doc = "Getter for the `name` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/name)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"]
+ pub fn name(this: &SpeechSynthesisEvent) -> Option<String>;
+ #[cfg(feature = "SpeechSynthesisEventInit")]
+ #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisEvent")]
+ #[doc = "The `new SpeechSynthesisEvent(..)` constructor, creating a new instance of `SpeechSynthesisEvent`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/SpeechSynthesisEvent)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisEventInit`*"]
+ pub fn new(
+ type_: &str,
+ event_init_dict: &SpeechSynthesisEventInit,
+ ) -> Result<SpeechSynthesisEvent, JsValue>;
+}