# menu_draw_cb

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

```c
void menu_draw_cb(struct client *c, void *data, struct screen_redraw_ctx *rctx)
```

## Parameters

- `c` (`struct client *`)
- `data` (`void *`)
- `rctx` (`struct screen_redraw_ctx *`)

## Called by

- [`popup_draw_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_draw_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L343)

## Calls

- [`menu_reapply_styles`](/en/tmux/3.7c/reference/c-function-menu-c-menu_reapply_styles/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L270)
- [`screen_write_box`](/en/tmux/3.7c/reference/c-function-screen_write_box/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L276)
- [`screen_write_clearscreen`](/en/tmux/3.7c/reference/c-function-screen_write_clearscreen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L273)
- [`screen_write_menu`](/en/tmux/3.7c/reference/c-function-screen_write_menu/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L280)
- [`screen_write_start`](/en/tmux/3.7c/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L272)
- [`screen_write_stop`](/en/tmux/3.7c/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L282)
- [`tty_draw_line`](/en/tmux/3.7c/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L285)

## Referenced by

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

## Referenced declarations

- [`__unused`](/en/tmux/3.7c/reference/c-define-compat-h-__unused/) (constant)
- [`menu_data.border_lines`](/en/tmux/3.7c/reference/c-struct-menu_data-border_lines/) (attribute)
- [`menu_data.border_style_gc`](/en/tmux/3.7c/reference/c-struct-menu_data-border_style_gc/) (attribute)
- [`BOX_LINES_NONE`](/en/tmux/3.7c/reference/c-enum-box_lines-box_lines_none/) (constant)
- [`menu_data.choice`](/en/tmux/3.7c/reference/c-struct-menu_data-choice/) (attribute)
- [`client`](/en/tmux/3.7c/reference/c-struct-client/) (struct)
- [`menu.count`](/en/tmux/3.7c/reference/c-struct-menu-count/) (attribute)
- [`menu_data.data`](/en/tmux/3.7c/reference/c-struct-menu_data-data/) (attribute)
- [`grid_default_cell`](/en/tmux/3.7c/reference/c-variable-grid_default_cell/) (attribute)
- [`menu_data.menu`](/en/tmux/3.7c/reference/c-struct-menu_data-menu/) (attribute)
- [`menu_data.px`](/en/tmux/3.7c/reference/c-struct-menu_data-px/) (attribute)
- [`menu_data.py`](/en/tmux/3.7c/reference/c-struct-menu_data-py/) (attribute)
- [`menu_data.s`](/en/tmux/3.7c/reference/c-struct-menu_data-s/) (attribute)
- [`screen_write_ctx.s`](/en/tmux/3.7c/reference/c-struct-screen_write_ctx-s/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx/) (struct)
- [`screen_size_y`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`menu_data.selected_style_gc`](/en/tmux/3.7c/reference/c-struct-menu_data-selected_style_gc/) (attribute)
- [`menu_data.style_gc`](/en/tmux/3.7c/reference/c-struct-menu_data-style_gc/) (attribute)
- [`menu.title`](/en/tmux/3.7c/reference/c-struct-menu-title/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`menu.width`](/en/tmux/3.7c/reference/c-struct-menu-width/) (attribute)
