#[repr(transparent)]pub struct VrDisplay { /* private fields */ }
Expand description
The VRDisplay
object
This API requires the following crate features to be activated: VrDisplay
Implementations§
source§impl VrDisplay
impl VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn exit_present(&self) -> Result<Promise, JsValue>
pub fn exit_present(&self) -> Result<Promise, JsValue>
The exitPresent()
method
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn get_eye_parameters(&self, which_eye: VrEye) -> VrEyeParameters
pub fn get_eye_parameters(&self, which_eye: VrEye) -> VrEyeParameters
The getEyeParameters()
method
This API requires the following crate features to be activated: VrDisplay
, VrEye
, VrEyeParameters
source§impl VrDisplay
impl VrDisplay
sourcepub fn get_frame_data(&self, frame_data: &VrFrameData) -> bool
pub fn get_frame_data(&self, frame_data: &VrFrameData) -> bool
The getFrameData()
method
This API requires the following crate features to be activated: VrDisplay
, VrFrameData
source§impl VrDisplay
impl VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn get_submit_frame_result(&self, result: &VrSubmitFrameResult) -> bool
pub fn get_submit_frame_result(&self, result: &VrSubmitFrameResult) -> bool
The getSubmitFrameResult()
method
This API requires the following crate features to be activated: VrDisplay
, VrSubmitFrameResult
source§impl VrDisplay
impl VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn reset_pose(&self)
pub fn reset_pose(&self)
The resetPose()
method
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn submit_frame(&self)
pub fn submit_frame(&self)
The submitFrame()
method
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
The isConnected
getter
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn is_presenting(&self) -> bool
pub fn is_presenting(&self) -> bool
The isPresenting
getter
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn capabilities(&self) -> VrDisplayCapabilities
pub fn capabilities(&self) -> VrDisplayCapabilities
The capabilities
getter
This API requires the following crate features to be activated: VrDisplay
, VrDisplayCapabilities
source§impl VrDisplay
impl VrDisplay
sourcepub fn stage_parameters(&self) -> Option<VrStageParameters>
pub fn stage_parameters(&self) -> Option<VrStageParameters>
The stageParameters
getter
This API requires the following crate features to be activated: VrDisplay
, VrStageParameters
source§impl VrDisplay
impl VrDisplay
sourcepub fn display_id(&self) -> u32
pub fn display_id(&self) -> u32
The displayId
getter
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn display_name(&self) -> String
pub fn display_name(&self) -> String
The displayName
getter
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn depth_near(&self) -> f64
pub fn depth_near(&self) -> f64
The depthNear
getter
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
sourcepub fn set_depth_near(&self, depth_near: f64)
pub fn set_depth_near(&self, depth_near: f64)
The depthNear
setter
This API requires the following crate features to be activated: VrDisplay
source§impl VrDisplay
impl VrDisplay
Trait Implementations§
source§impl AsRef<EventTarget> for VrDisplay
impl AsRef<EventTarget> for VrDisplay
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl From<VrDisplay> for EventTarget
impl From<VrDisplay> for EventTarget
source§fn from(obj: VrDisplay) -> EventTarget
fn from(obj: VrDisplay) -> EventTarget
source§impl FromWasmAbi for VrDisplay
impl FromWasmAbi for VrDisplay
source§impl<'a> IntoWasmAbi for &'a VrDisplay
impl<'a> IntoWasmAbi for &'a VrDisplay
source§impl IntoWasmAbi for VrDisplay
impl IntoWasmAbi for VrDisplay
source§impl JsCast for VrDisplay
impl JsCast for VrDisplay
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for VrDisplay
impl OptionFromWasmAbi for VrDisplay
source§impl<'a> OptionIntoWasmAbi for &'a VrDisplay
impl<'a> OptionIntoWasmAbi for &'a VrDisplay
source§impl OptionIntoWasmAbi for VrDisplay
impl OptionIntoWasmAbi for VrDisplay
source§impl RefFromWasmAbi for VrDisplay
impl RefFromWasmAbi for VrDisplay
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<VrDisplay>
type Anchor = ManuallyDrop<VrDisplay>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for VrDisplay
impl Send for VrDisplay
impl Sync for VrDisplay
impl Unpin for VrDisplay
impl UnwindSafe for VrDisplay
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more