# layout_set_even

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

```c
static void layout_set_even(struct window *w, enum layout_type type)
```

## Parameters

- `w` (`struct window *`)
- `type` (`enum layout_type`)

## Called by

- [`layout_set_even_h`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_even_h/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L175)
- [`layout_set_even_v`](/en/tmux/3.2a/reference/c-function-layout-set-c-layout_set_even_v/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L181)

## Calls

- [`layout_create_cell`](/en/tmux/3.2a/reference/c-function-layout_create_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L134)
- [`layout_fix_offsets`](/en/tmux/3.2a/reference/c-function-layout_fix_offsets/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L162)
- [`layout_fix_panes`](/en/tmux/3.2a/reference/c-function-layout_fix_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L163)
- [`layout_free`](/en/tmux/3.2a/reference/c-function-layout_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L133)
- [`layout_make_leaf`](/en/tmux/3.2a/reference/c-function-layout_make_leaf/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L152)
- [`layout_make_node`](/en/tmux/3.2a/reference/c-function-layout_make_node/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L147)
- [`layout_print_cell`](/en/tmux/3.2a/reference/c-function-layout_print_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L125)
- [`layout_set_size`](/en/tmux/3.2a/reference/c-function-layout_set_size/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L146)
- [`layout_spread_cell`](/en/tmux/3.2a/reference/c-function-layout_spread_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L159)
- [`notify_window`](/en/tmux/3.2a/reference/c-function-notify_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L168)
- [`server_redraw_window`](/en/tmux/3.2a/reference/c-function-server_redraw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L169)
- [`window_count_panes`](/en/tmux/3.2a/reference/c-function-window_count_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L128)
- [`window_resize`](/en/tmux/3.2a/reference/c-function-window_resize/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/layout-set.c#L167)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.2a/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell.entry`](/en/tmux/3.2a/reference/c-struct-layout_cell-entry/) (attribute)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.2a/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`window.layout_root`](/en/tmux/3.2a/reference/c-struct-window-layout_root/) (attribute)
- [`layout_type`](/en/tmux/3.2a/reference/c-enum-layout_type/) (enum)
- [`PANE_MINIMUM`](/en/tmux/3.2a/reference/c-define-tmux-h-pane_minimum/) (constant)
- [`window.panes`](/en/tmux/3.2a/reference/c-struct-window-panes/) (attribute)
- [`layout_cell.sx`](/en/tmux/3.2a/reference/c-struct-layout_cell-sx/) (attribute)
- [`window.sx`](/en/tmux/3.2a/reference/c-struct-window-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.2a/reference/c-struct-layout_cell-sy/) (attribute)
- [`window.sy`](/en/tmux/3.2a/reference/c-struct-window-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.2a/reference/c-struct-layout_cell-type/) (attribute)
- [`window`](/en/tmux/3.2a/reference/c-struct-window/) (struct)
- [`layout_cell.wp`](/en/tmux/3.2a/reference/c-struct-layout_cell-wp/) (attribute)
