# layout_new_pane_size

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L719
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-layout-c-layout_resize_child_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L848)
- [`layout_set_size_check`](/en/tmux/3.2a/reference/c-function-layout-c-layout_set_size_check/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L785)

## Calls

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

## Referenced declarations

- [`layout_cell`](/en/tmux/3.2a/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`layout_type`](/en/tmux/3.2a/reference/c-enum-layout_type/) (enum)
- [`PANE_MINIMUM`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_minimum/) (constant)
- [`layout_cell.sx`](/en/tmux/3.2a/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.2a/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.2a/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
