ThemeVariantScope
struct · ferroui-controls · v0.5.0
struct ThemeVariantScope
Decorator control that isolates a subtree of controls with a locally
defined ThemeVariant.
Members
TYPEto_refactual_theme_variant_propertyrequested_theme_variant_propertyconstructnewrequested_theme_variantset_requested_theme_variant
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ThemeVariantScope>
Returns a strong reference to this object.
actual_theme_variant_property
fn actual_theme_variant_property() -> &'static StyledProperty<Option<ThemeVariant>>
Defines the ActualThemeVariant property: the property of
ThemeVariant, which every styled element owns.
requested_theme_variant_property
fn requested_theme_variant_property() -> &'static StyledProperty<Option<ThemeVariant>>
Defines the RequestedThemeVariant property: the property of
ThemeVariant, which every styled element owns.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
requested_theme_variant
fn requested_theme_variant(self: &Self) -> Option<ThemeVariant>
The UI theme variant that is used by the control (and its child elements) for resource determination. The UI theme specified with it can override the app-level theme variant.
Setting it to the default theme variant applies the actual theme variant of the parent on the current scope.
set_requested_theme_variant
fn set_requested_theme_variant(self: &Self, value: Option<ThemeVariant>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ThemeVariantScope>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.