[][src]Enum ovrt_sys::types::window_type::WindowTypeValue

pub enum WindowTypeValue {
    WebPage(OVRWebContents),
    DesktopCapture(i32),
    WindowCapture(i32),
}

This is a composition of WindowType and Value, used to change contents of an overlay.

Variants

WebPage(OVRWebContents)
DesktopCapture(i32)
WindowCapture(i32)

Implementations

impl WindowTypeValue[src]

pub fn compose(kind: WindowType, value: Value) -> Option<Self>[src]

Given a type kind and a value, tries to compose a WindowTypeValue.

pub fn decompose(&self) -> (WindowType, Value)[src]

Extracts the type kind and value.

pub fn set_in_overlay(&self, uid: Uid)[src]

Uses this type kind and value to set an overlay content.

TODO: if this presents a too high overhead, new abstractions can be introduced to call set_contents_... functions in a more direct manner.

Trait Implementations

impl Clone for WindowTypeValue[src]

impl Debug for WindowTypeValue[src]

impl<'de> Deserialize<'de> for WindowTypeValue[src]

impl<'_> From<&'_ WindowTypeValue> for WindowType[src]

impl<'_> From<&'_ WindowTypeValue> for Value[src]

impl PartialEq<WindowTypeValue> for WindowTypeValue[src]

impl PartialOrd<WindowTypeValue> for WindowTypeValue[src]

impl Serialize for WindowTypeValue[src]

impl StructuralPartialEq for WindowTypeValue[src]

Auto Trait Implementations

impl RefUnwindSafe for WindowTypeValue

impl Send for WindowTypeValue

impl Sync for WindowTypeValue

impl Unpin for WindowTypeValue

impl UnwindSafe for WindowTypeValue

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.