Trait zng::event::EventArgs

source ·
pub trait EventArgs: AnyEventArgs + Clone {
    // Provided method
    fn handle<F, R>(&self, handler: F) -> Option<R>
       where F: FnOnce(&Self) -> R { ... }
}
Expand description

Event<A> arguments.

See AnyEventArgs for the object safe part of event arguments.

Provided Methods§

source

fn handle<F, R>(&self, handler: F) -> Option<R>
where F: FnOnce(&Self) -> R,

Calls handler and stops propagation if propagation is still allowed.

Returns the handler result if it was called.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl EventArgs for HotReloadArgs

source§

impl EventArgs for WindowFocusChangedArgs

source§

impl EventArgs for DialogCloseCanceledArgs

Implementors§

source§

impl EventArgs for AccessDeinitedArgs

source§

impl EventArgs for AccessFocusArgs

source§

impl EventArgs for AccessFocusNavOriginArgs

source§

impl EventArgs for RawAnimationsConfigChangedArgs

source§

impl EventArgs for RawAxisMotionArgs

source§

impl EventArgs for RawChromeConfigChangedArgs

source§

impl EventArgs for RawColorsConfigChangedArgs

source§

impl EventArgs for RawDroppedFileArgs

source§

impl EventArgs for RawExtensionEventArgs

source§

impl EventArgs for RawFontAaChangedArgs

source§

impl EventArgs for RawFontChangedArgs

source§

impl EventArgs for RawFrameImageReadyArgs

source§

impl EventArgs for RawFrameRenderedArgs

source§

impl EventArgs for RawHeadlessOpenArgs

source§

impl EventArgs for RawHoveredFileArgs

source§

impl EventArgs for RawHoveredFileCancelledArgs

source§

impl EventArgs for RawImageArgs

source§

impl EventArgs for RawImeArgs

source§

impl EventArgs for RawKeyInputArgs

source§

impl EventArgs for RawKeyRepeatConfigChangedArgs

source§

impl EventArgs for RawLocaleChangedArgs

source§

impl EventArgs for RawMonitorsChangedArgs

source§

impl EventArgs for RawMouseArgs

source§

impl EventArgs for RawMouseInputArgs

source§

impl EventArgs for RawMouseMovedArgs

source§

impl EventArgs for RawMouseWheelArgs

source§

impl EventArgs for RawMultiClickConfigChangedArgs

source§

impl EventArgs for RawScaleFactorChangedArgs

source§

impl EventArgs for RawTouchArgs

source§

impl EventArgs for RawTouchConfigChangedArgs

source§

impl EventArgs for RawTouchpadPressureArgs

source§

impl EventArgs for RawWindowChangedArgs

source§

impl EventArgs for RawWindowCloseArgs

source§

impl EventArgs for RawWindowCloseRequestedArgs

source§

impl EventArgs for RawWindowFocusArgs

source§

impl EventArgs for RawWindowOpenArgs

source§

impl EventArgs for RawWindowOrHeadlessOpenErrorArgs

source§

impl EventArgs for ViewProcessInitedArgs

source§

impl EventArgs for ViewProcessSuspendedArgs

source§

impl EventArgs for AccessClickArgs

source§

impl EventArgs for AccessExpanderArgs

source§

impl EventArgs for AccessIncrementArgs

source§

impl EventArgs for AccessInitedArgs

source§

impl EventArgs for AccessNumberArgs

source§

impl EventArgs for AccessScrollArgs

source§

impl EventArgs for AccessSelectionArgs

source§

impl EventArgs for AccessTextArgs

source§

impl EventArgs for AccessToolTipArgs

source§

impl EventArgs for DeviceArgs

source§

impl EventArgs for MotionArgs

source§

impl EventArgs for AppInstanceArgs

source§

impl EventArgs for ExitRequestedArgs

source§

impl EventArgs for LowMemoryArgs

source§

impl EventArgs for FocusChangedArgs

source§

impl EventArgs for ReturnFocusChangedArgs

source§

impl EventArgs for FontChangedArgs

source§

impl EventArgs for FsChangesArgs

source§

impl EventArgs for ClickArgs

source§

impl EventArgs for ShortcutArgs

source§

impl EventArgs for KeyArgs

source§

impl EventArgs for TextArgs

source§

impl EventArgs for KeyInputArgs

source§

impl EventArgs for ModifiersChangedArgs

source§

impl EventArgs for LinkArgs

source§

impl EventArgs for ButtonArgs

source§

impl EventArgs for MouseMotionArgs

source§

impl EventArgs for zng::mouse::raw_device_events::MouseWheelArgs

source§

impl EventArgs for MouseClickArgs

source§

impl EventArgs for MouseHoverArgs

source§

impl EventArgs for MouseInputArgs

source§

impl EventArgs for MouseMoveArgs

source§

impl EventArgs for zng::mouse::MouseWheelArgs

source§

impl EventArgs for PointerCaptureArgs

source§

impl EventArgs for PopupCloseRequestedArgs

source§

impl EventArgs for TouchInputArgs

source§

impl EventArgs for TouchLongPressArgs

source§

impl EventArgs for TouchMoveArgs

source§

impl EventArgs for TouchTapArgs

source§

impl EventArgs for TouchTransformArgs

source§

impl EventArgs for TouchedArgs

source§

impl EventArgs for InteractivityChangedArgs

source§

impl EventArgs for TransformChangedArgs

source§

impl EventArgs for VisibilityChangedArgs

source§

impl EventArgs for WidgetInfoChangedArgs

source§

impl EventArgs for FrameImageReadyArgs

source§

impl EventArgs for ImeArgs

source§

impl EventArgs for MonitorsChangedArgs

source§

impl EventArgs for WindowChangedArgs

source§

impl EventArgs for WindowCloseArgs

source§

impl EventArgs for WindowCloseRequestedArgs

source§

impl EventArgs for WindowOpenArgs

source§

impl EventArgs for AppCommandArgs

source§

impl EventArgs for CommandArgs