# grid_view_get_cell

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

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

## Parameters

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

## Called by

- [`format_cb_cursor_character`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_cursor_character/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1209)
- [`screen_write_cell`](/en/tmux/3.7c/reference/c-function-screen_write_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2529)
- [`screen_write_collect_end`](/en/tmux/3.7c/reference/c-function-screen_write_collect_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2356)
- [`screen_write_combine`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_combine/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2693)
- [`screen_write_overwrite`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_overwrite/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L2815)
- [`screen_write_preview`](/en/tmux/3.7c/reference/c-function-screen_write_preview/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L929)
- [`screen_write_redraw_line`](/en/tmux/3.7c/reference/c-function-screen-write-c-screen_write_redraw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-write.c#L1183)
- [`tty_draw_line`](/en/tmux/3.7c/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/tty-draw.c#L154)

## Other function references

- [`grid_get_cell`](/en/tmux/3.7c/reference/c-function-grid_get_cell/) (function)

## Referenced declarations

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