# layout_resize_check

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

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

## Parameters

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

## Called by

- [`layout_new_pane_size`](/en/tmux/3.7c/reference/c-function-layout-c-layout_new_pane_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L850)
- [`layout_resize`](/en/tmux/3.7c/reference/c-function-layout_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L636)
- [`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#L527)
- [`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#L467)
- [`layout_resize_pane_grow`](/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_pane_grow/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L767)
- [`layout_resize_pane_shrink`](/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_pane_shrink/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L805)

## Calls

- [`layout_add_horizontal_border`](/en/tmux/3.7c/reference/c-function-layout-c-layout_add_horizontal_border/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L454)
- [`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#L467)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L441)

## Referenced declarations

- [`window.active`](/en/tmux/3.7c/reference/c-struct-window-active/) (attribute)
- [`layout_cell.cells`](/en/tmux/3.7c/reference/c-struct-layout_cell-cells/) (attribute)
- [`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)
- [`LAYOUT_WINDOWPANE`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_windowpane/) (constant)
- [`window.options`](/en/tmux/3.7c/reference/c-struct-window-options/) (attribute)
- [`style.pad`](/en/tmux/3.7c/reference/c-struct-style-pad/) (attribute)
- [`PANE_MINIMUM`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_minimum/) (constant)
- [`PANE_SCROLLBARS_OFF`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_scrollbars_off/) (constant)
- [`window.sb`](/en/tmux/3.7c/reference/c-struct-window-sb/) (attribute)
- [`window_pane.scrollbar_style`](/en/tmux/3.7c/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`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)
- [`style.width`](/en/tmux/3.7c/reference/c-struct-style-width/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
