pub trait DomEvents: AsElement {
Show 99 methods
// Provided methods
fn add_on_click(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_click(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_click(self, f: impl FnMut(&Self, MouseEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_context_menu(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_context_menu(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_context_menu(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_dbl_click(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_dbl_click(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_dbl_click(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_mouse_down(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_mouse_down(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_mouse_down(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_mouse_enter(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_mouse_enter(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_mouse_enter(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_mouse_leave(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_mouse_leave(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_mouse_leave(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_mouse_move(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_mouse_move(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_mouse_move(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_mouse_over(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_mouse_over(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_mouse_over(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_mouse_out(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_mouse_out(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_mouse_out(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_mouse_up(&self, f: impl FnMut(MouseEvent) + 'static) { ... }
fn on_mouse_up(self, f: impl FnMut(MouseEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_mouse_up(
self,
f: impl FnMut(&Self, MouseEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_key_down(&self, f: impl FnMut(KeyboardEvent) + 'static) { ... }
fn on_key_down(self, f: impl FnMut(KeyboardEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_key_down(
self,
f: impl FnMut(&Self, KeyboardEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_key_up(&self, f: impl FnMut(KeyboardEvent) + 'static) { ... }
fn on_key_up(self, f: impl FnMut(KeyboardEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_key_up(
self,
f: impl FnMut(&Self, KeyboardEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_change(&self, f: impl FnMut(Event) + 'static) { ... }
fn on_change(self, f: impl FnMut(Event) + 'static) -> Self
where Self: Sized { ... }
fn with_on_change(self, f: impl FnMut(&Self, Event) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_scroll(&self, f: impl FnMut(Event) + 'static) { ... }
fn on_scroll(self, f: impl FnMut(Event) + 'static) -> Self
where Self: Sized { ... }
fn with_on_scroll(self, f: impl FnMut(&Self, Event) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_resize(&self, f: impl FnMut(UiEvent) + 'static) { ... }
fn on_resize(self, f: impl FnMut(UiEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_resize(self, f: impl FnMut(&Self, UiEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_blur(&self, f: impl FnMut(FocusEvent) + 'static) { ... }
fn on_blur(self, f: impl FnMut(FocusEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_blur(self, f: impl FnMut(&Self, FocusEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_focus(&self, f: impl FnMut(FocusEvent) + 'static) { ... }
fn on_focus(self, f: impl FnMut(FocusEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_focus(self, f: impl FnMut(&Self, FocusEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_touch_start(&self, f: impl FnMut(TouchEvent) + 'static) { ... }
fn on_touch_start(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_touch_start(
self,
f: impl FnMut(&Self, TouchEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_touch_end(&self, f: impl FnMut(TouchEvent) + 'static) { ... }
fn on_touch_end(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_touch_end(
self,
f: impl FnMut(&Self, TouchEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_touch_move(&self, f: impl FnMut(TouchEvent) + 'static) { ... }
fn on_touch_move(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_touch_move(
self,
f: impl FnMut(&Self, TouchEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_touch_cancel(&self, f: impl FnMut(TouchEvent) + 'static) { ... }
fn on_touch_cancel(self, f: impl FnMut(TouchEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_touch_cancel(
self,
f: impl FnMut(&Self, TouchEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_wheel(&self, f: impl FnMut(WheelEvent) + 'static) { ... }
fn on_wheel(self, f: impl FnMut(WheelEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_wheel(self, f: impl FnMut(&Self, WheelEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_load(&self, f: impl FnMut(Event) + 'static) { ... }
fn on_load(self, f: impl FnMut(Event) + 'static) -> Self
where Self: Sized { ... }
fn with_on_load(self, f: impl FnMut(&Self, Event) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_can_play(&self, f: impl FnMut(Event) + 'static) { ... }
fn on_can_play(self, f: impl FnMut(Event) + 'static) -> Self
where Self: Sized { ... }
fn with_on_can_play(self, f: impl FnMut(&Self, Event) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_drag(&self, f: impl FnMut(DragEvent) + 'static) { ... }
fn on_drag(self, f: impl FnMut(DragEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_drag(self, f: impl FnMut(&Self, DragEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_submit(&self, f: impl FnMut(SubmitEvent) + 'static) { ... }
fn on_submit(self, f: impl FnMut(SubmitEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_submit(self, f: impl FnMut(&Self, SubmitEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_input(&self, f: impl FnMut(InputEvent) + 'static) { ... }
fn on_input(self, f: impl FnMut(InputEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_input(self, f: impl FnMut(&Self, InputEvent) + 'static) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_animation_cancel(&self, f: impl FnMut(AnimationEvent) + 'static) { ... }
fn on_animation_cancel(
self,
f: impl FnMut(AnimationEvent) + 'static
) -> Self
where Self: Sized { ... }
fn with_on_animation_cancel(
self,
f: impl FnMut(&Self, AnimationEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_animation_end(&self, f: impl FnMut(AnimationEvent) + 'static) { ... }
fn on_animation_end(self, f: impl FnMut(AnimationEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_animation_end(
self,
f: impl FnMut(&Self, AnimationEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_animation_iteration(
&self,
f: impl FnMut(AnimationEvent) + 'static
) { ... }
fn on_animation_iteration(
self,
f: impl FnMut(AnimationEvent) + 'static
) -> Self
where Self: Sized { ... }
fn with_on_animation_iteration(
self,
f: impl FnMut(&Self, AnimationEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_animation_start(&self, f: impl FnMut(AnimationEvent) + 'static) { ... }
fn on_animation_start(self, f: impl FnMut(AnimationEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_animation_start(
self,
f: impl FnMut(&Self, AnimationEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_pop_state(&self, f: impl FnMut(PopStateEvent) + 'static) { ... }
fn on_pop_state(self, f: impl FnMut(PopStateEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_pop_state(
self,
f: impl FnMut(&Self, PopStateEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
fn add_on_hash_change(&self, f: impl FnMut(HashChangeEvent) + 'static) { ... }
fn on_hash_change(self, f: impl FnMut(HashChangeEvent) + 'static) -> Self
where Self: Sized { ... }
fn with_on_hash_change(
self,
f: impl FnMut(&Self, HashChangeEvent) + 'static
) -> Self
where Self: Sized + Clone + 'static { ... }
}