# layout_split_pane

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

```c
struct layout_cell * layout_split_pane(struct window_pane *wp, enum layout_type type, int size, int flags)
```

## Parameters

- `wp` (`struct window_pane *`)
- `type` (`enum layout_type`)
- `size` (`int`)
- `flags` (`int`)

## Called by

- [`layout_get_tiled_cell`](/en/tmux/3.7c/reference/c-function-layout_get_tiled_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1358)
- [`popup_make_pane`](/en/tmux/3.7c/reference/c-function-popup-c-popup_make_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L425)

## Calls

- [`fatalx`](/en/tmux/3.7c/reference/c-function-fatalx/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1040)
- [`layout_add_horizontal_border`](/en/tmux/3.7c/reference/c-function-layout-c-layout_add_horizontal_border/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1032)
- [`layout_create_cell`](/en/tmux/3.7c/reference/c-function-layout_create_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1079)
- [`layout_fix_offsets`](/en/tmux/3.7c/reference/c-function-layout_fix_offsets/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1160)
- [`layout_make_leaf`](/en/tmux/3.7c/reference/c-function-layout_make_leaf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1162)
- [`layout_make_node`](/en/tmux/3.7c/reference/c-function-layout_make_node/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1120)
- [`layout_resize_child_cells`](/en/tmux/3.7c/reference/c-function-layout-c-layout_resize_child_cells/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1093)
- [`layout_set_size`](/en/tmux/3.7c/reference/c-function-layout_set_size/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1106)
- [`options_get_number`](/en/tmux/3.7c/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1012)

## Other function references

- [`layout_set_size_check`](/en/tmux/3.7c/reference/c-function-layout-c-layout_set_size_check/) (function)

## Referenced declarations

- [`layout_cell.cells`](/en/tmux/3.7c/reference/c-struct-layout_cell-cells/) (attribute)
- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`window_pane.layout_cell`](/en/tmux/3.7c/reference/c-struct-window_pane-layout_cell/) (attribute)
- [`LAYOUT_LEFTRIGHT`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_leftright/) (constant)
- [`window.layout_root`](/en/tmux/3.7c/reference/c-struct-window-layout_root/) (attribute)
- [`LAYOUT_TOPBOTTOM`](/en/tmux/3.7c/reference/c-enum-layout_type-layout_topbottom/) (constant)
- [`layout_type`](/en/tmux/3.7c/reference/c-enum-layout_type/) (enum)
- [`window.options`](/en/tmux/3.7c/reference/c-struct-window-options/) (attribute)
- [`style.pad`](/en/tmux/3.7c/reference/c-struct-style-pad/) (attribute)
- [`PANE_MINIMUM`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_minimum/) (constant)
- [`PANE_SCROLLBARS_OFF`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_scrollbars_off/) (constant)
- [`layout_cell.parent`](/en/tmux/3.7c/reference/c-struct-layout_cell-parent/) (attribute)
- [`window.sb`](/en/tmux/3.7c/reference/c-struct-window-sb/) (attribute)
- [`window_pane.scrollbar_style`](/en/tmux/3.7c/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`SPAWN_BEFORE`](/en/tmux/3.7c/reference/c-define-tmux-h-spawn_before/) (constant)
- [`SPAWN_FULLSIZE`](/en/tmux/3.7c/reference/c-define-tmux-h-spawn_fullsize/) (constant)
- [`layout_cell.sx`](/en/tmux/3.7c/reference/c-struct-layout_cell-sx/) (attribute)
- [`layout_cell.sy`](/en/tmux/3.7c/reference/c-struct-layout_cell-sy/) (attribute)
- [`layout_cell.type`](/en/tmux/3.7c/reference/c-struct-layout_cell-type/) (attribute)
- [`style.width`](/en/tmux/3.7c/reference/c-struct-style-width/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`layout_cell.xoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-xoff/) (attribute)
- [`layout_cell.yoff`](/en/tmux/3.7c/reference/c-struct-layout_cell-yoff/) (attribute)
