# grid_view_set_cell

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid-view.c#L42
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-screen_write_alignmenttest/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L915)
- [`screen_write_cell`](/en/tmux/3.2a/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1825)
- [`screen_write_collect_end`](/en/tmux/3.2a/reference/c-function-screen_write_collect_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1644)
- [`screen_write_combine`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_combine/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1903)
- [`screen_write_fast_copy`](/en/tmux/3.2a/reference/c-function-screen_write_fast_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L570)
- [`screen_write_overwrite`](/en/tmux/3.2a/reference/c-function-screen-write-c-screen_write_overwrite/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-write.c#L1939)

## Other function references

- [`grid_set_cell`](/en/tmux/3.2a/reference/c-function-grid_set_cell/) (function)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

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