FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlLocator

    struct · ferroui-base · v0.5.0

    struct ControlLocator
    

    Tracks an ancestor of an element in the logical tree.

    View source

    Members

    track

    fn track(relative_to: &StyledElement, ancestor_level: usize, ancestor_type: Option<&'static TypeInfo>) -> Rc<dyn IObservable<Option<Ref<StyledElement>>>>
    

    An observable of the ancestor at ancestor_level (counting only ancestors of ancestor_type, when given) of relative_to in the logical tree. It publishes the ancestor again when relative_to is attached to a logical tree, and None when it is detached.

    Source

    Trait implementations

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

    Availability

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