Trait script::dom::bindings::codegen::Bindings::OscillatorNodeBinding::OscillatorNode_Binding::OscillatorNodeMethods
source · pub trait OscillatorNodeMethods {
// Required methods
fn Type(&self) -> OscillatorType;
fn SetType(&self, value: OscillatorType) -> Result<(), Error>;
fn Frequency(&self) -> Root<Dom<AudioParam>>;
fn Detune(&self) -> Root<Dom<AudioParam>>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
context: &BaseAudioContext,
options: &OscillatorOptions,
) -> Result<Root<Dom<OscillatorNode>>, Error>;
}
Required Methods§
fn Type(&self) -> OscillatorType
fn SetType(&self, value: OscillatorType) -> Result<(), Error>
fn Frequency(&self) -> Root<Dom<AudioParam>>
fn Detune(&self) -> Root<Dom<AudioParam>>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, context: &BaseAudioContext, options: &OscillatorOptions, ) -> Result<Root<Dom<OscillatorNode>>, Error>
Object Safety§
This trait is not object safe.