# grid_get_cell1

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L495
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-grid-c-grid_get_cell1/

```c
static void grid_get_cell1(struct grid_line *gl, u_int px, struct grid_cell *gc)
```

## Parameters

- `gl` (`struct grid_line *`)
- `px` (`u_int`)
- `gc` (`struct grid_cell *`)

## Called by

- [`grid_get_cell`](/en/tmux/3.2a/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L535)
- [`grid_reflow`](/en/tmux/3.2a/reference/c-function-grid_reflow/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1309)
- [`grid_reflow_join`](/en/tmux/3.2a/reference/c-function-grid-c-grid_reflow_join/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1147)
- [`grid_reflow_split`](/en/tmux/3.2a/reference/c-function-grid-c-grid_reflow_split/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L1222)

## Calls

- [`utf8_set`](/en/tmux/3.2a/reference/c-function-utf8_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L524)
- [`utf8_to_data`](/en/tmux/3.2a/reference/c-function-utf8_to_data/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L510)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.2a/reference/c-struct-grid_cell-attr/) (attribute)
- [`grid_extd_entry.attr`](/en/tmux/3.2a/reference/c-struct-grid_extd_entry-attr/) (attribute)
- [`grid_cell.bg`](/en/tmux/3.2a/reference/c-struct-grid_cell-bg/) (attribute)
- [`grid_extd_entry.bg`](/en/tmux/3.2a/reference/c-struct-grid_extd_entry-bg/) (attribute)
- [`grid_line.celldata`](/en/tmux/3.2a/reference/c-struct-grid_line-celldata/) (attribute)
- [`COLOUR_FLAG_256`](/en/tmux/3.2a/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`grid_cell.data`](/en/tmux/3.2a/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_extd_entry.data`](/en/tmux/3.2a/reference/c-struct-grid_extd_entry-data/) (attribute)
- [`grid_line.extddata`](/en/tmux/3.2a/reference/c-struct-grid_line-extddata/) (attribute)
- [`grid_line.extdsize`](/en/tmux/3.2a/reference/c-struct-grid_line-extdsize/) (attribute)
- [`grid_cell.fg`](/en/tmux/3.2a/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_extd_entry.fg`](/en/tmux/3.2a/reference/c-struct-grid_extd_entry-fg/) (attribute)
- [`grid_cell_entry.flags`](/en/tmux/3.2a/reference/c-struct-grid_cell_entry-flags/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.2a/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_extd_entry.flags`](/en/tmux/3.2a/reference/c-struct-grid_extd_entry-flags/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`grid_default_cell`](/en/tmux/3.2a/reference/c-variable-grid_default_cell/) (attribute)
- [`GRID_FLAG_BG256`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_bg256/) (constant)
- [`GRID_FLAG_EXTENDED`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_extended/) (constant)
- [`GRID_FLAG_FG256`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_fg256/) (constant)
- [`grid_line`](/en/tmux/3.2a/reference/c-struct-grid_line/) (struct)
- [`grid_cell.us`](/en/tmux/3.2a/reference/c-struct-grid_cell-us/) (attribute)
- [`grid_extd_entry.us`](/en/tmux/3.2a/reference/c-struct-grid_extd_entry-us/) (attribute)
