# menu_check_cb

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

```c
struct visible_ranges * menu_check_cb(struct client *c, void *data, u_int px, u_int py, u_int nx)
```

## Parameters

- `c` (`struct client *`)
- `data` (`void *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `nx` (`u_int`)

## Called by

- [`popup_check_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_check_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L250)

## Calls

- [`server_client_overlay_range`](/en/tmux/latest/reference/c-function-server_client_overlay_range/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L200)

## Referenced by

- [`menu_display`](/en/tmux/latest/reference/c-function-menu_display/) (function)
- [`popup_draw_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_draw_cb/) (function)
- [`popup_job_update_cb`](/en/tmux/latest/reference/c-function-popup-c-popup_job_update_cb/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/latest/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`menu.count`](/en/tmux/latest/reference/c-struct-menu-count/) (attribute)
- [`menu_data.data`](/en/tmux/latest/reference/c-struct-menu_data-data/) (attribute)
- [`menu_data.menu`](/en/tmux/latest/reference/c-struct-menu_data-menu/) (attribute)
- [`menu_data.px`](/en/tmux/latest/reference/c-struct-menu_data-px/) (attribute)
- [`menu_data.py`](/en/tmux/latest/reference/c-struct-menu_data-py/) (attribute)
- [`menu_data.r`](/en/tmux/latest/reference/c-struct-menu_data-r/) (attribute)
- [`visible_ranges`](/en/tmux/latest/reference/c-struct-visible_ranges/) (struct)
- [`menu.width`](/en/tmux/latest/reference/c-struct-menu-width/) (attribute)
