Skip to main content

XRInputSourceMethods

Trait XRInputSourceMethods 

Source
pub(crate) trait XRInputSourceMethods<D>
where D: DomTypes,
{ // Required methods fn Handedness(&self) -> XRHandedness; fn TargetRayMode(&self) -> XRTargetRayMode; fn TargetRaySpace( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::XRSpace>>; fn GetGripSpace( &self, cx: &mut JSContext, ) -> Option<Root<Dom<<D as DomTypes>::XRSpace>>>; fn Profiles(&self, retval: MutableHandle<'_, Value>); fn SkipRendering(&self) -> bool; fn GetGamepad(&self) -> Option<Root<Dom<<D as DomTypes>::Gamepad>>>; fn GetHand( &self, cx: &mut JSContext, ) -> Option<Root<Dom<<D as DomTypes>::XRHand>>>; }

Required Methods§

Source

fn Handedness(&self) -> XRHandedness

Source

fn TargetRayMode(&self) -> XRTargetRayMode

Source

fn TargetRaySpace( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::XRSpace>>

Source

fn GetGripSpace( &self, cx: &mut JSContext, ) -> Option<Root<Dom<<D as DomTypes>::XRSpace>>>

Source

fn Profiles(&self, retval: MutableHandle<'_, Value>)

Source

fn SkipRendering(&self) -> bool

Source

fn GetGamepad(&self) -> Option<Root<Dom<<D as DomTypes>::Gamepad>>>

Source

fn GetHand( &self, cx: &mut JSContext, ) -> Option<Root<Dom<<D as DomTypes>::XRHand>>>

Implementors§