[][src]Enum smithy::types::UiEvent

pub enum UiEvent {
    OnCopy(ClipboardEvent),
    OnCut(ClipboardEvent),
    OnPaste(ClipboardEvent),
    OnKeyDown(KeyboardEvent),
    OnKeyPress(KeyboardEvent),
    OnKeyUp(KeyboardEvent),
    OnFocus(FocusEvent),
    OnBlur(FocusEvent),
    OnChange(InputEvent),
    OnInput(InputEvent),
    OnInvalid(InputEvent),
    OnSubmit(InputEvent),
    OnClick(MouseEvent),
    OnContextMenu(MouseEvent),
    OnDblClick(MouseEvent),
    OnDrag(MouseEvent),
    OnDragEnd(MouseEvent),
    OnDragEnter(MouseEvent),
    OnDragExit(MouseEvent),
    OnDragLeave(MouseEvent),
    OnDragOver(MouseEvent),
    OnDragStart(MouseEvent),
    OnDrop(MouseEvent),
    OnMouseDown(MouseEvent),
    OnMouseEnter(MouseEvent),
    OnMouseLeave(MouseEvent),
    OnMouseMove(MouseEvent),
    OnMouseOver(MouseEvent),
    OnMouseOut(MouseEvent),
    OnMouseUp(MouseEvent),
    OnPointerDown(PointerEvent),
    OnPointerMove(PointerEvent),
    OnPointerUp(PointerEvent),
    OnPointerCancel(PointerEvent),
    OnGotPointerCapture(PointerEvent),
    OnLostPointerCapture(PointerEvent),
    OnPointerEnter(PointerEvent),
    OnPointerLeave(PointerEvent),
    OnPointerOver(PointerEvent),
    OnPointerOut(PointerEvent),
    OnSelect(UiEvent),
    OnTouchCancel(TouchEvent),
    OnTouchEnd(TouchEvent),
    OnTouchMove(TouchEvent),
    OnTouchStart(TouchEvent),
    OnScroll(ScrollAreaEvent),
    OnLoad(UiEvent),
    OnError(UiEvent),
    OnAnimationStart(AnimationEvent),
    OnAnimationEnd(AnimationEvent),
    OnAnimationIteration(AnimationEvent),
    OnTransitionEnd(TransitionEvent),
    OnToggle(UiEvent),
    OnTest(bool),
}

An enum of events that a DOM element can potentially handle.

These are included on dom elements as follows:

smd!(
  <some-dom-node ui_event={ui_event_handler} />
)

e.g.

smd!(
  <div on_click={|e: web_sys::MouseEvent| { /* ... */ }} />
)

Variants

OnCopy(ClipboardEvent)

Usage:

on_copy={|e: web_sys::ClipboardEvent| { /* ... */ }}

Requires the clipboard-events feature.

OnCut(ClipboardEvent)

Usage:

on_cut={|e: web_sys::ClipboardEvent| { /* ... */ }}

Requires the clipboard-events feature.

OnPaste(ClipboardEvent)

Usage:

on_paste={|e: web_sys::ClipboardEvent| { /* ... */ }}

Requires the clipboard-events feature.

OnKeyDown(KeyboardEvent)

Usage:

on_key_down={|e: web_sys::KeyboardEvent| { /* ... */ }}

Requires the keyboard-events feature.

OnKeyPress(KeyboardEvent)

Usage:

on_key_press={|e: web_sys::KeyboardEvent| { /* ... */ }}

Requires the keyboard-events feature.

OnKeyUp(KeyboardEvent)

Usage:

on_key_up={|e: web_sys::KeyboardEvent| { /* ... */ }}

Requires the keyboard-events feature.

OnFocus(FocusEvent)

Usage:

on_focus={|e: web_sys::FocusEvent| { /* ... */ }}

Requires the focus-events feature.

OnBlur(FocusEvent)

Usage:

on_blur={|e: web_sys::FocusEvent| { /* ... */ }}

Requires the focus-events feature.

OnChange(InputEvent)

Usage:

