# layout_add_border

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L278
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-layout-c-layout_add_border/

```c
static int layout_add_border(struct window *w, struct layout_cell *lc, int status)
```

## Parameters

- `w` (`struct window *`)
- `lc` (`struct layout_cell *`)
- `status` (`int`)

## Called by

- [`layout_fix_panes`](/en/tmux/3.2a/reference/c-function-layout_fix_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L303)
- [`layout_resize_check`](/en/tmux/3.2a/reference/c-function-layout-c-layout_resize_check/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L350)
- [`layout_split_pane`](/en/tmux/3.2a/reference/c-function-layout_split_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L900)
- [`layout_spread_cell`](/en/tmux/3.2a/reference/c-function-layout_spread_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L1069)

## Calls

- [`layout_cell_is_bottom`](/en/tmux/3.2a/reference/c-function-layout-c-layout_cell_is_bottom/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L283)
- [`layout_cell_is_top`](/en/tmux/3.2a/reference/c-function-layout-c-layout_cell_is_top/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L281)

## Referenced declarations

- [`layout_cell`](/en/tmux/3.2a/reference/c-struct-layout_cell/) (struct)
- [`PANE_STATUS_BOTTOM`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_status_bottom/) (constant)
- [`PANE_STATUS_TOP`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_status_top/) (constant)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
