# grid_need_extended_cell

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

```c
static int grid_need_extended_cell(const struct grid_cell_entry *gce, const struct grid_cell *gc)
```

## Parameters

- `gce` (`const struct grid_cell_entry *`)
- `gc` (`const struct grid_cell *`)

## Called by

- [`grid_set_cell`](/en/tmux/3.2a/reference/c-function-grid_set_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L555)
- [`grid_set_cells`](/en/tmux/3.2a/reference/c-function-grid_set_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/grid.c#L589)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.2a/reference/c-struct-grid_cell-attr/) (attribute)
- [`grid_cell.bg`](/en/tmux/3.2a/reference/c-struct-grid_cell-bg/) (attribute)
- [`COLOUR_FLAG_RGB`](/en/tmux/3.2a/reference/c-define-tmux-h-colour_flag_rgb/) (constant)
- [`grid_cell.data`](/en/tmux/3.2a/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_cell.fg`](/en/tmux/3.2a/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_cell_entry.flags`](/en/tmux/3.2a/reference/c-struct-grid_cell_entry-flags/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`grid_cell_entry`](/en/tmux/3.2a/reference/c-struct-grid_cell_entry/) (struct)
- [`GRID_FLAG_EXTENDED`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_flag_extended/) (constant)
- [`utf8_data.size`](/en/tmux/3.2a/reference/c-struct-utf8_data-size/) (attribute)
- [`grid_cell.us`](/en/tmux/3.2a/reference/c-struct-grid_cell-us/) (attribute)
- [`utf8_data.width`](/en/tmux/3.2a/reference/c-struct-utf8_data-width/) (attribute)
