IThemeVariantHost
trait · ferroui-base · v0.5.0
trait IThemeVariantHost: IResourceHost
Interface for the host element with a theme variant.
Members
actual_theme_variant
fn actual_theme_variant(self: &Self) -> Option<ThemeVariant>
The UI theme that is currently used by the element, which might be different than the requested theme variant.
None until a theme variant has been established for the element.
actual_theme_variant_changed
fn actual_theme_variant_changed(self: &Self, handler: Rc<dyn Fn() -> ()>) -> Rc<dyn IDisposable>
Raised when the actual theme variant property value has changed. Disposing the returned handle unsubscribes.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.