# layout_resize_adjust

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

```c
void layout_resize_adjust(struct window *w, struct layout_cell *lc, enum layout_type type, int change)
```

## Parameters

- `w` (`struct window *`)
- `lc` (`struct layout_cell *`)
- `type` (`enum layout_type`)
- `change` (`int`)

## Called by

- [`layout_destroy_cell`](/en/tmux/3.2a/reference/c-function-layout_destroy_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L450)
- [`layout_resize`](/en/tmux/3.2a/reference/c-function-layout_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L525)
- [`layout_resize_adjust`](/en/tmux/3.2a/reference/c-function-layout_resize_adjust/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L401)
- [`layout_resize_pane_grow`](/en/tmux/3.2a/reference/c-function-layout-c-layout_resize_pane_grow/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L668)
- [`layout_resize_pane_shrink`](/en/tmux/3.2a/reference/c-function-layout-c-layout_resize_pane_shrink/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L700)
- [`layout_set_tiled`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L466)
- [`layout_spread_cell`](/en/tmux/3.2a/reference/c-function-layout_spread_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L1088)

## Calls

- [`layout_resize_adjust`](/en/tmux/3.2a/reference/c-function-layout_resize_adjust/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L401)
- [`layout_resize_check`](/en/tmux/3.2a/reference/c-function-layout-c-layout_resize_check/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L418)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.2a/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/3.2a/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell`](/en/tmux/3.2a/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`layout_type`](/en/tmux/3.2a/reference/c-enum-layout_type/) (enum)
- [`LAYOUT_WINDOWPANE`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_windowpane/) (constant)
- [`layout_cell.sx`](/en/tmux/3.2a/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.2a/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.2a/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
