FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ShowOnKeyDownBehavior

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

    struct ShowOnKeyDownBehavior
    

    A behavior that allows to show control on key down event: the key or the gesture shows it.

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

    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: the key gesture used to trigger the behavior.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    key

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

    Gets or sets the key. This is a property of the object model.

    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 used to trigger the behavior.

    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.