FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ButtonClickEventTriggerBehavior

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

    struct ButtonClickEventTriggerBehavior
    

    A behavior that listens for a Button::click_event event on its source and executes its actions when that event is fired.

    The args of the click are the parameter of the actions.

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

    Returns a strong reference to this object.

    Source

    key_modifiers_property

    fn key_modifiers_property() -> &'static StyledProperty<KeyModifiers>
    

    Identifies the KeyModifiers property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> KeyModifiers
    

    Gets or sets the required key modifiers to execute Button::click_event event handler. This is a property of the object model.

    Source

    set_key_modifiers

    fn set_key_modifiers(self: &Self, value: KeyModifiers)
    

    Source

    Trait implementations

    Availability

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