Skip to main content

Module search_results

Module search_results 

Expand description

SearchResultsView — the shared results overlay for Tilo global search.

Renders the ranked, kind-grouped SearchResults that a SearchRegistry produces: one section per kind, then keyboard- and pointer-navigable rows. Activating a row latches its opaque action_id, which the host drains with SearchResultsView::take_activated and dispatches on — the framework never interprets it.

The view is self-laid-out (like the command palette): the host gives it a rect — via the layout pass, or directly with SearchResultsView::set_rect for a free-floating overlay — and it lays its own headers and rows top-down from the current groups.

Structs§

SearchResultsView
The results overlay. Populate it with set_groups each time the query changes, drive selection with the keyboard or pointer, and drain activations with take_activated.