# layout_resize_pane

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

```c
void layout_resize_pane(struct window_pane *wp, enum layout_type type, int change, int opposite)
```

## Parameters

- `wp` (`struct window_pane *`)
- `type` (`enum layout_type`)
- `change` (`int`)
- `opposite` (`int`)

## Called by

- [`cmd_resize_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-resize-pane.c#L128)
- [`layout_resize_pane_to`](/en/tmux/3.2a/reference/c-function-layout_resize_pane_to/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L576)

## Calls

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

## 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)
- [`window_pane.layout_cell`](/en/tmux/3.2a/reference/c-struct-window_pane-layout_cell/) (attribute)
- [`layout_type`](/en/tmux/3.2a/reference/c-enum-layout_type/) (enum)
- [`layout_cell.parent`](/en/tmux/3.2a/reference/c-struct-layout_cell-parent/) (attribute)
- [`layout_cell.type`](/en/tmux/3.2a/reference/c-struct-layout_cell-type/) (attribute)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`layout_cell.wp`](/en/tmux/3.2a/reference/c-struct-layout_cell-wp/) (attribute)
