# layout_resize_adjust

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L487
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-layout_destroy_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L560)
- [`layout_resize`](/en/tmux/3.7c/reference/c-function-layout_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L646)
- [`layout_resize_adjust`](/en/tmux/3.7c/reference/c-function-layout_resize_adjust/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L507)
- [`layout_resize_pane_grow`](/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_pane_grow/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L789)
- [`layout_resize_pane_shrink`](/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_pane_shrink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L821)
- [`layout_set_tiled`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L712)
- [`layout_spread_cell`](/en/tmux/3.7c/reference/c-function-layout_spread_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1266)

## Calls

- [`layout_resize_adjust`](/en/tmux/3.7c/reference/c-function-layout_resize_adjust/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L507)
- [`layout_resize_check`](/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_check/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L527)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.7c/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/3.7c/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell.flags`](/en/tmux/3.7c/reference/c-struct-layout_cell-flags/) (attribute)
- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_CELL_FLOATING`](/en/tmux/3.7c/reference/c-define-tmux-h-layout_cell_floating/) (constant)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`layout_type`](/en/tmux/3.7c/reference/c-enum-layout_type/) (enum)
- [`LAYOUT_WINDOWPANE`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_windowpane/) (constant)
- [`layout_cell.sx`](/en/tmux/3.7c/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.7c/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.7c/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
