[][src]Trait savory_html::events::EventsApi

pub trait EventsApi<Msg: 'static> {
    fn on_scroll<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_after_print<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_before_print<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_app_installed<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_seeked<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_seeking<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_play<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_playing<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_rate_change<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_can_play<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_can_play_through<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_reset<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_change<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_load<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_unload<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_abort<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_error<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_emptied<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_ended<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_full_screen_change<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_full_screen_error<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_invalid<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_offline<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_online<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_select_start<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_selectionchange<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_submit<EMsg: 'static>(
        self,
        handler: impl FnOnce(Event) -> EMsg + 'static + Clone
    ) -> Self;
fn on_blur<EMsg: 'static>(
        self,
        handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_focus<EMsg: 'static>(
        self,
        handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_focus_in<EMsg: 'static>(
        self,
        handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_focus_out<EMsg: 'static>(
        self,
        handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_aux_click<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_click<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_double_click<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_mouse_down<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_mouse_enter<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_mouse_leave<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_mouse_move<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_mouse_out<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_mouse_over<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_mouse_up<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_context_menu<EMsg: 'static>(
        self,
        handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_cancel<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_down<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_enter<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_leave<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_move<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_out<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_over<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_pointer_up<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_lost_pointer_capture<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_got_pointer_capture<EMsg: 'static>(
        self,
        handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_wheel<EMsg: 'static>(
        self,
        handler: impl FnOnce(WheelEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_before_input<EMsg: 'static>(
        self,
        handler: impl FnOnce(InputEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_input<EMsg: 'static>(
        self,
        handler: impl FnOnce(InputEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_key_down<EMsg: 'static>(
        self,
        handler: impl FnOnce(KeyboardEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_key_up<EMsg: 'static>(
        self,
        handler: impl FnOnce(KeyboardEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_composition_start<EMsg: 'static>(
        self,
        handler: impl FnOnce(CompositionEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_composition_update<EMsg: 'static>(
        self,
        handler: impl FnOnce(CompositionEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_composition_end<EMsg: 'static>(
        self,
        handler: impl FnOnce(CompositionEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_drag<EMsg: 'static>(
        self,
        handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_drag_end<EMsg: 'static>(
        self,
        handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_drag_enter<EMsg: 'static>(
        self,
        handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_drag_leave<EMsg: 'static>(
        self,
        handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_drag_over<EMsg: 'static>(
        self,
        handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_drag_start<EMsg: 'static>(
        self,
        handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_drop<EMsg: 'static>(
        self,
        handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_resize<EMsg: 'static>(
        self,
        handler: impl FnOnce(UiEvent) -> EMsg + 'static + Clone
    ) -> Self;
fn on_select<EMsg: 'static>(
        self,
        handler: impl FnOnce(UiEvent) -> EMsg + 'static + Clone
    ) -> Self; }

Required methods

fn on_scroll<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_after_print<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_before_print<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_app_installed<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_seeked<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_seeking<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_play<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_playing<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_rate_change<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_can_play<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_can_play_through<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_reset<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_change<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_load<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_unload<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_abort<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_error<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_emptied<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_ended<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_full_screen_change<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_full_screen_error<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_invalid<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_offline<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_online<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_select_start<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_selectionchange<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_submit<EMsg: 'static>(
    self,
    handler: impl FnOnce(Event) -> EMsg + 'static + Clone
) -> Self

fn on_blur<EMsg: 'static>(
    self,
    handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
) -> Self

fn on_focus<EMsg: 'static>(
    self,
    handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
) -> Self

fn on_focus_in<EMsg: 'static>(
    self,
    handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
) -> Self

fn on_focus_out<EMsg: 'static>(
    self,
    handler: impl FnOnce(FocusEvent) -> EMsg + 'static + Clone
) -> Self

fn on_aux_click<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_click<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_double_click<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_mouse_down<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_mouse_enter<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_mouse_leave<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_mouse_move<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_mouse_out<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_mouse_over<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_mouse_up<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_context_menu<EMsg: 'static>(
    self,
    handler: impl FnOnce(MouseEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_cancel<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_down<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_enter<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_leave<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_move<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_out<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_over<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_pointer_up<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_lost_pointer_capture<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_got_pointer_capture<EMsg: 'static>(
    self,
    handler: impl FnOnce(PointerEvent) -> EMsg + 'static + Clone
) -> Self

fn on_wheel<EMsg: 'static>(
    self,
    handler: impl FnOnce(WheelEvent) -> EMsg + 'static + Clone
) -> Self

fn on_before_input<EMsg: 'static>(
    self,
    handler: impl FnOnce(InputEvent) -> EMsg + 'static + Clone
) -> Self

fn on_input<EMsg: 'static>(
    self,
    handler: impl FnOnce(InputEvent) -> EMsg + 'static + Clone
) -> Self

fn on_key_down<EMsg: 'static>(
    self,
    handler: impl FnOnce(KeyboardEvent) -> EMsg + 'static + Clone
) -> Self

fn on_key_up<EMsg: 'static>(
    self,
    handler: impl FnOnce(KeyboardEvent) -> EMsg + 'static + Clone
) -> Self

fn on_composition_start<EMsg: 'static>(
    self,
    handler: impl FnOnce(CompositionEvent) -> EMsg + 'static + Clone
) -> Self

fn on_composition_update<EMsg: 'static>(
    self,
    handler: impl FnOnce(CompositionEvent) -> EMsg + 'static + Clone
) -> Self

fn on_composition_end<EMsg: 'static>(
    self,
    handler: impl FnOnce(CompositionEvent) -> EMsg + 'static + Clone
) -> Self

fn on_drag<EMsg: 'static>(
    self,
    handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
) -> Self

fn on_drag_end<EMsg: 'static>(
    self,
    handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
) -> Self

fn on_drag_enter<EMsg: 'static>(
    self,
    handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
) -> Self

fn on_drag_leave<EMsg: 'static>(
    self,
    handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
) -> Self

fn on_drag_over<EMsg: 'static>(
    self,
    handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
) -> Self

fn on_drag_start<EMsg: 'static>(
    self,
    handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
) -> Self

fn on_drop<EMsg: 'static>(
    self,
    handler: impl FnOnce(DragEvent) -> EMsg + 'static + Clone
) -> Self

fn on_resize<EMsg: 'static>(
    self,
    handler: impl FnOnce(UiEvent) -> EMsg + 'static + Clone
) -> Self

fn on_select<EMsg: 'static>(
    self,
    handler: impl FnOnce(UiEvent) -> EMsg + 'static + Clone
) -> Self

Loading content...

Implementors

impl<Msg: 'static> EventsApi<Msg> for Node<Msg>[src]

impl<Msg: 'static> EventsApi<Msg> for El<Msg>[src]

Loading content...