# layout_make_leaf

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

```c
void layout_make_leaf(struct layout_cell *lc, struct window_pane *wp)
```

## Parameters

- `lc` (`struct layout_cell *`)
- `wp` (`struct window_pane *`)

## Called by

- [`layout_assign`](/en/tmux/3.2a/reference/c-function-layout-custom-c-layout_assign/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-custom.c#L258)
- [`layout_assign_pane`](/en/tmux/3.2a/reference/c-function-layout_assign_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L710)
- [`layout_init`](/en/tmux/3.2a/reference/c-function-layout_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout.c#L484)
- [`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#L152)
- [`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#L245)
- [`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#L343)
- [`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#L437)
- [`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#L1030)

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