# layout_create_cell

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

```c
struct layout_cell * layout_create_cell(struct layout_cell *lcparent)
```

## Parameters

- `lcparent` (`struct layout_cell *`)

## Called by

- [`layout_construct`](/en/tmux/3.2a/reference/c-function-layout-custom-c-layout_construct/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-custom.c#L308)
- [`layout_init`](/en/tmux/3.2a/reference/c-function-layout_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L482)
- [`layout_set_even`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_even/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L134)
- [`layout_set_main_h`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L238)
- [`layout_set_main_v`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L336)
- [`layout_set_tiled`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L413)
- [`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#L947)

## Calls

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

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## 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)
- [`LAYOUT_WINDOWPANE`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_windowpane/) (constant)
- [`layout_cell.parent`](/en/tmux/3.2a/reference/c-struct-layout_cell-parent/) (attribute)
- [`layout_cell.sx`](/en/tmux/3.2a/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.2a/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.2a/reference/c-struct-layout_cell-type/) (attribute)
- [`layout_cell.wp`](/en/tmux/3.2a/reference/c-struct-layout_cell-wp/) (attribute)
- [`layout_cell.xoff`](/en/tmux/3.2a/reference/c-struct-layout_cell-xoff/) (attribute)
- [`layout_cell.yoff`](/en/tmux/3.2a/reference/c-struct-layout_cell-yoff/) (attribute)
