# layout_resize_pane_grow

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L755
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_pane_grow/

```c
static int layout_resize_pane_grow(struct window *, struct layout_cell *, enum layout_type, int, int)
```

## Parameters

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

## Called by

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

## 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#L789)
- [`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#L767)

## Referenced declarations

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