# layout_resize_pane

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L730
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L133)
- [`layout_resize_pane_to`](/en/tmux/latest/reference/c-function-layout_resize_pane_to/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L697)

## Calls

- [`layout_resize_layout`](/en/tmux/latest/reference/c-function-layout_resize_layout/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L750)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/latest/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/latest/reference/c-struct-layout_cell-entry/) (attribute)
- [`window_pane.layout_cell`](/en/tmux/latest/reference/c-struct-window_pane-layout_cell/) (attribute)
- [`layout_type`](/en/tmux/latest/reference/c-enum-layout_type/) (enum)
- [`layout_cell.parent`](/en/tmux/latest/reference/c-struct-layout_cell-parent/) (attribute)
- [`layout_cell.type`](/en/tmux/latest/reference/c-struct-layout_cell-type/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`layout_cell.wp`](/en/tmux/latest/reference/c-struct-layout_cell-wp/) (attribute)
