zng_app::event

Trait 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.

Implementors§

source§

impl EventArgs for AccessClickArgs

source§

impl EventArgs for AccessDeinitedArgs

source§

impl EventArgs for AccessExpanderArgs

source§

impl EventArgs for AccessFocusArgs

source§

impl EventArgs for AccessFocusNavOriginArgs

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 ExitRequestedArgs

source§

impl EventArgs for ButtonArgs

source§

impl EventArgs for DeviceArgs

source§

impl EventArgs for KeyArgs

source§

impl EventArgs for MotionArgs

source§

impl EventArgs for MouseMotionArgs

source§

impl EventArgs for MouseWheelArgs

source§

impl EventArgs for TextArgs

source§

impl EventArgs for LowMemoryArgs

source§

impl EventArgs for RawAnimationsConfigChangedArgs

source§

impl EventArgs for RawAppDragEndedArgs

source§

impl EventArgs for RawAxisMotionArgs

source§

impl EventArgs for RawChromeConfigChangedArgs

source§

impl EventArgs for RawColorsConfigChangedArgs

source§

impl EventArgs for RawDragCancelledArgs

source§

impl EventArgs for RawDragDroppedArgs

source§

impl EventArgs for RawDragHoveredArgs

source§

impl EventArgs for RawDragMovedArgs

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 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 InteractivityChangedArgs

source§

impl EventArgs for TransformChangedArgs

source§

impl EventArgs for VisibilityChangedArgs

source§

impl EventArgs for WidgetInfoChangedArgs

source§

impl EventArgs for AppCommandArgs

source§

impl EventArgs for CommandArgs