Skip to main content

mouse_hit

Function mouse_hit 

Source
pub fn mouse_hit(area: Rect, col: u16, row: u16) -> bool
Expand description

Returns true if the terminal cell (col, row) falls inside area.

Use this to map a crossterm::event::MouseEvent to a widget that was rendered at a known Rect.