# window_zoom

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

```c
int window_zoom(struct window_pane *wp)
```

## Parameters

- `wp` (`struct window_pane *`)

## Called by

- [`cmd_resize_pane_exec`](/en/tmux/3.7c/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L86)
- [`resize_window`](/en/tmux/3.7c/reference/c-function-resize_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/resize.c#L59)
- [`window_pop_zoom`](/en/tmux/3.7c/reference/c-function-window_pop_zoom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L793)

## Calls

- [`layout_init`](/en/tmux/3.7c/reference/c-function-layout_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L742)
- [`notify_window`](/en/tmux/3.7c/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L744)
- [`window_count_panes`](/en/tmux/3.7c/reference/c-function-window_count_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L729)
- [`window_set_active_pane`](/en/tmux/3.7c/reference/c-function-window_set_active_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L733)

## Referenced by

- [`mode_tree_zoom`](/en/tmux/3.7c/reference/c-function-mode_tree_zoom/) (function)

## Referenced declarations

- [`window.active`](/en/tmux/3.7c/reference/c-struct-window-active/) (attribute)
- [`window_pane.entry`](/en/tmux/3.7c/reference/c-struct-window_pane-entry/) (attribute)
- [`window_pane.flags`](/en/tmux/3.7c/reference/c-struct-window_pane-flags/) (attribute)
- [`window.flags`](/en/tmux/3.7c/reference/c-struct-window-flags/) (attribute)
- [`window_pane.layout_cell`](/en/tmux/3.7c/reference/c-struct-window_pane-layout_cell/) (attribute)
- [`window.layout_root`](/en/tmux/3.7c/reference/c-struct-window-layout_root/) (attribute)
- [`PANE_ZOOMED`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_zoomed/) (constant)
- [`window.panes`](/en/tmux/3.7c/reference/c-struct-window-panes/) (attribute)
- [`window_pane.saved_layout_cell`](/en/tmux/3.7c/reference/c-struct-window_pane-saved_layout_cell/) (attribute)
- [`window.saved_layout_root`](/en/tmux/3.7c/reference/c-struct-window-saved_layout_root/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`WINDOW_ZOOMED`](/en/tmux/3.7c/reference/c-define-tmux-h-window_zoomed/) (constant)
