#[repr(transparent)]pub struct UiEvent { /* private fields */ }
Expand description
The UIEvent
object
This API requires the following crate features to be activated: UiEvent
Implementations§
source§impl UiEvent
impl UiEvent
sourcepub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &UiEventInit
) -> Result<UiEvent, JsValue>
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &UiEventInit
) -> Result<UiEvent, JsValue>
The new UIEvent(..)
constructor, creating a new instance of UIEvent
This API requires the following crate features to be activated: UiEvent
, UiEventInit
source§impl UiEvent
impl UiEvent
sourcepub fn init_ui_event(&self, a_type: &str)
pub fn init_ui_event(&self, a_type: &str)
The initUIEvent()
method
This API requires the following crate features to be activated: UiEvent
source§impl UiEvent
impl UiEvent
sourcepub fn init_ui_event_with_a_can_bubble(&self, a_type: &str, a_can_bubble: bool)
pub fn init_ui_event_with_a_can_bubble(&self, a_type: &str, a_can_bubble: bool)
The initUIEvent()
method
This API requires the following crate features to be activated: UiEvent
source§impl UiEvent
impl UiEvent
sourcepub fn init_ui_event_with_a_can_bubble_and_a_cancelable(
&self,
a_type: &str,
a_can_bubble: bool,
a_cancelable: bool
)
pub fn init_ui_event_with_a_can_bubble_and_a_cancelable(
&self,
a_type: &str,
a_can_bubble: bool,
a_cancelable: bool
)
The initUIEvent()
method
This API requires the following crate features to be activated: UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
source§impl UiEvent
impl UiEvent
sourcepub fn range_parent(&self) -> Option<Node>
pub fn range_parent(&self) -> Option<Node>
The rangeParent
getter
This API requires the following crate features to be activated: Node
, UiEvent
Trait Implementations§
source§impl AsRef<UiEvent> for CompositionEvent
impl AsRef<UiEvent> for CompositionEvent
source§impl AsRef<UiEvent> for FocusEvent
impl AsRef<UiEvent> for FocusEvent
source§impl AsRef<UiEvent> for InputEvent
impl AsRef<UiEvent> for InputEvent
source§impl AsRef<UiEvent> for KeyboardEvent
impl AsRef<UiEvent> for KeyboardEvent
source§impl AsRef<UiEvent> for MouseEvent
impl AsRef<UiEvent> for MouseEvent
source§impl AsRef<UiEvent> for MouseScrollEvent
impl AsRef<UiEvent> for MouseScrollEvent
source§impl AsRef<UiEvent> for PointerEvent
impl AsRef<UiEvent> for PointerEvent
source§impl AsRef<UiEvent> for ScrollAreaEvent
impl AsRef<UiEvent> for ScrollAreaEvent
source§impl AsRef<UiEvent> for TouchEvent
impl AsRef<UiEvent> for TouchEvent
source§impl AsRef<UiEvent> for WheelEvent
impl AsRef<UiEvent> for WheelEvent
source§impl From<CompositionEvent> for UiEvent
impl From<CompositionEvent> for UiEvent
source§fn from(obj: CompositionEvent) -> UiEvent
fn from(obj: CompositionEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<FocusEvent> for UiEvent
impl From<FocusEvent> for UiEvent
source§fn from(obj: FocusEvent) -> UiEvent
fn from(obj: FocusEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<InputEvent> for UiEvent
impl From<InputEvent> for UiEvent
source§fn from(obj: InputEvent) -> UiEvent
fn from(obj: InputEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<KeyboardEvent> for UiEvent
impl From<KeyboardEvent> for UiEvent
source§fn from(obj: KeyboardEvent) -> UiEvent
fn from(obj: KeyboardEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<MouseEvent> for UiEvent
impl From<MouseEvent> for UiEvent
source§fn from(obj: MouseEvent) -> UiEvent
fn from(obj: MouseEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<MouseScrollEvent> for UiEvent
impl From<MouseScrollEvent> for UiEvent
source§fn from(obj: MouseScrollEvent) -> UiEvent
fn from(obj: MouseScrollEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<PointerEvent> for UiEvent
impl From<PointerEvent> for UiEvent
source§fn from(obj: PointerEvent) -> UiEvent
fn from(obj: PointerEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<ScrollAreaEvent> for UiEvent
impl From<ScrollAreaEvent> for UiEvent
source§fn from(obj: ScrollAreaEvent) -> UiEvent
fn from(obj: ScrollAreaEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<TouchEvent> for UiEvent
impl From<TouchEvent> for UiEvent
source§fn from(obj: TouchEvent) -> UiEvent
fn from(obj: TouchEvent) -> UiEvent
Converts to this type from the input type.
source§impl From<WheelEvent> for UiEvent
impl From<WheelEvent> for UiEvent
source§fn from(obj: WheelEvent) -> UiEvent
fn from(obj: WheelEvent) -> UiEvent
Converts to this type from the input type.
source§impl FromWasmAbi for UiEvent
impl FromWasmAbi for UiEvent
source§impl<'a> IntoWasmAbi for &'a UiEvent
impl<'a> IntoWasmAbi for &'a UiEvent
source§impl IntoWasmAbi for UiEvent
impl IntoWasmAbi for UiEvent
source§impl JsCast for UiEvent
impl JsCast for UiEvent
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
Performs a dynamic
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,
Test whether this JS value is an instance of the type
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,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
Performs a dynamic cast (checked at runtime) of this value into the
target type
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Performs a zero-cost unchecked cast into the specified type. Read more
source§impl OptionFromWasmAbi for UiEvent
impl OptionFromWasmAbi for UiEvent
source§impl<'a> OptionIntoWasmAbi for &'a UiEvent
impl<'a> OptionIntoWasmAbi for &'a UiEvent
source§impl OptionIntoWasmAbi for UiEvent
impl OptionIntoWasmAbi for UiEvent
source§impl RefFromWasmAbi for UiEvent
impl RefFromWasmAbi for UiEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to
Self
are recovered from.§type Anchor = ManuallyDrop<UiEvent>
type Anchor = ManuallyDrop<UiEvent>
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 moreAuto Trait Implementations§
impl RefUnwindSafe for UiEvent
impl !Send for UiEvent
impl !Sync for UiEvent
impl Unpin for UiEvent
impl UnwindSafe for UiEvent
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
Same as
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
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more