KeyGestureTrigger
struct · ferroui-xaml-interactions-custom · v0.5.0
struct KeyGestureTrigger
Trigger that listens for a key gesture.
Members
TYPEto_refgesture_propertyfired_on_propertyconstructnewgestureset_gesturefired_onset_fired_on
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<KeyGestureTrigger>
Returns a strong reference to this object.
gesture_property
fn gesture_property() -> &'static StyledProperty<Option<KeyGesture>>
Identifies the gesture property.
fired_on_property
fn fired_on_property() -> &'static StyledProperty<KeyGestureTriggerFiredOn>
Identifies the fired_on property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a trigger.
gesture
fn gesture(self: &Self) -> Option<KeyGesture>
Gets or sets the gesture that will fire the trigger.
set_gesture
fn set_gesture(self: &Self, value: Option<KeyGesture>)
fired_on
fn fired_on(self: &Self) -> KeyGestureTriggerFiredOn
Gets or sets whether the trigger reacts on key down or key up.
set_fired_on
fn set_fired_on(self: &Self, value: KeyGestureTriggerFiredOn)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeTriggerBaseImplExtRoutedEventTriggerBaseOfTImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDisposingTriggerImplExtDerefUpcast<T>Upcast<KeyGestureTrigger>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingTriggerImplAttachedToVisualTreeTriggerBaseImplRoutedEventTriggerBaseOfTImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.