FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    XamlResourceNode

    enum · ferroui-markup-xaml · v0.5.0

    enum XamlResourceNode
    

    A resource node found among untyped objects.

    Elements are kept as they are, so that walking a parent stack does not allocate an adapter for each of them.

    View source

    Members

    Element

    Element(ferroui_base::Ref<ferroui_base::StyledElement>)
    

    Source

    Node

    Node(std::rc::Rc<dyn IResourceNode>)
    

    Source

    has_resources

    fn has_resources(self: &Self) -> bool
    

    IResourceNode.HasResources.

    Source

    try_get_resource

    fn try_get_resource(self: &Self, key: &ResourceKey, theme: Option<&ThemeVariant>) -> Option<ResourceValue>
    

    IResourceNode.TryGetResource.

    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
    • Clone
    • FromXamlObject

    Availability

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