# tty_check_overlay

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

```c
static int tty_check_overlay(struct tty *tty, u_int px, u_int py)
```

## Parameters

- `tty` (`struct tty *`)
- `px` (`u_int`)
- `py` (`u_int`)

## Called by

- [`tty_draw_line`](/en/tmux/3.2a/reference/c-function-tty_draw_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/tty.c#L1388)

## Referenced declarations

- [`tty.client`](/en/tmux/3.2a/reference/c-struct-tty-client/) (attribute)
- [`client.overlay_check`](/en/tmux/3.2a/reference/c-struct-client-overlay_check/) (attribute)
- [`tty`](/en/tmux/3.2a/reference/c-struct-tty/) (struct)
