# window_client_draw

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

```c
static void window_client_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_cursormove`](/en/tmux/3.2a/reference/c-function-screen_write_cursormove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L238)
- [`screen_write_fast_copy`](/en/tmux/3.2a/reference/c-function-screen_write_fast_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L251)
- [`screen_write_hline`](/en/tmux/3.2a/reference/c-function-screen_write_hline/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L245)
- [`screen_write_preview`](/en/tmux/3.2a/reference/c-function-screen_write_preview/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L239)
- [`status_at_line`](/en/tmux/3.2a/reference/c-function-status_at_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L233)
- [`status_line_size`](/en/tmux/3.2a/reference/c-function-status_line_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L230)

## Referenced by

- [`window_client_init`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_init/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`window.active`](/en/tmux/3.2a/reference/c-struct-window-active/) (attribute)
- [`window_pane.base`](/en/tmux/3.2a/reference/c-struct-window_pane-base/) (attribute)
- [`window_client_itemdata.c`](/en/tmux/3.2a/reference/c-struct-window_client_itemdata-c/) (attribute)
- [`CLIENT_UNATTACHEDFLAGS`](/en/tmux/3.2a/reference/c-define-tmux-h-client_unattachedflags/) (constant)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`screen.cx`](/en/tmux/3.2a/reference/c-struct-screen-cx/) (attribute)
- [`screen.cy`](/en/tmux/3.2a/reference/c-struct-screen-cy/) (attribute)
- [`client.flags`](/en/tmux/3.2a/reference/c-struct-client-flags/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`status_line.screen`](/en/tmux/3.2a/reference/c-struct-status_line-screen/) (attribute)
- [`screen_write_ctx`](/en/tmux/3.2a/reference/c-struct-screen_write_ctx/) (struct)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`client.status`](/en/tmux/3.2a/reference/c-struct-client-status/) (attribute)
- [`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)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
