FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NameScopeExtensions

    struct · ferroui-base · v0.5.0

    struct NameScopeExtensions
    

    Name scope lookups anchored at a styled element.

    View source

    Members

    find

    fn find<T: ObjectType>(anchor: &StyledElement, name: &str) -> Option<Ref<T>>
    

    Finds a named element in the name scope attached to anchor.

    Source

    get

    fn get<T: ObjectType>(anchor: &StyledElement, name: &str) -> Ref<T>
    

    Gets a named element from the name scope attached to anchor.

    Panics if the element has no name scope, the name is not registered or the named element is of a different class.

    Source

    find_name_scope

    fn find_name_scope(control: &StyledElement) -> Option<NameScopeRef>
    

    Finds the name scope of control by walking up its logical ancestors.

    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.