# grid_get_cell1

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L543
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L589)
- [`grid_reflow`](/en/tmux/latest/reference/c-function-grid_reflow/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1467)
- [`grid_reflow_join`](/en/tmux/latest/reference/c-function-grid-c-grid_reflow_join/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1305)
- [`grid_reflow_split`](/en/tmux/latest/reference/c-function-grid-c-grid_reflow_split/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1380)

## Calls

- [`grid_set_tab`](/en/tmux/latest/reference/c-function-grid_set_tab/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L561)
- [`utf8_set`](/en/tmux/latest/reference/c-function-utf8_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L577)
- [`utf8_to_data`](/en/tmux/latest/reference/c-function-utf8_to_data/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L563)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/latest/reference/c-struct-grid_cell-attr/) (attribute)
- [`grid_extd_entry.attr`](/en/tmux/latest/reference/c-struct-grid_extd_entry-attr/) (attribute)
- [`grid_cell.bg`](/en/tmux/latest/reference/c-struct-grid_cell-bg/) (attribute)
- [`grid_extd_entry.bg`](/en/tmux/latest/reference/c-struct-grid_extd_entry-bg/) (attribute)
- [`grid_line.celldata`](/en/tmux/latest/reference/c-struct-grid_line-celldata/) (attribute)
- [`COLOUR_FLAG_256`](/en/tmux/latest/reference/c-define-tmux-h-colour_flag_256/) (constant)
- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_extd_entry.data`](/en/tmux/latest/reference/c-struct-grid_extd_entry-data/) (attribute)
- [`grid_line.extddata`](/en/tmux/latest/reference/c-struct-grid_line-extddata/) (attribute)
- [`grid_line.extdsize`](/en/tmux/latest/reference/c-struct-grid_line-extdsize/) (attribute)
- [`grid_cell.fg`](/en/tmux/latest/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_extd_entry.fg`](/en/tmux/latest/reference/c-struct-grid_extd_entry-fg/) (attribute)
- [`grid_cell_entry.flags`](/en/tmux/latest/reference/c-struct-grid_cell_entry-flags/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_extd_entry.flags`](/en/tmux/latest/reference/c-struct-grid_extd_entry-flags/) (attribute)
- [`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_FLAG_BG256`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_bg256/) (constant)
- [`GRID_FLAG_EXTENDED`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_extended/) (constant)
- [`GRID_FLAG_FG256`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_fg256/) (constant)
- [`GRID_FLAG_TAB`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_tab/) (constant)
- [`grid_line`](/en/tmux/latest/reference/c-struct-grid_line/) (struct)
- [`grid_cell.link`](/en/tmux/latest/reference/c-struct-grid_cell-link/) (attribute)
- [`grid_extd_entry.link`](/en/tmux/latest/reference/c-struct-grid_extd_entry-link/) (attribute)
- [`grid_cell.us`](/en/tmux/latest/reference/c-struct-grid_cell-us/) (attribute)
- [`grid_extd_entry.us`](/en/tmux/latest/reference/c-struct-grid_extd_entry-us/) (attribute)
