Struct script::dom::audiolistener::AudioListener
source · #[repr(C)]pub struct AudioListener {
reflector_: Reflector,
position_x: Dom<AudioParam>,
position_y: Dom<AudioParam>,
position_z: Dom<AudioParam>,
forward_x: Dom<AudioParam>,
forward_y: Dom<AudioParam>,
forward_z: Dom<AudioParam>,
up_x: Dom<AudioParam>,
up_y: Dom<AudioParam>,
up_z: Dom<AudioParam>,
}
Fields§
§reflector_: Reflector
§position_x: Dom<AudioParam>
§position_y: Dom<AudioParam>
§position_z: Dom<AudioParam>
§forward_x: Dom<AudioParam>
§forward_y: Dom<AudioParam>
§forward_z: Dom<AudioParam>
§up_x: Dom<AudioParam>
§up_y: Dom<AudioParam>
§up_z: Dom<AudioParam>
Implementations§
source§impl AudioListener
impl AudioListener
fn new_inherited(window: &Window, context: &BaseAudioContext) -> AudioListener
pub fn new( window: &Window, context: &BaseAudioContext, ) -> Root<Dom<AudioListener>>
source§impl AudioListener
impl AudioListener
fn __assert_parent_type(&self)
Trait Implementations§
source§impl AudioListenerMethods for AudioListener
impl AudioListenerMethods for AudioListener
fn PositionX(&self) -> Root<Dom<AudioParam>>
fn PositionY(&self) -> Root<Dom<AudioParam>>
fn PositionZ(&self) -> Root<Dom<AudioParam>>
fn ForwardX(&self) -> Root<Dom<AudioParam>>
fn ForwardY(&self) -> Root<Dom<AudioParam>>
fn ForwardZ(&self) -> Root<Dom<AudioParam>>
fn UpX(&self) -> Root<Dom<AudioParam>>
fn UpY(&self) -> Root<Dom<AudioParam>>
fn UpZ(&self) -> Root<Dom<AudioParam>>
fn SetOrientation( &self, x: Finite<f32>, y: Finite<f32>, z: Finite<f32>, xUp: Finite<f32>, yUp: Finite<f32>, zUp: Finite<f32>, ) -> Result<Root<Dom<AudioListener>>, Error>
fn SetPosition( &self, x: Finite<f32>, y: Finite<f32>, z: Finite<f32>, ) -> Result<Root<Dom<AudioListener>>, Error>
source§impl DomObject for AudioListener
impl DomObject for AudioListener
source§impl DomObjectWrap for AudioListener
impl DomObjectWrap for AudioListener
source§const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::AudioListenerBinding::AudioListener_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::audiolistener::AudioListener>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::audiolistener::AudioListener>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Option<HandleObject<'_>>, _: Box<Self>, _: CanGc) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::AudioListenerBinding::AudioListener_Binding::Wrap as for<'a, 'b> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::option::Option<js::rust::Handle<'b, *mut js::jsapi::JSObject>>, std::boxed::Box<dom::audiolistener::AudioListener>, script_runtime::CanGc) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::audiolistener::AudioListener>>}
Function pointer to the general wrap function type
source§impl HasParent for AudioListener
impl HasParent for AudioListener
source§impl IDLInterface for AudioListener
impl IDLInterface for AudioListener
source§impl MallocSizeOf for AudioListener
impl MallocSizeOf for AudioListener
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl MutDomObject for AudioListener
impl MutDomObject for AudioListener
source§impl PartialEq for AudioListener
impl PartialEq for AudioListener
source§impl ToJSValConvertible for AudioListener
impl ToJSValConvertible for AudioListener
source§impl Traceable for AudioListener
impl Traceable for AudioListener
impl Eq for AudioListener
Auto Trait Implementations§
impl !Freeze for AudioListener
impl !RefUnwindSafe for AudioListener
impl !Send for AudioListener
impl !Sync for AudioListener
impl Unpin for AudioListener
impl !UnwindSafe for AudioListener
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert