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.
Members
TYPEto_refcondition_propertyif_actions_propertyelse_actions_propertyconstructnewconditionset_conditionif_actionselse_actions
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<IfElseTrigger>
Returns a strong reference to this object.
condition_property
fn condition_property() -> &'static StyledProperty<bool>
Identifies the Condition property.
if_actions_property
fn if_actions_property() -> &'static DirectProperty<IfElseTrigger, ActionCollection>
Identifies the IfActions property.
else_actions_property
fn else_actions_property() -> &'static DirectProperty<IfElseTrigger, ActionCollection>
Identifies the ElseActions property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
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.
set_condition
fn set_condition(self: &Self, value: bool)
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<IfElseTrigger>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplFerroObjectImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.