Struct script::dom::xrrenderstate::XRRenderState
source · #[repr(C)]pub struct XRRenderState {
reflector_: Reflector,
depth_near: Cell<f64>,
depth_far: Cell<f64>,
inline_vertical_fov: Cell<Option<f64>>,
base_layer: MutNullableDom<XRWebGLLayer>,
layers: DomRefCell<Vec<Dom<XRLayer>>>,
}
Fields
reflector_: Reflector
depth_near: Cell<f64>
depth_far: Cell<f64>
inline_vertical_fov: Cell<Option<f64>>
base_layer: MutNullableDom<XRWebGLLayer>
layers: DomRefCell<Vec<Dom<XRLayer>>>
Implementations
sourceimpl XRRenderState
impl XRRenderState
fn __assert_parent_type(&self)
sourceimpl XRRenderState
impl XRRenderState
pub fn new_inherited(
depth_near: f64,
depth_far: f64,
inline_vertical_fov: Option<f64>,
layer: Option<&XRWebGLLayer>,
layers: Vec<&XRLayer>
) -> XRRenderState
pub fn new(
global: &GlobalScope,
depth_near: f64,
depth_far: f64,
inline_vertical_fov: Option<f64>,
layer: Option<&XRWebGLLayer>,
layers: Vec<&XRLayer>
) -> Root<Dom<XRRenderState>>
pub fn clone_object(&self) -> Root<Dom<Self>>
pub fn set_depth_near(&self, depth: f64)
pub fn set_depth_far(&self, depth: f64)
pub fn set_inline_vertical_fov(&self, fov: f64)
pub fn set_base_layer(&self, layer: Option<&XRWebGLLayer>)
pub fn set_layers(&self, layers: Vec<&XRLayer>)
pub fn with_layers<F, R>(&self, f: F) -> Rwhere
F: FnOnce(&[Dom<XRLayer>]) -> R,
pub fn has_sub_images(&self, sub_images: &[SubImages]) -> bool
Trait Implementations
sourceimpl DomObject for XRRenderState
impl DomObject for XRRenderState
sourceimpl DomObjectWrap for XRRenderState
impl DomObjectWrap for XRRenderState
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::XRRenderStateBinding::XRRenderStateBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::xrrenderstate::XRRenderState>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::xrrenderstate::XRRenderState>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::XRRenderStateBinding::XRRenderStateBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::xrrenderstate::XRRenderState>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::xrrenderstate::XRRenderState>>}
Function pointer to the general wrap function type
sourceimpl HasParent for XRRenderState
impl HasParent for XRRenderState
sourceimpl IDLInterface for XRRenderState
impl IDLInterface for XRRenderState
sourceimpl JSTraceable for XRRenderState
impl JSTraceable for XRRenderState
sourceimpl MallocSizeOf for XRRenderState
impl MallocSizeOf for XRRenderState
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 XRRenderState
impl MutDomObject for XRRenderState
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<XRRenderState> for XRRenderState
impl PartialEq<XRRenderState> for XRRenderState
sourcefn eq(&self, other: &XRRenderState) -> bool
fn eq(&self, other: &XRRenderState) -> bool
sourceimpl ToJSValConvertible for XRRenderState
impl ToJSValConvertible for XRRenderState
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 XRRenderStateMethods for XRRenderState
impl XRRenderStateMethods for XRRenderState
sourcefn DepthNear(&self) -> Finite<f64>
fn DepthNear(&self) -> Finite<f64>
https://immersive-web.github.io/webxr/#dom-xrrenderstate-depthnear
sourcefn DepthFar(&self) -> Finite<f64>
fn DepthFar(&self) -> Finite<f64>
https://immersive-web.github.io/webxr/#dom-xrrenderstate-depthfar
sourcefn GetInlineVerticalFieldOfView(&self) -> Option<Finite<f64>>
fn GetInlineVerticalFieldOfView(&self) -> Option<Finite<f64>>
https://immersive-web.github.io/webxr/#dom-xrrenderstate-inlineverticalfieldofview
sourcefn GetBaseLayer(&self) -> Option<Root<Dom<XRWebGLLayer>>>
fn GetBaseLayer(&self) -> Option<Root<Dom<XRWebGLLayer>>>
https://immersive-web.github.io/webxr/#dom-xrrenderstate-baselayer
Auto Trait Implementations
impl !RefUnwindSafe for XRRenderState
impl !Send for XRRenderState
impl !Sync for XRRenderState
impl Unpin for XRRenderState
impl !UnwindSafe for XRRenderState
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