Struct web_sys::DeviceOrientationEvent
source · #[repr(transparent)]pub struct DeviceOrientationEvent { /* private fields */ }
Expand description
The DeviceOrientationEvent
object
This API requires the following crate features to be activated: DeviceOrientationEvent
Implementations§
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
sourcepub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &DeviceOrientationEventInit
) -> Result<DeviceOrientationEvent, JsValue>
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &DeviceOrientationEventInit
) -> Result<DeviceOrientationEvent, JsValue>
The new DeviceOrientationEvent(..)
constructor, creating a new instance of DeviceOrientationEvent
This API requires the following crate features to be activated: DeviceOrientationEvent
, DeviceOrientationEventInit
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
sourcepub fn init_device_orientation_event(&self, type_: &str)
pub fn init_device_orientation_event(&self, type_: &str)
The initDeviceOrientationEvent()
method
This API requires the following crate features to be activated: DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
sourcepub fn init_device_orientation_event_with_can_bubble(
&self,
type_: &str,
can_bubble: bool
)
pub fn init_device_orientation_event_with_can_bubble(
&self,
type_: &str,
can_bubble: bool
)
The initDeviceOrientationEvent()
method
This API requires the following crate features to be activated: DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
sourcepub fn init_device_orientation_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
pub fn init_device_orientation_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initDeviceOrientationEvent()
method
This API requires the following crate features to be activated: DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
sourcepub 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>
)
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>
)
The initDeviceOrientationEvent()
method
This API requires the following crate features to be activated: DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
sourcepub 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>
)
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>
)
The initDeviceOrientationEvent()
method
This API requires the following crate features to be activated: DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
sourcepub 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
)
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
)
The initDeviceOrientationEvent()
method
This API requires the following crate features to be activated: DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
source§impl DeviceOrientationEvent
impl DeviceOrientationEvent
Trait Implementations§
source§impl AsRef<Event> for DeviceOrientationEvent
impl AsRef<Event> for DeviceOrientationEvent
source§impl AsRef<JsValue> for DeviceOrientationEvent
impl AsRef<JsValue> for DeviceOrientationEvent
source§impl AsRef<Object> for DeviceOrientationEvent
impl AsRef<Object> for DeviceOrientationEvent
source§impl Clone for DeviceOrientationEvent
impl Clone for DeviceOrientationEvent
source§fn clone(&self) -> DeviceOrientationEvent
fn clone(&self) -> DeviceOrientationEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceOrientationEvent
impl Debug for DeviceOrientationEvent
source§impl From<DeviceOrientationEvent> for Event
impl From<DeviceOrientationEvent> for Event
source§fn from(obj: DeviceOrientationEvent) -> Event
fn from(obj: DeviceOrientationEvent) -> Event
source§impl From<DeviceOrientationEvent> for JsValue
impl From<DeviceOrientationEvent> for JsValue
source§fn from(obj: DeviceOrientationEvent) -> JsValue
fn from(obj: DeviceOrientationEvent) -> JsValue
source§impl From<DeviceOrientationEvent> for Object
impl From<DeviceOrientationEvent> for Object
source§fn from(obj: DeviceOrientationEvent) -> Object
fn from(obj: DeviceOrientationEvent) -> Object
source§impl From<JsValue> for DeviceOrientationEvent
impl From<JsValue> for DeviceOrientationEvent
source§fn from(obj: JsValue) -> DeviceOrientationEvent
fn from(obj: JsValue) -> DeviceOrientationEvent
source§impl FromWasmAbi for DeviceOrientationEvent
impl FromWasmAbi for DeviceOrientationEvent
source§impl<'a> IntoWasmAbi for &'a DeviceOrientationEvent
impl<'a> IntoWasmAbi for &'a DeviceOrientationEvent
source§impl IntoWasmAbi for DeviceOrientationEvent
impl IntoWasmAbi for DeviceOrientationEvent
source§impl JsCast for DeviceOrientationEvent
impl JsCast for DeviceOrientationEvent
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<'a> OptionIntoWasmAbi for &'a DeviceOrientationEvent
impl<'a> OptionIntoWasmAbi for &'a DeviceOrientationEvent
source§impl RefFromWasmAbi for DeviceOrientationEvent
impl RefFromWasmAbi for DeviceOrientationEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<DeviceOrientationEvent>
type Anchor = ManuallyDrop<DeviceOrientationEvent>
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 DeviceOrientationEvent
impl !Send for DeviceOrientationEvent
impl !Sync for DeviceOrientationEvent
impl Unpin for DeviceOrientationEvent
impl UnwindSafe for DeviceOrientationEvent
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