ResourceProviderImpl
trait · ferroui-base · v0.5.0
trait ResourceProviderImpl: FerroObjectImpl + $crate::Upcast<ResourceProvider>
The overridable members introduced by the class.
Members
has_resources
fn has_resources(this: &Self) -> bool
Whether the provider has resources.
try_get_resource
fn try_get_resource(this: &Self, key: &ResourceKey, theme: Option<&ThemeVariant>) -> Option<ResourceValue>
Tries to find a resource within the provider.
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.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.