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).
Members
TYPEto_refcondition_propertyactions_propertyelse_actions_propertyconstructnewconditionset_conditionactionsset_actionselse_actionsset_else_actions
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ConditionalAction>
Returns a strong reference to this object.
condition_property
fn condition_property() -> &'static StyledProperty<bool>
Identifies the Condition property.
actions_property
fn actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the Actions property.
else_actions_property
fn else_actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the ElseActions property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates an action.
condition
fn condition(self: &Self) -> bool
Gets or sets the condition. This is a property of the object model.
set_condition
fn set_condition(self: &Self, value: bool)
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.
set_actions
fn set_actions(self: &Self, value: Option<ActionCollection>)
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.
set_else_actions
fn set_else_actions(self: &Self, value: Option<ActionCollection>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementActionImplExtDerefUpcast<T>Upcast<ConditionalAction>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementActionImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.