FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FiredEvent

    struct · ferroui-diagnostics · v0.5.0

    struct FiredEvent
    

    A routed event recorded by the events page: the event, when it was raised, and the chain of the elements it visited.

    View source

    Members

    new

    fn new(event_args: &RoutedEventArgs, originator: Rc<EventChainLink>, trigger_time: SystemTime) -> Rc<Self>
    

    C# new FiredEvent(RoutedEventArgs eventArgs, EventChainLink originator, DateTime triggerTime): the event of event_args, with originator as the first link of its chain, raised at the instant trigger_time.

    Source

    is_part_of_same_event_chain

    fn is_part_of_same_event_chain(self: &Self, e: &RoutedEventArgs) -> bool
    

    Whether e are the args of the same raise of the same event.

    Source

    trigger_time

    fn trigger_time(self: &Self) -> SystemTime
    

    The instant the event was raised.

    Source

    event

    fn event(self: &Self) -> RoutedEvent
    

    The routed event.

    Source

    is_handled

    fn is_handled(self: &Self) -> bool
    

    Whether an element on the route handled the event.

    Source

    event_chain

    fn event_chain(self: &Self) -> FerroList<Rc<EventChainLink>>
    

    The elements the event visited, in order.

    Source

    display_text

    fn display_text(self: &Self) -> String
    

    The description of the event: its name, its source, its routing strategies and what handled it.

    Source

    originator

    fn originator(self: &Self) -> Rc<EventChainLink>
    

    The first link of the chain: the source of the event.

    Source

    handled_by

    fn handled_by(self: &Self) -> Option<Rc<EventChainLink>>
    

    The link of the element that handled the event.

    Source

    set_handled_by

    fn set_handled_by(self: &Self, value: Option<Rc<EventChainLink>>)
    

    Source

    add_to_chain

    fn add_to_chain(self: &Self, link: Rc<EventChainLink>)
    

    Adds the link of the next element the event visited; a link whose route differs from the route of the previous link begins a new route.

    Source

    Trait implementations

    Availability

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