# screen_redraw_border_set

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

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

## Parameters

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

## 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#L1025)
- [`screen_redraw_make_pane_status`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L640)

## Calls

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

## Other function references

- [`tty_acs_double_borders`](/en/tmux/latest/reference/c-function-tty_acs_double_borders/) (function)
- [`tty_acs_heavy_borders`](/en/tmux/latest/reference/c-function-tty_acs_heavy_borders/) (function)
- [`window_pane_index`](/en/tmux/latest/reference/c-function-window_pane_index/) (function)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/latest/reference/c-struct-grid_cell-attr/) (attribute)
- [`CELL_BORDERS`](/en/tmux/latest/reference/c-define-tmux-h-cell_borders/) (constant)
- [`CELL_OUTSIDE`](/en/tmux/latest/reference/c-define-tmux-h-cell_outside/) (constant)
- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`window.fill_character`](/en/tmux/latest/reference/c-struct-window-fill_character/) (attribute)
- [`GRID_ATTR_CHARSET`](/en/tmux/latest/reference/c-define-tmux-h-grid_attr_charset/) (constant)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`pane_lines`](/en/tmux/latest/reference/c-enum-pane_lines/) (enum)
- [`PANE_LINES_DOUBLE`](/en/tmux/latest/reference/c-enum-pane_lines-pane_lines_double/) (constant)
- [`PANE_LINES_HEAVY`](/en/tmux/latest/reference/c-enum-pane_lines-pane_lines_heavy/) (constant)
- [`PANE_LINES_NUMBER`](/en/tmux/latest/reference/c-enum-pane_lines-pane_lines_number/) (constant)
- [`PANE_LINES_SIMPLE`](/en/tmux/latest/reference/c-enum-pane_lines-pane_lines_simple/) (constant)
- [`PANE_LINES_SPACES`](/en/tmux/latest/reference/c-enum-pane_lines-pane_lines_spaces/) (constant)
- [`SIMPLE_BORDERS`](/en/tmux/latest/reference/c-define-tmux-h-simple_borders/) (constant)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
