FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlobalHotkeyBehavior

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

    struct GlobalHotkeyBehavior
    

    A behavior that registers a global hotkey (window-wide) to execute actions: a key down event anywhere in the top level of the control (on the tunnel route) with the key and the key modifiers runs the actions, with the event args as the parameter, and is marked as handled.

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

    Returns a strong reference to this object.

    Source

    key_property

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

    Identifies the Key property.

    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 behavior.

    Source

    key

    fn key(self: &Self) -> Key
    

    Gets or sets the key to listen for.

    Source

    set_key

    fn set_key(self: &Self, value: Key)
    

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> KeyModifiers
    

    Gets or sets the key modifiers to listen for.

    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.