FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    KeyGestureTrigger

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

    struct KeyGestureTrigger
    

    Trigger that listens for a key gesture.

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

    Returns a strong reference to this object.

    Source

    gesture_property

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

    Identifies the gesture property.

    Source

    fired_on_property

    fn fired_on_property() -> &'static StyledProperty<KeyGestureTriggerFiredOn>
    

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

    gesture

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

    Gets or sets the gesture that will fire the trigger.

    Source

    set_gesture

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

    Source

    fired_on

    fn fired_on(self: &Self) -> KeyGestureTriggerFiredOn
    

    Gets or sets whether the trigger reacts on key down or key up.

    Source

    set_fired_on

    fn set_fired_on(self: &Self, value: KeyGestureTriggerFiredOn)
    

    Source

    Trait implementations

    Availability

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