FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FerroActivationForViewFetcher

    struct · ferroui-reactiveui-controls · v0.5.0

    struct FerroActivationForViewFetcher
    

    The activation of the views of FerroUI (FerroActivationForViewFetcher).

    A view whose object is a Visual has an affinity; its activation follows the Loaded and Unloaded events of a Control, or the attachment to and the detachment from the visual tree of any other visual. Each observable emits only when the state changes.

    The object of a view is the control behind a view adapter of the crate, or, for another type of view, the object FerroObjectHandles::object_of finds: such a view registers its type there (FerroObjectHandles::register or FerroObjectHandles::register_class).

    Deviation (DEVIATIONS.md, ReactiveUI controls): the affinity is computed on the view, as every fetcher of the port does. The activation of a Window also follows its visibility: hiding the window deactivates it and showing it again activates it, as the views of a hidden window are not shown.

    View source

    Members

    VISUAL_AFFINITY

    const VISUAL_AFFINITY: i32
    

    The affinity of the views that are visuals (FerroVisualAffinity).

    Source

    new

    fn new() -> Self
    

    The fetcher (new FerroActivationForViewFetcher()).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Debug
    • Default
    • Clone
    • Copy
    • IActivationForViewFetcher

    Availability

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