get_floating_resource_observable
function · ferroui-base · v0.5.0
fn get_floating_resource_observable(resource_provider: std::rc::Rc<dyn IResourceProvider>, key: impl Into<super::ResourceKey>, default_theme_variant: Option<crate::styling::ThemeVariant>, converter: Option<ResourceConverter>) -> std::rc::Rc<dyn IObservable<Option<crate::BoxedValue>>>
Gets an observable for the resource with the specified key as seen by the owner of a resource provider.
The observable produces a value whenever the provider has an owner and the
resources visible to that owner, the owner itself or (unless
default_theme_variant is given) its theme variant change.
While it has observers the observable and the provider keep each other alive; dispose the subscriptions to release them.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.