# layout_new_pane_size

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

```c
static u_int layout_new_pane_size(struct window *, u_int, struct layout_cell *, enum layout_type, u_int, u_int, u_int)
```

## Parameters

- `w` (`struct window *`)
- `previous` (`u_int`)
- `lc` (`struct layout_cell *`)
- `layout_type` (`enum`)
- `size` (`u_int`)
- `count_left` (`u_int`)
- `size_left` (`u_int`)

## Called by

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

## Calls

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

## Referenced declarations

- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`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)
- [`PANE_MINIMUM`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_minimum/) (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)
