covers#

ViewportPlacement.covers(row: int, column: int) → bool#

Return whether the viewport occupies a grid cell.

Parameters:
rowint

Zero-based row index.

columnint

Zero-based column index.

Returns:
bool

True if the cell is occupied by this viewport.

Examples

Check whether a placement occupies the upper-left cell.

>>> placement.covers(row=0, column=0)
True