FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IfElseTrigger

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct IfElseTrigger
    

    A behavior that executes different collections of actions depending on the specified condition.

    The actions of if_actions (the content of the trigger in markup) run when condition is true, the actions of else_actions when it is false: once when the trigger is initialized, then in a job of the dispatcher after each change of the condition.

    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<IfElseTrigger>
    

    Returns a strong reference to this object.

    Source

    condition_property

    fn condition_property() -> &'static StyledProperty<bool>
    

    Identifies the Condition property.

    Source

    if_actions_property

    fn if_actions_property() -> &'static DirectProperty<IfElseTrigger, ActionCollection>
    

    Identifies the IfActions property.

    Source

    else_actions_property

    fn else_actions_property() -> &'static DirectProperty<IfElseTrigger, ActionCollection>
    

    Identifies the ElseActions property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    condition

    fn condition(self: &Self) -> bool
    

    Gets or sets the condition that determines which actions are executed. This is a property of the object model.

    Source

    set_condition

    fn set_condition(self: &Self, value: bool)
    

    Source

    if_actions

    fn if_actions(self: &Self) -> ActionCollection
    

    Gets the actions executed when condition evaluates to true. This is a property of the object model.

    Source

    else_actions

    fn else_actions(self: &Self) -> ActionCollection
    

    Gets the actions executed when condition evaluates to false. This is a property of the object model.

    Source

    Trait implementations

    Availability

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