# grid_view_set_cells

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

```c
void grid_view_set_cells(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc, const char *s, size_t slen)
```

## Parameters

- `gd` (`struct grid *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `gc` (`const struct grid_cell *`)
- `s` (`const char *`)
- `slen` (`size_t`)

## Called by

- [`screen_write_collect_end`](/en/tmux/latest/reference/c-function-screen_write_collect_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2391)

## Other function references

- [`grid_set_cells`](/en/tmux/latest/reference/c-function-grid_set_cells/) (function)

## Referenced declarations

- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`grid_view_x`](/en/tmux/latest/reference/c-define-grid-view-c-grid_view_x/) (constant)
- [`grid_view_y`](/en/tmux/latest/reference/c-define-grid-view-c-grid_view_y/) (constant)
