# menu_draw_cb

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L143
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-menu-c-menu_draw_cb/

```c
static void menu_draw_cb(struct client *c, struct screen_redraw_ctx *ctx0)
```

## Parameters

- `c` (`struct client *`)
- `ctx0` (`struct screen_redraw_ctx *`)

## Calls

- [`screen_write_clearscreen`](/en/tmux/3.2a/reference/c-function-screen_write_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L156)
- [`screen_write_menu`](/en/tmux/3.2a/reference/c-function-screen_write_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L157)
- [`screen_write_start`](/en/tmux/3.2a/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L155)
- [`screen_write_stop`](/en/tmux/3.2a/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L158)
- [`style_apply`](/en/tmux/3.2a/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L153)
- [`tty_draw_line`](/en/tmux/3.2a/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L161)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`menu_data.choice`](/en/tmux/3.2a/reference/c-struct-menu_data-choice/) (attribute)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`grid_default_cell`](/en/tmux/3.2a/reference/c-variable-grid_default_cell/) (attribute)
- [`menu_data.menu`](/en/tmux/3.2a/reference/c-struct-menu_data-menu/) (attribute)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`client.overlay_data`](/en/tmux/3.2a/reference/c-struct-client-overlay_data/) (attribute)
- [`menu_data.px`](/en/tmux/3.2a/reference/c-struct-menu_data-px/) (attribute)
- [`menu_data.py`](/en/tmux/3.2a/reference/c-struct-menu_data-py/) (attribute)
- [`menu_data.s`](/en/tmux/3.2a/reference/c-struct-menu_data-s/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx/) (struct)
- [`screen_size_y`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`client.tty`](/en/tmux/3.2a/reference/c-struct-client-tty/) (attribute)
- [`menu.width`](/en/tmux/3.2a/reference/c-struct-menu-width/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
