FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    KeyDownTrigger

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

    struct KeyDownTrigger
    

    A trigger of InputElement::key_down_event: runs the actions with the key args as the parameter when the key or the key gesture is pressed (any key when neither is set).

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

    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

    new

    fn new() -> Ref<Self>
    

    Creates a trigger.

    Source

    key

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

    Gets or sets the key that fires the trigger.

    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 fires the trigger.

    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.