Trait silkenweb::elements::ElementEvents
source · pub trait ElementEvents: Element {
Show 52 methods
// Provided methods
fn on_animationcancel(
self,
f: impl FnMut(AnimationEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_animationend(
self,
f: impl FnMut(AnimationEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_animationiteration(
self,
f: impl FnMut(AnimationEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_animationstart(
self,
f: impl FnMut(AnimationEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_auxclick(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_blur(
self,
f: impl FnMut(FocusEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_click(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_compositionend(
self,
f: impl FnMut(CompositionEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_compositionstart(
self,
f: impl FnMut(CompositionEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_compositionupdate(
self,
f: impl FnMut(CompositionEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_contextmenu(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_dblclick(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_focusin(
self,
f: impl FnMut(FocusEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_focusout(
self,
f: impl FnMut(FocusEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_focus(
self,
f: impl FnMut(FocusEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_fullscreenchange(
self,
f: impl FnMut(Event, Self::DomElement) + 'static
) -> Self { ... }
fn on_fullscreenerror(
self,
f: impl FnMut(Event, Self::DomElement) + 'static
) -> Self { ... }
fn on_gotpointercapture(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_keydown(
self,
f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_keyup(
self,
f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_lostpointercapture(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_mousedown(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_mouseenter(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_mouseleave(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_mousemove(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_mouseout(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_mouseover(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_mouseup(
self,
f: impl FnMut(MouseEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointercancel(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointerdown(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointerenter(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointerleave(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointermove(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointerout(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointerover(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointerrawupdate(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_pointerup(
self,
f: impl FnMut(PointerEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_transitioncancel(
self,
f: impl FnMut(TransitionEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_transitionend(
self,
f: impl FnMut(TransitionEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_transitionrun(
self,
f: impl FnMut(TransitionEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_transitionstart(
self,
f: impl FnMut(TransitionEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_scroll(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self { ... }
fn on_scrollend(
self,
f: impl FnMut(Event, Self::DomElement) + 'static
) -> Self { ... }
fn on_securitypolicyviolation(
self,
f: impl FnMut(SecurityPolicyViolationEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_touchcancel(
self,
f: impl FnMut(TouchEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_touchend(
self,
f: impl FnMut(TouchEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_touchmove(
self,
f: impl FnMut(TouchEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_touchstart(
self,
f: impl FnMut(TouchEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_wheel(
self,
f: impl FnMut(WheelEvent, Self::DomElement) + 'static
) -> Self { ... }
fn on_copy(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self { ... }
fn on_cut(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self { ... }
fn on_paste(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self { ... }
}
Expand description
Events common to all elements
Provided Methods§
fn on_animationcancel( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_animationend( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_animationiteration( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_animationstart( self, f: impl FnMut(AnimationEvent, Self::DomElement) + 'static ) -> Self
fn on_auxclick( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_blur(self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static) -> Self
fn on_click(self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static) -> Self
fn on_compositionend( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self
fn on_compositionstart( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self
fn on_compositionupdate( self, f: impl FnMut(CompositionEvent, Self::DomElement) + 'static ) -> Self
fn on_dblclick( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_focusin( self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static ) -> Self
fn on_focusout( self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static ) -> Self
fn on_focus(self, f: impl FnMut(FocusEvent, Self::DomElement) + 'static) -> Self
fn on_fullscreenchange( self, f: impl FnMut(Event, Self::DomElement) + 'static ) -> Self
fn on_fullscreenerror( self, f: impl FnMut(Event, Self::DomElement) + 'static ) -> Self
fn on_gotpointercapture( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_keydown( self, f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static ) -> Self
fn on_keyup( self, f: impl FnMut(KeyboardEvent, Self::DomElement) + 'static ) -> Self
fn on_lostpointercapture( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_mousedown( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseenter( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseleave( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mousemove( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseout( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseover( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_mouseup( self, f: impl FnMut(MouseEvent, Self::DomElement) + 'static ) -> Self
fn on_pointercancel( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerdown( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerenter( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerleave( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointermove( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerout( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerover( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerrawupdate( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_pointerup( self, f: impl FnMut(PointerEvent, Self::DomElement) + 'static ) -> Self
fn on_transitioncancel( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_transitionend( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_transitionrun( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_transitionstart( self, f: impl FnMut(TransitionEvent, Self::DomElement) + 'static ) -> Self
fn on_scroll(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_scrollend(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_securitypolicyviolation( self, f: impl FnMut(SecurityPolicyViolationEvent, Self::DomElement) + 'static ) -> Self
fn on_touchcancel( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_touchend( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_touchmove( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_touchstart( self, f: impl FnMut(TouchEvent, Self::DomElement) + 'static ) -> Self
fn on_wheel(self, f: impl FnMut(WheelEvent, Self::DomElement) + 'static) -> Self
fn on_copy(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_cut(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
fn on_paste(self, f: impl FnMut(Event, Self::DomElement) + 'static) -> Self
Object Safety§
This trait is not object safe.