RoutedEventTrigger
struct · ferroui-xaml-interactions-custom · v0.5.0
struct RoutedEventTrigger
A trigger of a routed event of the associated object, given untyped
(routed_event): while the associated object is in
the visual tree, the event runs the actions with its args as the parameter.
The class is abstract: a deriving class implements
RoutedEventTriggerImpl::routed_event.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RoutedEventTrigger>
Returns a strong reference to this object.
routed_event
fn routed_event(self: &Self) -> RoutedEvent
The routed event the trigger listens to (an abstract property of the reference).
handler
fn handler(self: &Self, sender: &Interactive, e: &dyn IRoutedEventArgs)
Handles the event: runs the actions unless the trigger is disabled.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
execute
fn execute(self: &Self, e: &dyn IRoutedEventArgs)
Marks the event as handled (or not, see
mark_as_handled) and runs the actions with
its args as the parameter.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeTriggerBaseImplExtRoutedEventTriggerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDisposingTriggerImplExtDerefUpcast<T>Upcast<RoutedEventTrigger>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingTriggerImplRoutedEventTriggerImplAttachedToVisualTreeTriggerBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.