[][src]Struct openvr::Chaperone

pub struct Chaperone(_);

Methods

impl Chaperone[src]

pub fn get_calibration_state(&self) -> ChaperoneCalibrationState[src]

Get the current state of Chaperone calibration. This state can change at any time during a session due to physical base station changes. (NOTE: Some of these error codes are never returned as implementation for the error states is still a work in progress.)

pub fn get_play_area_size(&self) -> Option<(f32, f32)>[src]

Returns the width and depth of the Play Area.

pub fn get_play_area_rect(&self) -> Option<[[f32; 3]; 4]>[src]

Returns the 4 corner positions of the PlayArea.

pub fn are_bounds_visible(&self) -> bool[src]

Are chaperone bounds visible?

pub fn force_bounds_visible(&self, force: bool)[src]

Set chaperone bounds to always be visible. If set to false, chaperone bounds will only show when near the edge.

Caution: this change is persistent, even after your program exits.

Auto Trait Implementations

impl RefUnwindSafe for Chaperone

impl Send for Chaperone

impl Sync for Chaperone

impl Unpin for Chaperone

impl UnwindSafe for Chaperone

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.