Skip to main content

XRInputSourceMethods

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

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§