# layout_set_select

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

```c
u_int layout_set_select(struct window *w, u_int layout)
```

## Parameters

- `w` (`struct window *`)
- `layout` (`u_int`)

## Called by

- [`cmd_select_layout_exec`](/en/tmux/latest/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#L121)

## Referenced declarations

- [`window.lastlayout`](/en/tmux/latest/reference/c-struct-window-lastlayout/) (attribute)
- [`layout_sets`](/en/tmux/latest/reference/c-variable-layout-set-c-layout_sets/) (attribute)
- [`nitems`](/en/tmux/latest/reference/c-define-tmux-h-nitems/) (constant)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
