# screen_redraw_border_set

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L93
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_border_set/

```c
static void screen_redraw_border_set(struct window_pane *wp, int pane_lines, int cell_type, struct grid_cell *gc)
```

## Parameters

- `wp` (`struct window_pane *`)
- `pane_lines` (`int`)
- `cell_type` (`int`)
- `gc` (`struct grid_cell *`)

## Called by

- [`screen_redraw_draw_borders_cell`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L709)
- [`screen_redraw_make_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L445)

## Calls

- [`utf8_copy`](/en/tmux/3.2a/reference/c-function-utf8_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L113)
- [`utf8_set`](/en/tmux/3.2a/reference/c-function-utf8_set/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L107)

## Other function references

- [`window_pane_index`](/en/tmux/3.2a/reference/c-function-window_pane_index/) (function)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.2a/reference/c-struct-grid_cell-attr/) (attribute)
- [`CELL_BORDERS`](/en/tmux/3.2a/reference/c-define-screen-redraw-c-cell_borders/) (constant)
- [`CELL_OUTSIDE`](/en/tmux/3.2a/reference/c-define-screen-redraw-c-cell_outside/) (constant)
- [`grid_cell.data`](/en/tmux/3.2a/reference/c-struct-grid_cell-data/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`PANE_LINES_DOUBLE`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_lines_double/) (constant)
- [`PANE_LINES_HEAVY`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_lines_heavy/) (constant)
- [`PANE_LINES_NUMBER`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_lines_number/) (constant)
- [`PANE_LINES_SIMPLE`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_lines_simple/) (constant)
- [`screen_redraw_double_borders`](/en/tmux/3.2a/reference/c-variable-screen-redraw-c-screen_redraw_double_borders/) (attribute)
- [`screen_redraw_heavy_borders`](/en/tmux/3.2a/reference/c-variable-screen-redraw-c-screen_redraw_heavy_borders/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
