ui

Function ui 

Source
pub fn ui(f: &mut Frame<'_>, app: &mut AppState)
Expand description

What: Render a full frame of the Pacsea TUI.

Inputs:

  • f: ratatui frame to render into
  • app: Mutable application state; updated during rendering for selection offsets, cursor position, and clickable geometry

Output:

  • Draws the entire interface and updates hit-test rectangles used by mouse handlers.

Details:

  • Applies global theme/background; renders Results (top), Middle (left/center/right), Details (bottom), and Modal overlays.
  • Keeps results selection centered by adjusting list offset.
  • Computes and records clickable rects (URL, Sort/Filters, Options/Config/Panels, status label).