# screen_redraw_check_cell

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L429
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_check_cell/

```c
static int screen_redraw_check_cell(struct screen_redraw_ctx *ctx, int px, int py, struct window_pane **wpp)
```

## Parameters

- `ctx` (`struct screen_redraw_ctx *`)
- `px` (`int`)
- `py` (`int`)
- `wpp` (`struct window_pane **`)

## Called by

- [`screen_redraw_draw_borders_cell`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1005)

## Calls

- [`screen_redraw_pane_border`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_pane_border/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L554)
- [`screen_redraw_type_of_cell`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_type_of_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L478)
- [`server_client_get_pane`](/en/tmux/latest/reference/c-function-server_client_get_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L472)
- [`window_pane_is_floating`](/en/tmux/latest/reference/c-function-window_pane_is_floating/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L449)
- [`window_pane_show_scrollbar`](/en/tmux/latest/reference/c-function-window_pane_show_scrollbar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L528)
- [`window_pane_visible`](/en/tmux/latest/reference/c-function-window_pane_visible/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L488)

## Referenced declarations

- [`screen_redraw_ctx.c`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-c/) (attribute)
- [`CELL_INSIDE`](/en/tmux/latest/reference/c-define-tmux-h-cell_inside/) (constant)
- [`CELL_OUTSIDE`](/en/tmux/latest/reference/c-define-tmux-h-cell_outside/) (constant)
- [`CELL_SCROLLBAR`](/en/tmux/latest/reference/c-define-tmux-h-cell_scrollbar/) (constant)
- [`session.curw`](/en/tmux/latest/reference/c-struct-session-curw/) (attribute)
- [`screen_redraw_ctx.oy`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-oy/) (attribute)
- [`style.pad`](/en/tmux/latest/reference/c-struct-style-pad/) (attribute)
- [`PANE_SCROLLBARS_LEFT`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_left/) (constant)
- [`PANE_SCROLLBARS_OFF`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_off/) (constant)
- [`PANE_SCROLLBARS_RIGHT`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_right/) (constant)
- [`screen_redraw_ctx.pane_status`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx-pane_status/) (attribute)
- [`PANE_STATUS_OFF`](/en/tmux/latest/reference/c-define-tmux-h-pane_status_off/) (constant)
- [`PANE_STATUS_TOP`](/en/tmux/latest/reference/c-define-tmux-h-pane_status_top/) (constant)
- [`window.sb`](/en/tmux/latest/reference/c-struct-window-sb/) (attribute)
- [`window.sb_pos`](/en/tmux/latest/reference/c-struct-window-sb_pos/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx/) (struct)
- [`SCREEN_REDRAW_INSIDE`](/en/tmux/latest/reference/c-enum-screen_redraw_border_type-screen_redraw_inside/) (constant)
- [`SCREEN_REDRAW_OUTSIDE`](/en/tmux/latest/reference/c-enum-screen_redraw_border_type-screen_redraw_outside/) (constant)
- [`window_pane.scrollbar_style`](/en/tmux/latest/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`client.session`](/en/tmux/latest/reference/c-struct-client-session/) (attribute)
- [`window_pane.status_size`](/en/tmux/latest/reference/c-struct-window_pane-status_size/) (attribute)
- [`window_pane.sx`](/en/tmux/latest/reference/c-struct-window_pane-sx/) (attribute)
- [`window.sx`](/en/tmux/latest/reference/c-struct-window-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/latest/reference/c-struct-window_pane-sy/) (attribute)
- [`window.sy`](/en/tmux/latest/reference/c-struct-window-sy/) (attribute)
- [`style.width`](/en/tmux/latest/reference/c-struct-style-width/) (attribute)
- [`winlink.window`](/en/tmux/latest/reference/c-struct-winlink-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`window_pane.xoff`](/en/tmux/latest/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/latest/reference/c-struct-window_pane-yoff/) (attribute)
- [`window.z_index`](/en/tmux/latest/reference/c-struct-window-z_index/) (attribute)
- [`window_pane.zentry`](/en/tmux/latest/reference/c-struct-window_pane-zentry/) (attribute)
