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.
Members
TYPEto_refkey_propertykey_modifiers_propertyconstructnewkeyset_keykey_modifiersset_key_modifiers
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<GlobalHotkeyBehavior>
Returns a strong reference to this object.
key_property
fn key_property() -> &'static StyledProperty<Key>
Identifies the Key property.
key_modifiers_property
fn key_modifiers_property() -> &'static StyledProperty<KeyModifiers>
Identifies the KeyModifiers property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
key
fn key(self: &Self) -> Key
Gets or sets the key to listen for.
set_key
fn set_key(self: &Self, value: Key)
key_modifiers
fn key_modifiers(self: &Self) -> KeyModifiers
Gets or sets the key modifiers to listen for.
set_key_modifiers
fn set_key_modifiers(self: &Self, value: KeyModifiers)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<GlobalHotkeyBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.