FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ResourceProviderImpl

    trait · ferroui-base · v0.5.0

    trait ResourceProviderImpl: FerroObjectImpl + $crate::Upcast<ResourceProvider>
    

    The overridable members introduced by the class.

    View source

    Members

    has_resources

    fn has_resources(this: &Self) -> bool
    

    Whether the provider has resources.

    Source

    try_get_resource

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

    Tries to find a resource within the provider.

    Source

    on_add_owner

    fn on_add_owner(this: &Self, owner: &ResourceHostRef)
    

    Handles when the owner is added. The base method notifies the owner about its resources changing, if the provider has any.

    Source

    on_remove_owner

    fn on_remove_owner(this: &Self, owner: &ResourceHostRef)
    

    Handles when the owner is removed. The base method notifies the owner about its resources changing, if the provider has any.

    Source

    Trait implementations

    Availability

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