# window_tree_draw

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L795
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_draw/

```c
static void window_tree_draw(void *modedata, void *itemdata, struct screen_write_ctx *ctx, u_int sx, u_int sy)
```

## Parameters

- `modedata` (`void *`)
- `itemdata` (`void *`)
- `ctx` (`struct screen_write_ctx *`)
- `sx` (`u_int`)
- `sy` (`u_int`)

## Calls

- [`screen_write_preview`](/en/tmux/3.2a/reference/c-function-screen_write_preview/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L817)
- [`window_tree_draw_session`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_draw_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L811)
- [`window_tree_draw_window`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_draw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L814)
- [`window_tree_pull_item`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_pull_item/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L803)

## Referenced by

- [`window_tree_init`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_init/) (function)

## Referenced declarations

- [`window_pane.base`](/en/tmux/3.2a/reference/c-struct-window_pane-base/) (attribute)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
- [`window_pane.sx`](/en/tmux/3.2a/reference/c-struct-window_pane-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/3.2a/reference/c-struct-window_pane-sy/) (attribute)
- [`window_tree_itemdata.type`](/en/tmux/3.2a/reference/c-struct-window_tree_itemdata-type/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`WINDOW_TREE_NONE`](/en/tmux/3.2a/reference/c-enum-window_tree_type-window_tree_none/) (constant)
- [`WINDOW_TREE_PANE`](/en/tmux/3.2a/reference/c-enum-window_tree_type-window_tree_pane/) (constant)
- [`WINDOW_TREE_SESSION`](/en/tmux/3.2a/reference/c-enum-window_tree_type-window_tree_session/) (constant)
- [`WINDOW_TREE_WINDOW`](/en/tmux/3.2a/reference/c-enum-window_tree_type-window_tree_window/) (constant)
