# layout_resize_layout

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

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

## Parameters

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

## Called by

- [`cmd_resize_pane_mouse_update`](/en/tmux/3.2a/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_mouse_update/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-resize-pane.c#L195)
- [`layout_resize_pane`](/en/tmux/3.2a/reference/c-function-layout_resize_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L629)

## Calls

- [`layout_fix_offsets`](/en/tmux/3.2a/reference/c-function-layout_fix_offsets/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L602)
- [`layout_fix_panes`](/en/tmux/3.2a/reference/c-function-layout_fix_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L603)
- [`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#L589)
- [`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#L593)
- [`notify_window`](/en/tmux/3.2a/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L604)

## Referenced by

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

## Referenced declarations

- [`layout_cell`](/en/tmux/3.2a/reference/c-struct-layout_cell/) (struct)
- [`layout_type`](/en/tmux/3.2a/reference/c-enum-layout_type/) (enum)
- [`layout_cell.type`](/en/tmux/3.2a/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
