Function ratatui_hit_test

Source
#[no_mangle]
pub extern "C" fn ratatui_hit_test(
    handle: *mut c_void,
    col: u16,
    row: u16,
) -> u32
Expand description

Returns the most specific area id covering the given terminal cell.

When several registered areas contain (col, row) the one with the smallest cell count (the most deeply nested) wins. Returns 0 (root) when no registered area matches.

Useful for mapping pointer input back into the layout tree.