Guide API
Skip to main content

handle_event

Function handle_event 

Source
pub fn handle_event<L: ListViewer + ?Sized>(
    this: &mut L,
    ev: &mut Event,
    ctx: &mut Context<'_>,
)
Expand description

Mouse + keyboard nav + the scrollbar broadcast filter. Reused verbatim by concrete list widgets.

Intentional omission: C++ TListViewer::handleEvent calls TView::handleEvent(event) first (line 221 of tlstview.cpp). That base call only performs mouse-down auto-select (focus the view on click), which tvision-rs relocates to Group::route_event. TView::handleEvent is a no-op for every other event class, so there is no base behavior to inherit.