Raxol.UI.CellManager (Raxol v2.0.1)

View Source

Handles cell operations, clipping, merging, and coordinate management.

Summary

Functions

Clips cells to specified bounds.

Clips coordinates to valid bounds.

Ensures a value is a list.

Filters out cells with invalid coordinates.

Merges two cell lists, with the second list taking precedence at overlapping coordinates.

Functions

clip_cells_to_bounds(cells, arg2)

Clips cells to specified bounds.

clip_coordinates(x, y, width, height)

Clips coordinates to valid bounds.

ensure_list(value)

Ensures a value is a list.

filter_valid_cells(cells)

Filters out cells with invalid coordinates.

merge_cells(base_cells, overlay_cells)

Merges two cell lists, with the second list taking precedence at overlapping coordinates.