Trait zng::event::AnyEventArgs

source ·
pub trait AnyEventArgs:
    Debug
    + Send
    + Sync
    + Any {
    // Required methods
    fn clone_any(&self) -> Box<dyn AnyEventArgs>;
    fn as_any(&self) -> &(dyn Any + 'static);
    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 + 'static)

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.

Implementations on Foreign Types§

source§

impl AnyEventArgs for HotReloadArgs

source§

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

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn timestamp(&self) -> DInstant

source§

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

source§

fn propagation(&self) -> &EventPropagationHandle

source§

impl AnyEventArgs for WindowFocusChangedArgs

source§

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

Broadcast to all widgets.

source§

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

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn timestamp(&self) -> DInstant

source§

fn propagation(&self) -> &EventPropagationHandle

source§

impl AnyEventArgs for DialogCloseCanceledArgs

source§

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

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn timestamp(&self) -> DInstant

source§

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

source§

fn propagation(&self) -> &EventPropagationHandle

Implementors§

source§

impl AnyEventArgs for AccessDeinitedArgs

source§

impl AnyEventArgs for AccessFocusArgs

source§

impl AnyEventArgs for AccessFocusNavOriginArgs

source§

impl AnyEventArgs for RawAnimationsConfigChangedArgs

source§

impl AnyEventArgs for RawAxisMotionArgs

source§

impl AnyEventArgs for RawChromeConfigChangedArgs

source§

impl AnyEventArgs for RawColorsConfigChangedArgs

source§

impl AnyEventArgs for RawDroppedFileArgs

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 RawHoveredFileArgs

source§

impl AnyEventArgs for RawHoveredFileCancelledArgs

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 AccessClickArgs

source§

impl AnyEventArgs for AccessExpanderArgs

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 DeviceArgs

source§

impl AnyEventArgs for MotionArgs

source§

impl AnyEventArgs for AppInstanceArgs

source§

impl AnyEventArgs for ExitRequestedArgs

source§

impl AnyEventArgs for LowMemoryArgs

source§

impl AnyEventArgs for FocusChangedArgs

source§

impl AnyEventArgs for ReturnFocusChangedArgs

source§

impl AnyEventArgs for FontChangedArgs

source§

impl AnyEventArgs for FsChangesArgs

source§

impl AnyEventArgs for ClickArgs

source§

impl AnyEventArgs for ShortcutArgs

source§

impl AnyEventArgs for KeyArgs

source§

impl AnyEventArgs for TextArgs

source§

impl AnyEventArgs for KeyInputArgs

source§

impl AnyEventArgs for ModifiersChangedArgs

source§

impl AnyEventArgs for LinkArgs

source§

impl AnyEventArgs for ButtonArgs

source§

impl AnyEventArgs for MouseMotionArgs

source§

impl AnyEventArgs for zng::mouse::raw_device_events::MouseWheelArgs

source§

impl AnyEventArgs for MouseClickArgs

source§

impl AnyEventArgs for MouseHoverArgs

source§

impl AnyEventArgs for MouseInputArgs

source§

impl AnyEventArgs for MouseMoveArgs

source§

impl AnyEventArgs for zng::mouse::MouseWheelArgs

source§

impl AnyEventArgs for PointerCaptureArgs

source§

impl AnyEventArgs for PopupCloseRequestedArgs

source§

impl AnyEventArgs for TouchInputArgs

source§

impl AnyEventArgs for TouchLongPressArgs

source§

impl AnyEventArgs for TouchMoveArgs

source§

impl AnyEventArgs for TouchTapArgs

source§

impl AnyEventArgs for TouchTransformArgs

source§

impl AnyEventArgs for TouchedArgs

source§

impl AnyEventArgs for InteractivityChangedArgs

source§

impl AnyEventArgs for TransformChangedArgs

source§

impl AnyEventArgs for VisibilityChangedArgs

source§

impl AnyEventArgs for WidgetInfoChangedArgs

source§

impl AnyEventArgs for FrameImageReadyArgs

source§

impl AnyEventArgs for ImeArgs

source§

impl AnyEventArgs for MonitorsChangedArgs

source§

impl AnyEventArgs for WindowChangedArgs

source§

impl AnyEventArgs for WindowCloseArgs

source§

impl AnyEventArgs for WindowCloseRequestedArgs

source§

impl AnyEventArgs for WindowOpenArgs

source§

impl AnyEventArgs for AppCommandArgs

source§

impl AnyEventArgs for CommandArgs