Trait script::dom::bindings::codegen::Bindings::XRWebGLLayerBinding::XRWebGLLayer_Binding::XRWebGLLayerMethods
source · pub trait XRWebGLLayerMethods<D: DomTypes> {
// Required methods
fn Antialias(&self) -> bool;
fn IgnoreDepthValues(&self) -> bool;
fn GetFixedFoveation(&self) -> Option<Finite<f32>>;
fn SetFixedFoveation(&self, value: Option<Finite<f32>>);
fn GetFramebuffer(&self) -> Option<Root<Dom<WebGLFramebuffer>>>;
fn FramebufferWidth(&self) -> u32;
fn FramebufferHeight(&self) -> u32;
fn GetViewport(&self, view: &XRView) -> Option<Root<Dom<XRViewport>>>;
fn GetNativeFramebufferScaleFactor(
global: &Window,
session: &XRSession,
) -> Finite<f64>;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
session: &XRSession,
context: WebGLRenderingContextOrWebGL2RenderingContext,
layerInit: &XRWebGLLayerInit,
) -> Result<Root<Dom<XRWebGLLayer>>, Error>;
}
Required Methods§
fn Antialias(&self) -> bool
fn IgnoreDepthValues(&self) -> bool
fn GetFixedFoveation(&self) -> Option<Finite<f32>>
fn SetFixedFoveation(&self, value: Option<Finite<f32>>)
fn GetFramebuffer(&self) -> Option<Root<Dom<WebGLFramebuffer>>>
fn FramebufferWidth(&self) -> u32
fn FramebufferHeight(&self) -> u32
fn GetViewport(&self, view: &XRView) -> Option<Root<Dom<XRViewport>>>
fn GetNativeFramebufferScaleFactor( global: &Window, session: &XRSession, ) -> Finite<f64>
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, session: &XRSession, context: WebGLRenderingContextOrWebGL2RenderingContext, layerInit: &XRWebGLLayerInit, ) -> Result<Root<Dom<XRWebGLLayer>>, Error>
Object Safety§
This trait is not object safe.