RoutedEventTriggerBaseOfT
struct · ferroui-xaml-interactions-custom · v0.5.0
struct RoutedEventTriggerBaseOfT
A trigger of a routed event of the associated object whose args are of type T: 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
RoutedEventTriggerBaseOfTImpl::routed_event, and can override
RoutedEventTriggerBaseOfTImpl::handler to filter the events (calling
execute to run the actions).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RoutedEventTriggerBaseOfT>
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
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAttachedToVisualTreeTriggerBaseImplExtRoutedEventTriggerBaseOfTImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDisposingTriggerImplExtDerefUpcast<T>Upcast<RoutedEventTriggerBaseOfT>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplStyledElementBehaviorImplDisposingTriggerImplRoutedEventTriggerBaseOfTImplAttachedToVisualTreeTriggerBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.