FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

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

    Returns a strong reference to this object.

    Source

    value_property

    fn value_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the Value property.

    Source

    actions_property

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

    Identifies the Actions property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a case.

    Source

    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.

    Source

    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).

    Source

    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.

    Source

    set_actions

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

    Source

    Trait implementations

    Availability

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