# layout_spread_cell

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

```c
int layout_spread_cell(struct window *w, struct layout_cell *parent)
```

## Parameters

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

## Called by

- [`layout_set_even`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_even/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L181)
- [`layout_set_main_h`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L294)
- [`layout_set_main_h_mirrored`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_h_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L390)
- [`layout_set_main_v`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L498)
- [`layout_set_main_v_mirrored`](/en/tmux/latest/reference/c-function-layout-set-c-layout_set_main_v_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L594)
- [`layout_spread_out`](/en/tmux/latest/reference/c-function-layout_spread_out/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1297)

## Calls

- [`layout_add_horizontal_border`](/en/tmux/latest/reference/c-function-layout-c-layout_add_horizontal_border/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1239)
- [`layout_resize_adjust`](/en/tmux/latest/reference/c-function-layout_resize_adjust/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1266)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1234)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/latest/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/latest/reference/c-struct-layout_cell-entry/) (attribute)
- [`layout_cell`](/en/tmux/latest/reference/c-struct-layout_cell/) (struct)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/latest/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/latest/reference/c-enum-layout_type-layout_topbottom/) (constant)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`layout_cell.parent`](/en/tmux/latest/reference/c-struct-layout_cell-parent/) (attribute)
- [`layout_cell.sx`](/en/tmux/latest/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/latest/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/latest/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
