AddEventHandlerRegistry
struct · ferroui-xaml-interactivity · v0.5.0
struct AddEventHandlerRegistry
A registry for adding event handlers to various controls: the events an event trigger subscribes by name before it looks for the event in the metadata of the source.
The registry belongs to the thread (handlers hold objects of the thread).
Members
register
fn register(add_event_handler: Rc<dyn IAddEventHandler>)
Registers an event handler.
unregister
fn unregister(add_event_handler: &Rc<dyn IAddEventHandler>)
Unregisters an event handler.
try_register_event_handler
fn try_register_event_handler(source: &BoxedValue, event_name: &str, handler: AddEventHandlerCallback) -> Option<Rc<dyn IDisposable>>
Subscribes handler to the event event_name of source through the first registered
handler that matches them; None when none does.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.