# grid_view_set_cell

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

```c
void grid_view_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

- [`screen_write_alignmenttest`](/en/tmux/latest/reference/c-function-screen_write_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1228)
- [`screen_write_cell`](/en/tmux/latest/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2576)
- [`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#L2359)
- [`screen_write_combine`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_combine/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2749)
- [`screen_write_fast_copy`](/en/tmux/latest/reference/c-function-screen_write_fast_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L653)
- [`screen_write_overwrite`](/en/tmux/latest/reference/c-function-screen-write-c-screen_write_overwrite/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2819)

## Other function references

- [`grid_set_cell`](/en/tmux/latest/reference/c-function-grid_set_cell/) (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)
