[]Struct augdom::event::DeviceOrientation

pub struct DeviceOrientation(_);

Fresh data is available from an orientation sensor. MDN documentation

Methods from Deref<Target = DeviceOrientationEvent>

pub fn alpha(&self) -> Option<f64>[src]

Getter for the alpha field of this object.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn beta(&self) -> Option<f64>[src]

Getter for the beta field of this object.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn gamma(&self) -> Option<f64>[src]

Getter for the gamma field of this object.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

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

Getter for the absolute field of this object.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn init_device_orientation_event(&self, type_: &str)[src]

The initDeviceOrientationEvent() method.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn init_device_orientation_event_with_can_bubble(
    &self,
    type_: &str,
    can_bubble: bool
)
[src]

The initDeviceOrientationEvent() method.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn init_device_orientation_event_with_can_bubble_and_cancelable(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool
)
[src]

The initDeviceOrientationEvent() method.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    alpha: Option<f64>
)
[src]

The initDeviceOrientationEvent() method.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    alpha: Option<f64>,
    beta: Option<f64>
)
[src]

The initDeviceOrientationEvent() method.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta_and_gamma(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    alpha: Option<f64>,
    beta: Option<f64>,
    gamma: Option<f64>
)
[src]

The initDeviceOrientationEvent() method.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

pub fn init_device_orientation_event_with_can_bubble_and_cancelable_and_alpha_and_beta_and_gamma_and_absolute(
    &self,
    type_: &str,
    can_bubble: bool,
    cancelable: bool,
    alpha: Option<f64>,
    beta: Option<f64>,
    gamma: Option<f64>,
    absolute: bool
)
[src]

The initDeviceOrientationEvent() method.

MDN Documentation

This API requires the following crate features to be activated: DeviceOrientationEvent

Trait Implementations

impl AsRef<Event> for DeviceOrientation[src]

impl AsRef<JsValue> for DeviceOrientation[src]

impl Deref for DeviceOrientation[src]

type Target = DeviceOrientationEvent

The resulting type after dereferencing.

impl Event for DeviceOrientation[src]

impl From<DeviceOrientation> for JsValue[src]

impl FromWasmAbi for DeviceOrientation[src]

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for DeviceOrientation[src]

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for DeviceOrientation[src]

impl OptionFromWasmAbi for DeviceOrientation[src]

impl OptionIntoWasmAbi for DeviceOrientation[src]

impl RefFromWasmAbi for DeviceOrientation[src]

type Abi = u32

The wasm ABI type references to Self are recovered from.

type Anchor = Ref<'static, DeviceOrientation>

The type that holds the reference to 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 more

impl RefMutFromWasmAbi for DeviceOrientation[src]

type Abi = u32

Same as RefFromWasmAbi::Abi

type Anchor = RefMut<'static, DeviceOrientation>

Same as RefFromWasmAbi::Anchor

impl WasmDescribe for DeviceOrientation[src]

Auto Trait Implementations

impl RefUnwindSafe for DeviceOrientation

impl !Send for DeviceOrientation

impl !Sync for DeviceOrientation

impl Unpin for DeviceOrientation

impl UnwindSafe for DeviceOrientation

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> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

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.