FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ExecuteCommandOnKeyBehaviorBase

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

    struct ExecuteCommandOnKeyBehaviorBase
    

    The base class of the behaviors that execute a command on a key event: the key or the key gesture that executes it.

    The class is abstract.

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

    Returns a strong reference to this object.

    Source

    key_property

    fn key_property() -> &'static StyledProperty<Option<Key>>
    

    Identifies the Key property.

    Source

    gesture_property

    fn gesture_property() -> &'static StyledProperty<Option<KeyGesture>>
    

    Identifies the Gesture property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    key

    fn key(self: &Self) -> Option<Key>
    

    Gets or sets the key that executes the command.

    Source

    set_key

    fn set_key(self: &Self, value: Option<Key>)
    

    Source

    gesture

    fn gesture(self: &Self) -> Option<KeyGesture>
    

    Gets or sets the key gesture that executes the command.

    Source

    set_gesture

    fn set_gesture(self: &Self, value: Option<KeyGesture>)
    

    Source

    Trait implementations

    Availability

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