FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ConditionalAction

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

    struct ConditionalAction
    

    An action that executes its actions (its content in markup) when condition is true, its else_actions otherwise.

    While the action is in the logical tree the styled element actions of both collections are its logical children (one way).

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

    Returns a strong reference to this object.

    Source

    condition_property

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

    Identifies the Condition property.

    Source

    actions_property

    fn actions_property() -> &'static StyledProperty<Option<ActionCollection>>
    

    Identifies the Actions property.

    Source

    else_actions_property

    fn else_actions_property() -> &'static StyledProperty<Option<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 an action.

    Source

    condition

    fn condition(self: &Self) -> bool
    

    Gets or sets the condition. This is a property of the object model.

    Source

    set_condition

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

    Source

    actions

    fn actions(self: &Self) -> Option<ActionCollection>
    

    Gets or sets the actions executed when the condition is true. This is a property of the object model.

    Source

    set_actions

    fn set_actions(self: &Self, value: Option<ActionCollection>)
    

    Source

    else_actions

    fn else_actions(self: &Self) -> Option<ActionCollection>
    

    Gets or sets the actions executed when the condition is false. This is a property of the object model.

    Source

    set_else_actions

    fn set_else_actions(self: &Self, value: Option<ActionCollection>)
    

    Source

    Trait implementations

    Availability

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