ChangeFerroPropertyAction
struct · ferroui-xaml-interactions-custom · v0.5.0
struct ChangeFerroPropertyAction
An action that sets a registered property (target_property) of the
target_object (or of the sender) to value, converted
to the type of the property.
Members
TYPEto_reftarget_property_propertytarget_object_propertyvalue_propertyconstructnewtarget_propertyset_target_propertyvalueset_action_valuetarget_objectset_target_object
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ChangeFerroPropertyAction>
Returns a strong reference to this object.
target_property_property
fn target_property_property() -> &'static StyledProperty<Option<&'static FerroProperty>>
Identifies the TargetProperty property.
target_object_property
fn target_object_property() -> &'static StyledProperty<Option<ElementRef<FerroObject>>>
Identifies the TargetObject property.
Deviation (DEVIATIONS.md, Behaviors): the action does not own its target, so the value is an element reference.
value_property
fn value_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Value property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
target_property
fn target_property(self: &Self) -> Option<&'static FerroProperty>
Gets or sets the property to change. This is a property of the object model.
set_target_property
fn set_target_property(self: &Self, value: Option<&'static FerroProperty>)
value
fn value(self: &Self) -> Option<BoxedValue>
Gets or sets the value to set. This is a property of the object model.
set_action_value
fn set_action_value(self: &Self, value: Option<BoxedValue>)
Sets the value to set (named apart from the setter of every property of the object, as
ChangePropertyAction names its own).
target_object
fn target_object(self: &Self) -> Option<Ref<FerroObject>>
Gets or sets the object whose property will be changed. If not set, the sender is used. Markup resolves a name given for it to the named element.
set_target_object
fn set_target_object(self: &Self, value: impl Into<Nullable<FerroObject>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<ChangeFerroPropertyAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.