# layout_destroy_cell

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

```c
void layout_destroy_cell(struct window *w, struct layout_cell *lc, struct layout_cell **lcroot)
```

## Parameters

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

## Called by

- [`layout_close_pane`](/en/tmux/3.7c/reference/c-function-layout_close_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1210)
- [`layout_parse`](/en/tmux/3.7c/reference/c-function-layout_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L226)

## Calls

- [`layout_free_cell`](/en/tmux/3.7c/reference/c-function-layout_free_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L547)
- [`layout_resize_adjust`](/en/tmux/3.7c/reference/c-function-layout_resize_adjust/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L560)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.7c/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/3.7c/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell.flags`](/en/tmux/3.7c/reference/c-struct-layout_cell-flags/) (attribute)
- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_CELL_FLOATING`](/en/tmux/3.7c/reference/c-define-tmux-h-layout_cell_floating/) (constant)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`layout_cell.parent`](/en/tmux/3.7c/reference/c-struct-layout_cell-parent/) (attribute)
- [`layout_cell.sx`](/en/tmux/3.7c/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.7c/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.7c/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
- [`layout_cell.wp`](/en/tmux/3.7c/reference/c-struct-layout_cell-wp/) (attribute)
- [`layout_cell.xoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-xoff/) (attribute)
- [`layout_cell.yoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-yoff/) (attribute)
