Case
struct · ferroui-xaml-interactions-custom · v0.5.0
struct Case
A case of a SwitchCaseAction or a
SwitchCaseBehavior: the actions (the content of the case in
markup) executed when the switch value equals value.
While the case is in the logical tree its styled element actions are its logical children (one way).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Case>
Returns a strong reference to this object.
value_property
fn value_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Value property.
actions_property
fn actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the Actions property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a case.
value
fn value(self: &Self) -> Option<BoxedValue>
Gets or sets the value compared with the switch value. This is a property of the object model.
set_case_value
fn set_case_value(self: &Self, value: Option<BoxedValue>)
Sets the value compared with the switch value (named apart from the setter of every property of the object, as the condition of the object model names its own).
actions
fn actions(self: &Self) -> Option<ActionCollection>
Gets or sets the actions executed when the case matches. This is a property of the object model.
set_actions
fn set_actions(self: &Self, value: Option<ActionCollection>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<Case>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.