FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InvokeButtonClickAction

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

    struct InvokeButtonClickAction
    

    Invokes the target button when executed.

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

    Returns a strong reference to this object.

    Source

    target_button_property

    fn target_button_property() -> &'static StyledProperty<Option<ElementRef<Button>>>
    

    Identifies the TargetButton property.

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

    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_button

    fn target_button(self: &Self) -> Option<Ref<Button>>
    

    Gets or sets the target button. This is a property of the object model; markup resolves a name given for it to the named button.

    Source

    set_target_button

    fn set_target_button(self: &Self, value: impl Into<Nullable<Button>>)
    

    Source

    Trait implementations

    Availability

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