FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ChangeFerroPropertyAction

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

    struct ChangeFerroPropertyAction
    

    An action that sets a registered property (target_property) of the target_object (or of the sender) to value, converted to the type of the property.

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

    Returns a strong reference to this object.

    Source

    target_property_property

    fn target_property_property() -> &'static StyledProperty<Option<&'static FerroProperty>>
    

    Identifies the TargetProperty property.

    Source

    target_object_property

    fn target_object_property() -> &'static StyledProperty<Option<ElementRef<FerroObject>>>
    

    Identifies the TargetObject property.

    Deviation (DEVIATIONS.md, Behaviors): the action does not own its target, so the value is an element reference.

    Source

    value_property

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

    Identifies the Value 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

    target_property

    fn target_property(self: &Self) -> Option<&'static FerroProperty>
    

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

    Source

    set_target_property

    fn set_target_property(self: &Self, value: Option<&'static FerroProperty>)
    

    Source

    value

    fn value(self: &Self) -> Option<BoxedValue>
    

    Gets or sets the value to set. This is a property of the object model.

    Source

    set_action_value

    fn set_action_value(self: &Self, value: Option<BoxedValue>)
    

    Sets the value to set (named apart from the setter of every property of the object, as ChangePropertyAction names its own).

    Source

    target_object

    fn target_object(self: &Self) -> Option<Ref<FerroObject>>
    

    Gets or sets the object whose property will be changed. If not set, the sender is used. Markup resolves a name given for it to the named element.

    Source

    set_target_object

    fn set_target_object(self: &Self, value: impl Into<Nullable<FerroObject>>)
    

    Source

    Trait implementations

    Availability

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