Skip to main content

cell_rect

Function cell_rect 

Source
pub fn cell_rect(
    grid: Rect,
    rows: usize,
    cols: usize,
    row: usize,
    col: usize,
) -> Rect
Expand description

The pixel rect of cell (row, col) inside grid, given rows × cols. Pure geometry — no painter needed, so it’s directly testable.