# grid_set_cell

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

```c
void grid_set_cell(struct grid *gd, u_int px, u_int py, const struct grid_cell *gc)
```

## Parameters

- `gd` (`struct grid *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `gc` (`const struct grid_cell *`)

## 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#L1309)
- [`grid_reflow_split`](/en/tmux/latest/reference/c-function-grid-c-grid_reflow_split/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1406)
- [`grid_set_padding`](/en/tmux/latest/reference/c-function-grid_set_padding/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L619)

## 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#L599)
- [`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#L602)
- [`grid_extended_cell`](/en/tmux/latest/reference/c-function-grid-c-grid_extended_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L610)
- [`grid_need_extended_cell`](/en/tmux/latest/reference/c-function-grid-c-grid_need_extended_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L609)
- [`grid_store_cell`](/en/tmux/latest/reference/c-function-grid-c-grid_store_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L612)

## Referenced by

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

## 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_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`utf8_data.data`](/en/tmux/latest/reference/c-struct-utf8_data-data/) (attribute)
- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`grid.linedata`](/en/tmux/latest/reference/c-struct-grid-linedata/) (attribute)
