# screen_redraw_pane_border

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

```c
static enum screen_redraw_border_type screen_redraw_pane_border(struct screen_redraw_ctx *ctx, struct window_pane *wp, int px, int py)
```

## Parameters

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

## Called by

- [`screen_redraw_cell_border1`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_cell_border1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L262)
- [`screen_redraw_check_cell`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_check_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L554)
- [`screen_redraw_check_is`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_check_is/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L579)
- [`screen_redraw_draw_border_arrows`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_draw_border_arrows/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L932)

## Calls

- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L167)
- [`screen_redraw_two_panes`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_two_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L170)
- [`window_pane_is_floating`](/en/tmux/3.7c/reference/c-function-window_pane_is_floating/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L143)
- [`window_pane_show_scrollbar`](/en/tmux/3.7c/reference/c-function-window_pane_show_scrollbar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L139)

## Referenced declarations

- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_topbottom/) (constant)
- [`window.options`](/en/tmux/3.7c/reference/c-struct-window-options/) (attribute)
- [`style.pad`](/en/tmux/3.7c/reference/c-struct-style-pad/) (attribute)
- [`PANE_BORDER_BOTH`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_border_both/) (constant)
- [`PANE_BORDER_COLOUR`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_border_colour/) (constant)
- [`PANE_SCROLLBARS_LEFT`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_scrollbars_left/) (constant)
- [`PANE_SCROLLBARS_OFF`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_scrollbars_off/) (constant)
- [`screen_redraw_ctx.pane_status`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-pane_status/) (attribute)
- [`PANE_STATUS_BOTTOM`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_status_bottom/) (constant)
- [`PANE_STATUS_OFF`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_status_off/) (constant)
- [`PANE_STATUS_TOP`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_status_top/) (constant)
- [`window.sb`](/en/tmux/3.7c/reference/c-struct-window-sb/) (attribute)
- [`window.sb_pos`](/en/tmux/3.7c/reference/c-struct-window-sb_pos/) (attribute)
- [`SCREEN_REDRAW_BORDER_BOTTOM`](/en/tmux/3.7c/reference/c-enum-screen_redraw_border_type-screen_redraw_border_bottom/) (constant)
- [`SCREEN_REDRAW_BORDER_LEFT`](/en/tmux/3.7c/reference/c-enum-screen_redraw_border_type-screen_redraw_border_left/) (constant)
- [`SCREEN_REDRAW_BORDER_RIGHT`](/en/tmux/3.7c/reference/c-enum-screen_redraw_border_type-screen_redraw_border_right/) (constant)
- [`SCREEN_REDRAW_BORDER_TOP`](/en/tmux/3.7c/reference/c-enum-screen_redraw_border_type-screen_redraw_border_top/) (constant)
- [`screen_redraw_border_type`](/en/tmux/3.7c/reference/c-enum-screen_redraw_border_type/) (enum)
- [`screen_redraw_ctx`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx/) (struct)
- [`SCREEN_REDRAW_INSIDE`](/en/tmux/3.7c/reference/c-enum-screen_redraw_border_type-screen_redraw_inside/) (constant)
- [`SCREEN_REDRAW_OUTSIDE`](/en/tmux/3.7c/reference/c-enum-screen_redraw_border_type-screen_redraw_outside/) (constant)
- [`window_pane.scrollbar_style`](/en/tmux/3.7c/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`window_pane.sx`](/en/tmux/3.7c/reference/c-struct-window_pane-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/3.7c/reference/c-struct-window_pane-sy/) (attribute)
- [`style.width`](/en/tmux/3.7c/reference/c-struct-style-width/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`window_pane.xoff`](/en/tmux/3.7c/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/3.7c/reference/c-struct-window_pane-yoff/) (attribute)
