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§
sourcefn clone_any(&self) -> Box<dyn AnyEventArgs>
fn clone_any(&self) -> Box<dyn AnyEventArgs>
Clone the event into a type erased box.
sourcefn delivery_list(&self, list: &mut UpdateDeliveryList)
fn delivery_list(&self, list: &mut UpdateDeliveryList)
Insert all targets of this event on the UpdateDeliveryList
.
sourcefn propagation(&self) -> &EventPropagationHandle
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
impl AnyEventArgs for HotReloadArgs
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
source§impl AnyEventArgs for WindowFocusChangedArgs
impl AnyEventArgs for WindowFocusChangedArgs
source§fn delivery_list(&self, list: &mut UpdateDeliveryList)
fn delivery_list(&self, list: &mut UpdateDeliveryList)
Broadcast to all widgets.