zng_app::event

Trait AnyEventArgs

source
pub trait AnyEventArgs:
    Debug
    + Send
    + Sync
    + Any {
    // Required methods
    fn clone_any(&self) -> Box<dyn AnyEventArgs>;
    fn as_any(&self) -> &dyn Any;
    fn timestamp(&self) -> DInstant;
    fn delivery_list(&self, list: &mut UpdateDeliveryList);
    fn propagation(&self) -> &EventPropagationHandle;
}
Expand description

Methods of EventArgs that are object safe.

Required Methods§

source

fn clone_any(&self) -> Box<dyn AnyEventArgs>

Clone the event into a type erased box.

source

fn as_any(&self) -> &dyn Any

Access to dyn Any methods.

source

fn timestamp(&self) -> DInstant

Gets the instant this event happened.

source

fn delivery_list(&self, list: &mut UpdateDeliveryList)

Insert all targets of this event on the UpdateDeliveryList.

source

fn propagation(&self) -> &EventPropagationHandle

Propagation handle associated with this event instance.

Cloned arguments share the same handle, some arguments may also share the handle of another event if they share the same cause.

Implementors§

source§

impl AnyEventArgs for AccessClickArgs

source§

impl AnyEventArgs for AccessDeinitedArgs

source§

impl AnyEventArgs for AccessExpanderArgs

source§

impl AnyEventArgs for AccessFocusArgs

source§

impl AnyEventArgs for AccessFocusNavOriginArgs

source§

impl AnyEventArgs for AccessIncrementArgs

source§

impl AnyEventArgs for AccessInitedArgs

source§

impl AnyEventArgs for AccessNumberArgs

source§

impl AnyEventArgs for AccessScrollArgs

source§

impl AnyEventArgs for AccessSelectionArgs

source§

impl AnyEventArgs for AccessTextArgs

source§

impl AnyEventArgs for AccessToolTipArgs

source§

impl AnyEventArgs for ExitRequestedArgs

source§

impl AnyEventArgs for ButtonArgs

source§

impl AnyEventArgs for DeviceArgs

source§

impl AnyEventArgs for KeyArgs

source§

impl AnyEventArgs for MotionArgs

source§

impl AnyEventArgs for MouseMotionArgs

source§

impl AnyEventArgs for MouseWheelArgs

source§

impl AnyEventArgs for TextArgs

source§

impl AnyEventArgs for LowMemoryArgs

source§

impl AnyEventArgs for RawAnimationsConfigChangedArgs

source§

impl AnyEventArgs for RawAppDragEndedArgs

source§

impl AnyEventArgs for RawAxisMotionArgs

source§

impl AnyEventArgs for RawChromeConfigChangedArgs

source§

impl AnyEventArgs for RawColorsConfigChangedArgs

source§

impl AnyEventArgs for RawDragCancelledArgs

source§

impl AnyEventArgs for RawDragDroppedArgs

source§

impl AnyEventArgs for RawDragHoveredArgs

source§

impl AnyEventArgs for RawDragMovedArgs

source§

impl AnyEventArgs for RawExtensionEventArgs

source§

impl AnyEventArgs for RawFontAaChangedArgs

source§

impl AnyEventArgs for RawFontChangedArgs

source§

impl AnyEventArgs for RawFrameImageReadyArgs

source§

impl AnyEventArgs for RawFrameRenderedArgs

source§

impl AnyEventArgs for RawHeadlessOpenArgs

source§

impl AnyEventArgs for RawImageArgs

source§

impl AnyEventArgs for RawImeArgs

source§

impl AnyEventArgs for RawKeyInputArgs

source§

impl AnyEventArgs for RawKeyRepeatConfigChangedArgs

source§

impl AnyEventArgs for RawLocaleChangedArgs

source§

impl AnyEventArgs for RawMonitorsChangedArgs

source§

impl AnyEventArgs for RawMouseArgs

source§

impl AnyEventArgs for RawMouseInputArgs

source§

impl AnyEventArgs for RawMouseMovedArgs

source§

impl AnyEventArgs for RawMouseWheelArgs

source§

impl AnyEventArgs for RawMultiClickConfigChangedArgs

source§

impl AnyEventArgs for RawScaleFactorChangedArgs

source§

impl AnyEventArgs for RawTouchArgs

source§

impl AnyEventArgs for RawTouchConfigChangedArgs

source§

impl AnyEventArgs for RawTouchpadPressureArgs

source§

impl AnyEventArgs for RawWindowChangedArgs

source§

impl AnyEventArgs for RawWindowCloseArgs

source§

impl AnyEventArgs for RawWindowCloseRequestedArgs

source§

impl AnyEventArgs for RawWindowFocusArgs

source§

impl AnyEventArgs for RawWindowOpenArgs

source§

impl AnyEventArgs for RawWindowOrHeadlessOpenErrorArgs

source§

impl AnyEventArgs for ViewProcessInitedArgs

source§

impl AnyEventArgs for ViewProcessSuspendedArgs

source§

impl AnyEventArgs for InteractivityChangedArgs

source§

impl AnyEventArgs for TransformChangedArgs

source§

impl AnyEventArgs for VisibilityChangedArgs

source§

impl AnyEventArgs for WidgetInfoChangedArgs

source§

impl AnyEventArgs for AppCommandArgs

source§

impl AnyEventArgs for CommandArgs