FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Condition>
    

    Returns a strong reference to this object.

    Source

    binding_property

    fn binding_property() -> &'static StyledProperty<Option<Rc<dyn BindingBase>>>
    

    Identifies the Binding property.

    Source

    binding_value_property

    fn binding_value_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the BindingValue property (internal in the reference): the value of the binding.

    Source

    comparison_condition_property

    fn comparison_condition_property() -> &'static StyledProperty<ComparisonConditionType>
    

    Identifies the ComparisonCondition property.

    Source

    value_property

    fn value_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the Value property.

    Source

    property_property

    fn property_property() -> &'static StyledProperty<Option<&'static FerroProperty>>
    

    Identifies the Property property.

    Source

    source_name_property

    fn source_name_property() -> &'static StyledProperty<Option<String>>
    

    Identifies the SourceName property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a condition.

    Source

    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.

    Source

    set_binding

    fn set_binding(self: &Self, value: Option<Rc<dyn BindingBase>>)
    

    Source

    comparison_condition

    fn comparison_condition(self: &Self) -> ComparisonConditionType
    

    Gets or sets the type of comparison that is performed.

    Source

    set_comparison_condition

    fn set_comparison_condition(self: &Self, value: ComparisonConditionType)
    

    Source

    value

    fn value(self: &Self) -> Option<BoxedValue>
    

    Gets or sets the value that is used during comparison.

    Source

    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).

    Source

    property

    fn property(self: &Self) -> Option<&'static FerroProperty>
    

    Gets or sets the property that will be monitored for changes.

    Source

    set_property

    fn set_property(self: &Self, value: Option<&'static FerroProperty>)
    

    Source

    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.

    Source

    set_source_name

    fn set_source_name(self: &Self, value: Option<String>)
    

    Source

    binding_value

    fn binding_value(self: &Self) -> Option<BoxedValue>
    

    The value of the binding (internal in the reference).

    Source

    set_binding_value

    fn set_binding_value(self: &Self, value: Option<BoxedValue>)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.