Skip to main content

web_sys/features/
gen_AudioScheduledSourceNode.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "AudioNode",
9        extends = "EventTarget",
10        extends = "::js_sys::Object",
11        js_name = "AudioScheduledSourceNode",
12        typescript_type = "AudioScheduledSourceNode"
13    )]
14    #[derive(Debug, Clone, PartialEq, Eq)]
15    #[doc = "The `AudioScheduledSourceNode` class."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
20    pub type AudioScheduledSourceNode;
21    #[wasm_bindgen(
22        method,
23        getter,
24        js_class = "AudioScheduledSourceNode",
25        js_name = "onended"
26    )]
27    #[doc = "Getter for the `onended` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
32    pub fn onended(this: &AudioScheduledSourceNode) -> Option<::js_sys::Function>;
33    #[wasm_bindgen(
34        method,
35        setter,
36        js_class = "AudioScheduledSourceNode",
37        js_name = "onended"
38    )]
39    #[doc = "Setter for the `onended` field of this object."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
44    pub fn set_onended(this: &AudioScheduledSourceNode, value: Option<&::js_sys::Function>);
45    #[wasm_bindgen(catch, method, js_class = "AudioScheduledSourceNode")]
46    #[doc = "The `start()` method."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
51    pub fn start(this: &AudioScheduledSourceNode) -> Result<(), JsValue>;
52    #[wasm_bindgen(
53        catch,
54        method,
55        js_class = "AudioScheduledSourceNode",
56        js_name = "start"
57    )]
58    #[doc = "The `start()` method."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
63    pub fn start_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>;
64    #[wasm_bindgen(catch, method, js_class = "AudioScheduledSourceNode")]
65    #[doc = "The `stop()` method."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
70    pub fn stop(this: &AudioScheduledSourceNode) -> Result<(), JsValue>;
71    #[wasm_bindgen(catch, method, js_class = "AudioScheduledSourceNode", js_name = "stop")]
72    #[doc = "The `stop()` method."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"]
77    pub fn stop_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>;
78}