FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IResourceNode

    trait · ferroui-base · v0.5.0

    trait IResourceNode
    

    Represents a resource provider in a tree.

    View source

    Members

    has_resources

    fn has_resources(self: &Self) -> bool
    

    Whether the resource node has resources.

    Source

    try_get_resource

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

    Tries to find a resource within the node.

    Returns Some with the resource if it was found. See the theme dictionaries of a resource dictionary for how theme is used.

    Source

    Trait implementations

    Availability

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