Condition
struct · ferroui-xaml-interactivity · v0.5.0
struct Condition
Represents a reusable comparison that can be used by triggers and behaviors.
The left operand is either the value of a binding (the binding itself is
assigned to the property, then bound by the condition) or of a property
of a source; the right operand is value.
Members
TYPEto_refbinding_propertybinding_value_propertycomparison_condition_propertyvalue_propertyproperty_propertysource_name_propertyconstructnewbindingset_bindingcomparison_conditionset_comparison_conditionvalueset_condition_valuepropertyset_propertysource_nameset_source_namebinding_valueset_binding_value
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Condition>
Returns a strong reference to this object.
binding_property
fn binding_property() -> &'static StyledProperty<Option<Rc<dyn BindingBase>>>
Identifies the Binding property.
binding_value_property
fn binding_value_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the BindingValue property (internal in the reference): the value of the
binding.
comparison_condition_property
fn comparison_condition_property() -> &'static StyledProperty<ComparisonConditionType>
Identifies the ComparisonCondition property.
value_property
fn value_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Value property.
property_property
fn property_property() -> &'static StyledProperty<Option<&'static FerroProperty>>
Identifies the Property property.
source_name_property
fn source_name_property() -> &'static StyledProperty<Option<String>>
Identifies the SourceName property.
construct
fn construct() -> Self
Creates the class data; see FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a condition.
binding
fn binding(self: &Self) -> Option<Rc<dyn BindingBase>>
Gets or sets the bound object to compare. This is a property of the object model, to which markup assigns a binding as it is.
set_binding
fn set_binding(self: &Self, value: Option<Rc<dyn BindingBase>>)
comparison_condition
fn comparison_condition(self: &Self) -> ComparisonConditionType
Gets or sets the type of comparison that is performed.
set_comparison_condition
fn set_comparison_condition(self: &Self, value: ComparisonConditionType)
value
fn value(self: &Self) -> Option<BoxedValue>
Gets or sets the value that is used during comparison.
set_condition_value
fn set_condition_value(self: &Self, value: Option<BoxedValue>)
Sets the value that is used during comparison (named apart from the setter of every property of the object, as the range controls of the framework name theirs).
property
fn property(self: &Self) -> Option<&'static FerroProperty>
Gets or sets the property that will be monitored for changes.
set_property
fn set_property(self: &Self, value: Option<&'static FerroProperty>)
source_name
fn source_name(self: &Self) -> Option<String>
Gets or sets the name of the element that supplies property. When
null, the associated object is used.
set_source_name
fn set_source_name(self: &Self, value: Option<String>)
binding_value
fn binding_value(self: &Self) -> Option<BoxedValue>
The value of the binding (internal in the reference).
set_binding_value
fn set_binding_value(self: &Self, value: Option<BoxedValue>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Condition>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.