# grid_reflow

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

```c
void grid_reflow(struct grid *gd, u_int sx)
```

## Parameters

- `gd` (`struct grid *`)
- `sx` (`u_int`)

## Called by

- [`screen_reflow`](/en/tmux/3.7c/reference/c-function-screen-c-screen_reflow/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L659)

## Calls

- [`grid_create`](/en/tmux/3.7c/reference/c-function-grid_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1443)
- [`grid_get_cell1`](/en/tmux/3.7c/reference/c-function-grid-c-grid_get_cell1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1467)
- [`grid_reflow_add`](/en/tmux/3.7c/reference/c-function-grid-c-grid_reflow_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1506)
- [`grid_reflow_join`](/en/tmux/3.7c/reference/c-function-grid-c-grid_reflow_join/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1497)
- [`grid_reflow_move`](/en/tmux/3.7c/reference/c-function-grid-c-grid_reflow_move/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1479)
- [`grid_reflow_split`](/en/tmux/3.7c/reference/c-function-grid-c-grid_reflow_split/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L1488)

## Referenced declarations

- [`grid_line.cellused`](/en/tmux/3.7c/reference/c-struct-grid_line-cellused/) (attribute)
- [`grid_cell.data`](/en/tmux/3.7c/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_line.flags`](/en/tmux/3.7c/reference/c-struct-grid_line-flags/) (attribute)
- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`GRID_LINE_DEAD`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_line_dead/) (constant)
- [`GRID_LINE_EXTENDED`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_line_extended/) (constant)
- [`GRID_LINE_WRAPPED`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid.hscrolled`](/en/tmux/3.7c/reference/c-struct-grid-hscrolled/) (attribute)
- [`grid.hsize`](/en/tmux/3.7c/reference/c-struct-grid-hsize/) (attribute)
- [`grid.linedata`](/en/tmux/3.7c/reference/c-struct-grid-linedata/) (attribute)
- [`grid.sx`](/en/tmux/3.7c/reference/c-struct-grid-sx/) (attribute)
- [`grid.sy`](/en/tmux/3.7c/reference/c-struct-grid-sy/) (attribute)
- [`utf8_data.width`](/en/tmux/3.7c/reference/c-struct-utf8_data-width/) (attribute)
