FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

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

    View source

    Members

    register

    fn register(add_event_handler: Rc<dyn IAddEventHandler>)
    

    Registers an event handler.

    Source

    unregister

    fn unregister(add_event_handler: &Rc<dyn IAddEventHandler>)
    

    Unregisters an event handler.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.