# screen_redraw_draw_borders_style

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

```c
static const struct grid_cell * screen_redraw_draw_borders_style(struct screen_redraw_ctx *ctx, u_int x, u_int y, struct window_pane *wp)
```

## Parameters

- `ctx` (`struct screen_redraw_ctx *`)
- `x` (`u_int`)
- `y` (`u_int`)
- `wp` (`struct window_pane *`)

## 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#L700)

## Calls

- [`format_create_defaults`](/en/tmux/3.2a/reference/c-function-format_create_defaults/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L667)
- [`format_free`](/en/tmux/3.2a/reference/c-function-format_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L672)
- [`screen_redraw_check_is`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_check_is/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L668)
- [`server_client_get_pane`](/en/tmux/3.2a/reference/c-function-server_client_get_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L659)
- [`style_apply`](/en/tmux/3.2a/reference/c-function-style_apply/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L669)

## Referenced declarations

- [`window_pane.border_gc`](/en/tmux/3.2a/reference/c-struct-window_pane-border_gc/) (attribute)
- [`window_pane.border_gc_set`](/en/tmux/3.2a/reference/c-struct-window_pane-border_gc_set/) (attribute)
- [`format_tree.c`](/en/tmux/3.2a/reference/c-struct-format_tree-c/) (attribute)
- [`screen_redraw_ctx.c`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-c/) (attribute)
- [`session.curw`](/en/tmux/3.2a/reference/c-struct-session-curw/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`screen_redraw_ctx.pane_status`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx-pane_status/) (attribute)
- [`format_tree.s`](/en/tmux/3.2a/reference/c-struct-format_tree-s/) (attribute)
- [`screen_redraw_ctx`](/en/tmux/3.2a/reference/c-struct-screen_redraw_ctx/) (struct)
- [`client.session`](/en/tmux/3.2a/reference/c-struct-client-session/) (attribute)
- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
- [`format_tree.wp`](/en/tmux/3.2a/reference/c-struct-format_tree-wp/) (attribute)
