# layout_set_size_check

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

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

## Parameters

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

## Called by

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

## Calls

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

## Referenced by

- [`layout_split_pane`](/en/tmux/latest/reference/c-function-layout_split_pane/) (function)

## 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)
- [`layout_cell`](/en/tmux/latest/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/latest/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`layout_type`](/en/tmux/latest/reference/c-enum-layout_type/) (enum)
- [`LAYOUT_WINDOWPANE`](/en/tmux/latest/reference/c-enum-layout_type-layout_windowpane/) (constant)
- [`PANE_MINIMUM`](/en/tmux/latest/reference/c-define-tmux-h-pane_minimum/) (constant)
- [`layout_cell.sx`](/en/tmux/latest/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/latest/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/latest/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
