# layout_set_size

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

```c
void layout_set_size(struct layout_cell *lc, u_int sx, u_int sy, int xoff, int yoff)
```

## Parameters

- `lc` (`struct layout_cell *`)
- `sx` (`u_int`)
- `sy` (`u_int`)
- `xoff` (`int`)
- `yoff` (`int`)

## Called by

- [`cmd_resize_pane_mouse_update_floating`](/en/tmux/3.7c/reference/c-function-cmd-resize-pane-c-cmd_resize_pane_mouse_update_floating/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-resize-pane.c#L227)
- [`layout_floating_pane`](/en/tmux/3.7c/reference/c-function-layout_floating_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1183)
- [`layout_init`](/en/tmux/3.7c/reference/c-function-layout_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L601)
- [`layout_parse`](/en/tmux/3.7c/reference/c-function-layout_parse/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-custom.c#L202)
- [`layout_set_even`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_even/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L166)
- [`layout_set_main_h`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_h/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L261)
- [`layout_set_main_h_mirrored`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_h_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L363)
- [`layout_set_main_v`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_v/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L465)
- [`layout_set_main_v_mirrored`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_main_v_mirrored/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L567)
- [`layout_set_tiled`](/en/tmux/3.7c/reference/c-function-layout-set-c-layout_set_tiled/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout-set.c#L659)
- [`layout_split_pane`](/en/tmux/3.7c/reference/c-function-layout_split_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/layout.c#L1106)

## Referenced declarations

- [`layout_cell`](/en/tmux/3.7c/reference/c-struct-layout_cell/) (struct)
- [`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.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)
