# layout_cell_is_top

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

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

## Parameters

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

## Called by

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

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.2a/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell`](/en/tmux/3.2a/reference/c-struct-layout_cell/) (struct)
- [`window.layout_root`](/en/tmux/3.2a/reference/c-struct-window-layout_root/) (attribute)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_topbottom/) (constant)
- [`layout_cell.parent`](/en/tmux/3.2a/reference/c-struct-layout_cell-parent/) (attribute)
- [`layout_cell.type`](/en/tmux/3.2a/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
