Skip to main content

web_sys/features/
gen_StereoPannerNode.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 = "StereoPannerNode",
12        typescript_type = "StereoPannerNode"
13    )]
14    #[derive(Debug, Clone, PartialEq, Eq)]
15    #[doc = "The `StereoPannerNode` class."]
16    #[doc = ""]
17    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode)"]
18    #[doc = ""]
19    #[doc = "*This API requires the following crate features to be activated: `StereoPannerNode`*"]
20    pub type StereoPannerNode;
21    #[cfg(feature = "AudioParam")]
22    #[wasm_bindgen(method, getter, js_class = "StereoPannerNode", js_name = "pan")]
23    #[doc = "Getter for the `pan` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/pan)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `StereoPannerNode`*"]
28    pub fn pan(this: &StereoPannerNode) -> AudioParam;
29    #[cfg(feature = "BaseAudioContext")]
30    #[wasm_bindgen(catch, constructor, js_class = "StereoPannerNode")]
31    #[doc = "The `new StereoPannerNode(..)` constructor, creating a new instance of `StereoPannerNode`."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/StereoPannerNode)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*"]
36    pub fn new(context: &BaseAudioContext) -> Result<StereoPannerNode, JsValue>;
37    #[cfg(all(feature = "BaseAudioContext", feature = "StereoPannerOptions",))]
38    #[wasm_bindgen(catch, constructor, js_class = "StereoPannerNode")]
39    #[doc = "The `new StereoPannerNode(..)` constructor, creating a new instance of `StereoPannerNode`."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/StereoPannerNode)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`, `StereoPannerOptions`*"]
44    pub fn new_with_options(
45        context: &BaseAudioContext,
46        options: &StereoPannerOptions,
47    ) -> Result<StereoPannerNode, JsValue>;
48}