Trait script::dom::bindings::codegen::Bindings::PannerNodeBinding::PannerNode_Binding::PannerNodeMethods
source · pub trait PannerNodeMethods {
Show 25 methods
// Required methods
fn PanningModel(&self) -> PanningModelType;
fn SetPanningModel(&self, value: PanningModelType);
fn PositionX(&self) -> Root<Dom<AudioParam>>;
fn PositionY(&self) -> Root<Dom<AudioParam>>;
fn PositionZ(&self) -> Root<Dom<AudioParam>>;
fn OrientationX(&self) -> Root<Dom<AudioParam>>;
fn OrientationY(&self) -> Root<Dom<AudioParam>>;
fn OrientationZ(&self) -> Root<Dom<AudioParam>>;
fn DistanceModel(&self) -> DistanceModelType;
fn SetDistanceModel(&self, value: DistanceModelType);
fn RefDistance(&self) -> Finite<f64>;
fn SetRefDistance(&self, value: Finite<f64>) -> Result<(), Error>;
fn MaxDistance(&self) -> Finite<f64>;
fn SetMaxDistance(&self, value: Finite<f64>) -> Result<(), Error>;
fn RolloffFactor(&self) -> Finite<f64>;
fn SetRolloffFactor(&self, value: Finite<f64>) -> Result<(), Error>;
fn ConeInnerAngle(&self) -> Finite<f64>;
fn SetConeInnerAngle(&self, value: Finite<f64>);
fn ConeOuterAngle(&self) -> Finite<f64>;
fn SetConeOuterAngle(&self, value: Finite<f64>);
fn ConeOuterGain(&self) -> Finite<f64>;
fn SetConeOuterGain(&self, value: Finite<f64>) -> Result<(), Error>;
fn SetPosition(&self, x: Finite<f32>, y: Finite<f32>, z: Finite<f32>);
fn SetOrientation(&self, x: Finite<f32>, y: Finite<f32>, z: Finite<f32>);
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
context: &BaseAudioContext,
options: &PannerOptions,
) -> Result<Root<Dom<PannerNode>>, Error>;
}
Required Methods§
fn PanningModel(&self) -> PanningModelType
fn SetPanningModel(&self, value: PanningModelType)
fn PositionX(&self) -> Root<Dom<AudioParam>>
fn PositionY(&self) -> Root<Dom<AudioParam>>
fn PositionZ(&self) -> Root<Dom<AudioParam>>
fn OrientationX(&self) -> Root<Dom<AudioParam>>
fn OrientationY(&self) -> Root<Dom<AudioParam>>
fn OrientationZ(&self) -> Root<Dom<AudioParam>>
fn DistanceModel(&self) -> DistanceModelType
fn SetDistanceModel(&self, value: DistanceModelType)
fn RefDistance(&self) -> Finite<f64>
fn SetRefDistance(&self, value: Finite<f64>) -> Result<(), Error>
fn MaxDistance(&self) -> Finite<f64>
fn SetMaxDistance(&self, value: Finite<f64>) -> Result<(), Error>
fn RolloffFactor(&self) -> Finite<f64>
fn SetRolloffFactor(&self, value: Finite<f64>) -> Result<(), Error>
fn ConeInnerAngle(&self) -> Finite<f64>
fn SetConeInnerAngle(&self, value: Finite<f64>)
fn ConeOuterAngle(&self) -> Finite<f64>
fn SetConeOuterAngle(&self, value: Finite<f64>)
fn ConeOuterGain(&self) -> Finite<f64>
fn SetConeOuterGain(&self, value: Finite<f64>) -> Result<(), Error>
fn SetPosition(&self, x: Finite<f32>, y: Finite<f32>, z: Finite<f32>)
fn SetOrientation(&self, x: Finite<f32>, y: Finite<f32>, z: Finite<f32>)
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, context: &BaseAudioContext, options: &PannerOptions, ) -> Result<Root<Dom<PannerNode>>, Error>
Object Safety§
This trait is not object safe.