FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NameScope

    struct · ferroui-base · v0.5.0

    struct NameScope
    

    Implements a name scope.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this type.

    Source

    name_scope_property

    fn name_scope_property() -> &'static AttachedProperty<Option<NameScopeRef>>
    

    Defines the NameScope attached property.

    Source

    new

    fn new() -> Self
    

    Source

    get_name_scope

    fn get_name_scope(styled: &StyledElement) -> Option<NameScopeRef>
    

    Gets the value of the attached NameScope property on a styled element.

    Source

    set_name_scope

    fn set_name_scope(styled: &StyledElement, value: Option<NameScopeRef>)
    

    Sets the value of the attached NameScope property on a styled element.

    The scope is told which element holds it, and the scope the element held before that it no longer does (see INameScope::attached_to).

    Source

    Trait implementations

    Availability

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