# layout_construct

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

```c
static int layout_construct(struct layout_cell *, const char **, struct layout_cell **)
```

## Parameters

- `lcparent` (`struct layout_cell *`)
- `layout` (`const char **`)
- `lc` (`struct layout_cell **`)

## Called by

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

## Calls

- [`layout_construct`](/en/tmux/3.7c/reference/c-function-layout-custom-c-layout_construct/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L402)
- [`layout_construct_cell`](/en/tmux/3.7c/reference/c-function-layout-custom-c-layout_construct_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L381)
- [`layout_free_cell`](/en/tmux/3.7c/reference/c-function-layout_free_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L424)

## Referenced declarations

- [`layout_cell.entry`](/en/tmux/3.7c/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_topbottom/) (constant)
