From 9835e2ae736235810b4ea1c162ca5e65c547e770 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:50 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- vendor/web-sys/src/features/gen_OscillatorNode.rs | 115 ++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 vendor/web-sys/src/features/gen_OscillatorNode.rs (limited to 'vendor/web-sys/src/features/gen_OscillatorNode.rs') 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; + #[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; + #[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>; +} -- cgit v1.2.3