# grid_move_cells

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L757
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-grid_move_cells/

```c
void grid_move_cells(struct grid *gd, u_int dx, u_int px, u_int py, u_int nx, u_int bg)
```

## Parameters

- `gd` (`struct grid *`)
- `dx` (`u_int`)
- `px` (`u_int`)
- `py` (`u_int`)
- `nx` (`u_int`)
- `bg` (`u_int`)

## Called by

- [`grid_reflow_join`](/en/tmux/latest/reference/c-function-grid-c-grid_reflow_join/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1342)
- [`grid_view_delete_cells`](/en/tmux/latest/reference/c-function-grid_view_delete_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L223)
- [`grid_view_insert_cells`](/en/tmux/latest/reference/c-function-grid_view_insert_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-view.c#L209)

## Calls

- [`grid_check_y`](/en/tmux/latest/reference/c-function-grid-c-grid_check_y/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L766)
- [`grid_clear_cell`](/en/tmux/latest/reference/c-function-grid-c-grid_clear_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L781)
- [`grid_expand_line`](/en/tmux/latest/reference/c-function-grid-c-grid_expand_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L770)

## Referenced declarations

- [`grid_line.celldata`](/en/tmux/latest/reference/c-struct-grid_line-celldata/) (attribute)
- [`grid_line.cellused`](/en/tmux/latest/reference/c-struct-grid_line-cellused/) (attribute)
- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`grid.linedata`](/en/tmux/latest/reference/c-struct-grid-linedata/) (attribute)
