# layout_dump

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

```c
char * layout_dump(struct window *w, struct layout_cell *root)
```

## Parameters

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

## Called by

- [`cmd_select_layout_exec`](/en/tmux/3.7c/reference/c-function-cmd-select-layout-c-cmd_select_layout_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-select-layout.c#L93)
- [`format_cb_window_layout`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_window_layout/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L847)
- [`format_cb_window_visible_layout`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_window_visible_layout/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L860)

## Calls

- [`layout_append`](/en/tmux/3.7c/reference/c-function-layout-custom-c-layout_append/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L68)
- [`window_pane_is_floating`](/en/tmux/3.7c/reference/c-function-window_pane_is_floating/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L72)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L85)

## Other function references

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

## Referenced declarations

- [`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)
- [`window`](/en/tmux/3.7c/reference/c-struct-window/) (struct)
- [`window.z_index`](/en/tmux/3.7c/reference/c-struct-window-z_index/) (attribute)
- [`window_pane.zentry`](/en/tmux/3.7c/reference/c-struct-window_pane-zentry/) (attribute)
