# layout_add_horizontal_border

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L346
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-layout-c-layout_add_horizontal_border/

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

## Parameters

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

## Called by

- [`layout_resize_check`](/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_check/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L454)
- [`layout_split_pane`](/en/tmux/3.7c/reference/c-function-layout_split_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1032)
- [`layout_spread_cell`](/en/tmux/3.7c/reference/c-function-layout_spread_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1239)

## Calls

- [`layout_cell_is_bottom`](/en/tmux/3.7c/reference/c-function-layout-c-layout_cell_is_bottom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L352)
- [`layout_cell_is_top`](/en/tmux/3.7c/reference/c-function-layout-c-layout_cell_is_top/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L350)

## Referenced by

- [`layout_fix_panes`](/en/tmux/3.7c/reference/c-function-layout_fix_panes/) (function)

## Referenced declarations

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