# window_zoom

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L583
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-resize-pane.c#L92)
- [`resize_window`](/en/tmux/3.2a/reference/c-function-resize_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/resize.c#L59)
- [`window_pop_zoom`](/en/tmux/3.2a/reference/c-function-window_pop_zoom/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L651)

## Calls

- [`layout_init`](/en/tmux/3.2a/reference/c-function-layout_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L603)
- [`notify_window`](/en/tmux/3.2a/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L605)
- [`window_count_panes`](/en/tmux/3.2a/reference/c-function-window_count_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L591)
- [`window_set_active_pane`](/en/tmux/3.2a/reference/c-function-window_set_active_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L595)

## Referenced by

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

## Referenced declarations

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