# layout_resize

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L496
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-layout_resize/

```c
void layout_resize(struct window *w, u_int sx, u_int sy)
```

## Parameters

- `w` (`struct window *`)
- `sx` (`u_int`)
- `sy` (`u_int`)

## Called by

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

## Calls

- [`layout_fix_offsets`](/en/tmux/3.2a/reference/c-function-layout_fix_offsets/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L542)
- [`layout_fix_panes`](/en/tmux/3.2a/reference/c-function-layout_fix_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L543)
- [`layout_resize_adjust`](/en/tmux/3.2a/reference/c-function-layout_resize_adjust/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L525)
- [`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#L515)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`window.layout_root`](/en/tmux/3.2a/reference/c-struct-window-layout_root/) (attribute)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_topbottom/) (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)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
