# mode_tree_align

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L719
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-mode_tree_align/

```c
void mode_tree_align(struct mode_tree_item *mti, int align)
```

## Parameters

- `mti` (`struct mode_tree_item *`)
- `align` (`int`)

## Called by

- [`window_tree_build_pane`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_build_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L224)
- [`window_tree_build_window`](/en/tmux/3.7c/reference/c-function-window-tree-c-window_tree_build_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L279)

## Referenced declarations

- [`mode_tree_item.align`](/en/tmux/3.7c/reference/c-struct-mode_tree_item-align/) (attribute)
- [`mode_tree_item`](/en/tmux/3.7c/reference/c-struct-mode_tree_item/) (struct)
