summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_OscillatorNode.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_OscillatorNode.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_OscillatorNode.rs')
-rw-r--r--vendor/web-sys/src/features/gen_OscillatorNode.rs115
1 files changed, 115 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_OscillatorNode.rs b/vendor/web-sys/src/features/gen_OscillatorNode.rs
new file mode 100644
index 000000000..b72525ea4
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_OscillatorNode.rs
@@ -0,0 +1,115 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = OscillatorNode , typescript_type = "OscillatorNode")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `OscillatorNode` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"]
+ pub type OscillatorNode;
+ #[cfg(feature = "OscillatorType")]
+ # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = type)]
+ #[doc = "Getter for the `type` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"]
+ pub fn type_(this: &OscillatorNode) -> OscillatorType;
+ #[cfg(feature = "OscillatorType")]
+ # [wasm_bindgen (structural , method , setter , js_class = "OscillatorNode" , js_name = type)]
+ #[doc = "Setter for the `type` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"]
+ pub fn set_type(this: &OscillatorNode, value: OscillatorType);
+ #[cfg(feature = "AudioParam")]
+ # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = frequency)]
+ #[doc = "Getter for the `frequency` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/frequency)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"]
+ pub fn frequency(this: &OscillatorNode) -> AudioParam;
+ #[cfg(feature = "AudioParam")]
+ # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = detune)]
+ #[doc = "Getter for the `detune` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/detune)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"]
+ pub fn detune(this: &OscillatorNode) -> AudioParam;
+ # [wasm_bindgen (structural , method , getter , js_class = "OscillatorNode" , js_name = onended)]
+ #[doc = "Getter for the `onended` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"]
+ pub fn onended(this: &OscillatorNode) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "OscillatorNode" , js_name = onended)]
+ #[doc = "Setter for the `onended` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"]
+ pub fn set_onended(this: &OscillatorNode, value: Option<&::js_sys::Function>);
+ #[cfg(feature = "BaseAudioContext")]
+ #[wasm_bindgen(catch, constructor, js_class = "OscillatorNode")]
+ #[doc = "The `new OscillatorNode(..)` constructor, creating a new instance of `OscillatorNode`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/OscillatorNode)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`*"]
+ pub fn new(context: &BaseAudioContext) -> Result<OscillatorNode, JsValue>;
+ #[cfg(all(feature = "BaseAudioContext", feature = "OscillatorOptions",))]
+ #[wasm_bindgen(catch, constructor, js_class = "OscillatorNode")]
+ #[doc = "The `new OscillatorNode(..)` constructor, creating a new instance of `OscillatorNode`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/OscillatorNode)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`, `OscillatorOptions`*"]
+ pub fn new_with_options(
+ context: &BaseAudioContext,
+ options: &OscillatorOptions,
+ ) -> Result<OscillatorNode, JsValue>;
+ #[cfg(feature = "PeriodicWave")]
+ # [wasm_bindgen (method , structural , js_class = "OscillatorNode" , js_name = setPeriodicWave)]
+ #[doc = "The `setPeriodicWave()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/setPeriodicWave)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `PeriodicWave`*"]
+ pub fn set_periodic_wave(this: &OscillatorNode, periodic_wave: &PeriodicWave);
+ # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = start)]
+ #[doc = "The `start()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"]
+ pub fn start(this: &OscillatorNode) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = start)]
+ #[doc = "The `start()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"]
+ pub fn start_with_when(this: &OscillatorNode, when: f64) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = stop)]
+ #[doc = "The `stop()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"]
+ pub fn stop(this: &OscillatorNode) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "OscillatorNode" , js_name = stop)]
+ #[doc = "The `stop()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"]
+ pub fn stop_with_when(this: &OscillatorNode, when: f64) -> Result<(), JsValue>;
+}