on_change={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

OnInput(InputEvent)

Usage:

on_input={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

OnInvalid(InputEvent)

Usage:

on_invalid={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

OnSubmit(InputEvent)

Usage:

on_submit={|e: web_sys::InputEvent| { /* ... */ }}

Requires the input-events feature.

OnClick(MouseEvent)

Usage:

on_click={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnContextMenu(MouseEvent)

Usage:

on_context_menu={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDblClick(MouseEvent)

Usage:

on_dbl_cilck={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDrag(MouseEvent)

Usage:

on_drag={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDragEnd(MouseEvent)

Usage:

on_drag_end={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDragEnter(MouseEvent)

Usage:

on_drag_enter={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDragExit(MouseEvent)

Usage:

on_drag_exit={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDragLeave(MouseEvent)

Usage:

on_drag_leave={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDragOver(MouseEvent)

Usage:

on_drag_over={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDragStart(MouseEvent)

Usage:

on_drag_start={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnDrop(MouseEvent)

Usage:

on_drop={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnMouseDown(MouseEvent)

Usage:

on_mouse_down={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnMouseEnter(MouseEvent)

Usage:

on_mouse_enter={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnMouseLeave(MouseEvent)

Usage:

on_mouse_leave={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnMouseMove(MouseEvent)

Usage:

on_move_move={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnMouseOver(MouseEvent)

Usage:

on_mouse_over={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnMouseOut(MouseEvent)

Usage:

on_mouse_out={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnMouseUp(MouseEvent)

Usage:

on_mouse_up={|e: web_sys::MouseEvent| { /* ... */ }}

Requires the mouse-events feature.

OnPointerDown(PointerEvent)

Usage:

on_pointer_down={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnPointerMove(PointerEvent)

Usage:

on_pointer_move={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnPointerUp(PointerEvent)

Usage:

on_pointer_up={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnPointerCancel(PointerEvent)

Usage:

on_pointer_cancel={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnGotPointerCapture(PointerEvent)

Usage:

on_got_pointer_capture={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnLostPointerCapture(PointerEvent)

Usage:

on_lost_pointer_capture={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnPointerEnter(PointerEvent)

Usage:

on_pointer_enter={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnPointerLeave(PointerEvent)

Usage:

on_pointer_leave={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnPointerOver(PointerEvent)

Usage:

on_pointer_over={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnPointerOut(PointerEvent)

Usage:

on_pointer_out={|e: web_sys::PointerEvent| { /* ... */ }}

Requires the pointer-events feature.

OnSelect(UiEvent)

Usage:

on_select={|e: web_sys::UiEvent| { /* ... */ }}

Requires the select-events feature.

OnTouchCancel(TouchEvent)

Usage:

on_touch_cancel={|e: web_sys::TouchEvent| { /* ... */ }}

Requires the touch-events feature.

OnTouchEnd(TouchEvent)

Usage:

on_touch_end={|e: web_sys::TouchEvent| { /* ... */ }}

Requires the touch-events feature.

OnTouchMove(TouchEvent)

Usage:

on_touch_move={|e: web_sys::TouchEvent| { /* ... */ }}

Requires the touch-events feature.

OnTouchStart(TouchEvent)

Usage:

on_touch_start={|e: web_sys::TouchEvent| { /* ... */ }}

Requires the touch-events feature.

OnScroll(ScrollAreaEvent)

Usage:

on_scroll={|e: web_sys::ScrollAreaEvent| { /* ... */ }}

Requires the scroll-events feature.

OnLoad(UiEvent)

Usage:

on_load={|e: web_sys::UiEvent| { /* ... */ }}

Requires the image-events feature.

OnError(UiEvent)

Usage:

on_error={|e: web_sys::UiEvent| { /* ... */ }}

Requires the image-events feature.

OnAnimationStart(AnimationEvent)

Usage:

on_animation_start={|e: web_sys::AnimationEvent| { /* ... */ }}

Requires the animation-events feature.

OnAnimationEnd(AnimationEvent)

Usage:

on_animation_end={|e: web_sys::AnimationEvent| { /* ... */ }}

Requires the animation-events feature.

OnAnimationIteration(AnimationEvent)

Usage:

on_animation_iteration={|e: web_sys::AnimationEvent| { /* ... */ }}

Requires the animation-events feature.

OnTransitionEnd(TransitionEvent)

Usage:

on_transition_end={|e: web_sys::TransitionEvent| { /* ... */ }}

Requires the transition-events feature.

OnToggle(UiEvent)

Usage:

on_toggle={|e: web_sys::UiEvent| { /* ... */ }}

Requires the toggle-events feature.

OnTest(bool)

An event used for testing.

Auto Trait Implementations

impl !Send for UiEvent

impl Unpin for UiEvent

impl !Sync for UiEvent

impl UnwindSafe for UiEvent

impl RefUnwindSafe for UiEvent

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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