SetThemeVariantAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct SetThemeVariantAction
Sets the requested theme variant of the target theme variant scope (or of
the sender when it is one).
Members
TYPEto_reftarget_propertytheme_variant_propertyconstructnewtargetset_targettheme_variantset_theme_variant
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SetThemeVariantAction>
Returns a strong reference to this object.
target_property
fn target_property() -> &'static StyledProperty<Option<ElementRef<ThemeVariantScope>>>
Identifies the Target property.
Deviation (DEVIATIONS.md, Behaviors): the action does not own its target, so the value is an element reference.
theme_variant_property
fn theme_variant_property() -> &'static StyledProperty<Option<ThemeVariant>>
Identifies the ThemeVariant property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
target
fn target(self: &Self) -> Option<Ref<ThemeVariantScope>>
Gets or sets the target theme variant scope. If not set, the sender is used when it is a scope. Markup resolves a name given for it to the named element.
set_target
fn set_target(self: &Self, value: impl Into<Nullable<ThemeVariantScope>>)
theme_variant
fn theme_variant(self: &Self) -> Option<ThemeVariant>
Gets or sets the theme variant to set. This is a property of the object model.
set_theme_variant
fn set_theme_variant(self: &Self, value: Option<ThemeVariant>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<SetThemeVariantAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.