# window_resize

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

```c
void window_resize(struct window *w, u_int sx, u_int sy, int xpixel, int ypixel)
```

## Parameters

- `w` (`struct window *`)
- `sx` (`u_int`)
- `sy` (`u_int`)
- `xpixel` (`int`)
- `ypixel` (`int`)

## Called by

- [`layout_parse`](/en/tmux/latest/reference/c-function-layout_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L265)
- [`layout_set_even`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_even/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L189)
- [`layout_set_main_h`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L303)
- [`layout_set_main_h_mirrored`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_h_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L405)
- [`layout_set_main_v`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L507)
- [`layout_set_main_v_mirrored`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_v_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L609)
- [`layout_set_tiled`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L730)
- [`resize_window`](/en/tmux/latest/reference/c-function-resize_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L53)

## Calls

- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L426)

## Referenced declarations

- [`DEFAULT_XPIXEL`](/en/tmux/latest/reference/c-define-tmux-h-default_xpixel/) (constant)
- [`DEFAULT_YPIXEL`](/en/tmux/latest/reference/c-define-tmux-h-default_ypixel/) (constant)
- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`window.sx`](/en/tmux/latest/reference/c-struct-window-sx/) (attribute)
- [`window.sy`](/en/tmux/latest/reference/c-struct-window-sy/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`window.xpixel`](/en/tmux/latest/reference/c-struct-window-xpixel/) (attribute)
- [`window.ypixel`](/en/tmux/latest/reference/c-struct-window-ypixel/) (attribute)
