Struct script::dom::xrwebglbinding::XRWebGLBinding
source · #[repr(C)]pub struct XRWebGLBinding {
reflector: Reflector,
session: Dom<XRSession>,
context: Dom<WebGLRenderingContext>,
}
Fields
reflector: Reflector
session: Dom<XRSession>
context: Dom<WebGLRenderingContext>
Implementations
sourceimpl XRWebGLBinding
impl XRWebGLBinding
fn __assert_parent_type(&self)
sourceimpl XRWebGLBinding
impl XRWebGLBinding
pub fn new_inherited(
session: &XRSession,
context: &WebGLRenderingContext
) -> XRWebGLBinding
pub fn new(
global: &Window,
session: &XRSession,
context: &WebGLRenderingContext
) -> Root<Dom<XRWebGLBinding>>
pub fn Constructor(
global: &Window,
session: &XRSession,
context: WebGLRenderingContextOrWebGL2RenderingContext
) -> Root<Dom<XRWebGLBinding>>
Trait Implementations
sourceimpl DomObject for XRWebGLBinding
impl DomObject for XRWebGLBinding
sourceimpl DomObjectWrap for XRWebGLBinding
impl DomObjectWrap for XRWebGLBinding
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::XRWebGLBindingBinding::XRWebGLBindingBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::xrwebglbinding::XRWebGLBinding>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::xrwebglbinding::XRWebGLBinding>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::XRWebGLBindingBinding::XRWebGLBindingBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::xrwebglbinding::XRWebGLBinding>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::xrwebglbinding::XRWebGLBinding>>}
Function pointer to the general wrap function type
sourceimpl HasParent for XRWebGLBinding
impl HasParent for XRWebGLBinding
sourceimpl IDLInterface for XRWebGLBinding
impl IDLInterface for XRWebGLBinding
sourceimpl JSTraceable for XRWebGLBinding
impl JSTraceable for XRWebGLBinding
sourceimpl MallocSizeOf for XRWebGLBinding
impl MallocSizeOf for XRWebGLBinding
sourcefn 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. Read more
sourceimpl MutDomObject for XRWebGLBinding
impl MutDomObject for XRWebGLBinding
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<XRWebGLBinding> for XRWebGLBinding
impl PartialEq<XRWebGLBinding> for XRWebGLBinding
sourcefn eq(&self, other: &XRWebGLBinding) -> bool
fn eq(&self, other: &XRWebGLBinding) -> bool
sourceimpl ToJSValConvertible for XRWebGLBinding
impl ToJSValConvertible for XRWebGLBinding
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.sourceimpl XRWebGLBindingMethods for XRWebGLBinding
impl XRWebGLBindingMethods for XRWebGLBinding
sourcefn CreateProjectionLayer(
&self,
_: XRTextureType,
_: &XRProjectionLayerInit
) -> Result<Root<Dom<XRProjectionLayer>>, Error>
fn CreateProjectionLayer(
&self,
_: XRTextureType,
_: &XRProjectionLayerInit
) -> Result<Root<Dom<XRProjectionLayer>>, Error>
https://immersive-web.github.io/layers/#dom-xrwebglbinding-createprojectionlayer
sourcefn CreateQuadLayer(
&self,
_: XRTextureType,
_: &Option<XRQuadLayerInit>
) -> Result<Root<Dom<XRQuadLayer>>, Error>
fn CreateQuadLayer(
&self,
_: XRTextureType,
_: &Option<XRQuadLayerInit>
) -> Result<Root<Dom<XRQuadLayer>>, Error>
https://immersive-web.github.io/layers/#dom-xrwebglbinding-createquadlayer
sourcefn CreateCylinderLayer(
&self,
_: XRTextureType,
_: &Option<XRCylinderLayerInit>
) -> Result<Root<Dom<XRCylinderLayer>>, Error>
fn CreateCylinderLayer(
&self,
_: XRTextureType,
_: &Option<XRCylinderLayerInit>
) -> Result<Root<Dom<XRCylinderLayer>>, Error>
https://immersive-web.github.io/layers/#dom-xrwebglbinding-createcylinderlayer
sourcefn CreateEquirectLayer(
&self,
_: XRTextureType,
_: &Option<XREquirectLayerInit>
) -> Result<Root<Dom<XREquirectLayer>>, Error>
fn CreateEquirectLayer(
&self,
_: XRTextureType,
_: &Option<XREquirectLayerInit>
) -> Result<Root<Dom<XREquirectLayer>>, Error>
https://immersive-web.github.io/layers/#dom-xrwebglbinding-createequirectlayer
sourcefn CreateCubeLayer(
&self,
_: &Option<XRCubeLayerInit>
) -> Result<Root<Dom<XRCubeLayer>>, Error>
fn CreateCubeLayer(
&self,
_: &Option<XRCubeLayerInit>
) -> Result<Root<Dom<XRCubeLayer>>, Error>
https://immersive-web.github.io/layers/#dom-xrwebglbinding-createcubelayer
sourcefn GetSubImage(
&self,
_: &XRCompositionLayer,
_: &XRFrame,
_: XREye
) -> Result<Root<Dom<XRWebGLSubImage>>, Error>
fn GetSubImage(
&self,
_: &XRCompositionLayer,
_: &XRFrame,
_: XREye
) -> Result<Root<Dom<XRWebGLSubImage>>, Error>
https://immersive-web.github.io/layers/#dom-xrwebglbinding-getsubimage
sourcefn GetViewSubImage(
&self,
_: &XRProjectionLayer,
_: &XRView
) -> Result<Root<Dom<XRWebGLSubImage>>, Error>
fn GetViewSubImage(
&self,
_: &XRProjectionLayer,
_: &XRView
) -> Result<Root<Dom<XRWebGLSubImage>>, Error>
https://immersive-web.github.io/layers/#dom-xrwebglbinding-getviewsubimage
Auto Trait Implementations
impl !RefUnwindSafe for XRWebGLBinding
impl !Send for XRWebGLBinding
impl !Sync for XRWebGLBinding
impl Unpin for XRWebGLBinding
impl !UnwindSafe for XRWebGLBinding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert