# grid_get_cell

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

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

- [`cmd_capture_pane_hyperlinks`](/en/tmux/latest/reference/c-function-cmd-capture-pane-c-cmd_capture_pane_hyperlinks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-capture-pane.c#L126)
- [`format_grid_hyperlink`](/en/tmux/latest/reference/c-function-format_grid_hyperlink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6115)
- [`format_grid_line`](/en/tmux/latest/reference/c-function-format_grid_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6089)
- [`format_grid_word`](/en/tmux/latest/reference/c-function-format_grid_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L6025)
- [`grid_compare`](/en/tmux/latest/reference/c-function-grid_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L357)
- [`grid_in_set`](/en/tmux/latest/reference/c-function-grid_in_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1598)
- [`grid_line_length`](/en/tmux/latest/reference/c-function-grid_line_length/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1581)
- [`grid_reader_cursor_back_to_indentation`](/en/tmux/latest/reference/c-function-grid_reader_cursor_back_to_indentation/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L427)
- [`grid_reader_cursor_down`](/en/tmux/latest/reference/c-function-grid_reader_cursor_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L107)
- [`grid_reader_cursor_jump`](/en/tmux/latest/reference/c-function-grid_reader_cursor_jump/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L368)
- [`grid_reader_cursor_jump_back`](/en/tmux/latest/reference/c-function-grid_reader_cursor_jump_back/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L396)
- [`grid_reader_cursor_left`](/en/tmux/latest/reference/c-function-grid_reader_cursor_left/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L84)
- [`grid_reader_cursor_right`](/en/tmux/latest/reference/c-function-grid_reader_cursor_right/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L69)
- [`grid_reader_cursor_up`](/en/tmux/latest/reference/c-function-grid_reader_cursor_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L123)
- [`grid_string_cells`](/en/tmux/latest/reference/c-function-grid_string_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1117)
- [`input_c0_dispatch`](/en/tmux/latest/reference/c-function-input-c-input_c0_dispatch/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L1314)
- [`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#L650)
- [`window_copy_cmd_next_matching_bracket`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_next_matching_bracket/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1892)
- [`window_copy_cmd_previous_matching_bracket`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_previous_matching_bracket/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1804)
- [`window_copy_copy_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_copy_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5637)
- [`window_copy_match_at_cursor`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_match_at_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4659)
- [`window_copy_search_compare`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3575)
- [`window_copy_search_lr`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_lr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3619)
- [`window_copy_search_mark_match`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_mark_match/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4408)
- [`window_copy_search_marks`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4491)
- [`window_copy_search_rl`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_rl/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3663)
- [`window_copy_write_one`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_one/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4764)

## 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#L585)
- [`grid_get_cell1`](/en/tmux/latest/reference/c-function-grid-c-grid_get_cell1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L589)

## Referenced by

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

## Referenced declarations

- [`grid_line.cellsize`](/en/tmux/latest/reference/c-struct-grid_line-cellsize/) (attribute)
- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`grid.linedata`](/en/tmux/latest/reference/c-struct-grid-linedata/) (attribute)
