FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    routed_event

    fn routed_event(self: &Self) -> RoutedEvent
    

    The routed event the trigger listens to (an abstract property of the reference).

    Source

    handler

    fn handler(self: &Self, sender: &Interactive, e: &dyn IRoutedEventArgs)
    

    Handles the event: runs the actions unless the trigger is disabled.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    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.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.