# style_apply

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L416
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-style_apply/

```c
void style_apply(struct grid_cell *gc, struct options *oo, const char *name, struct format_tree *ft)
```

## Parameters

- `gc` (`struct grid_cell *`)
- `oo` (`struct options *`)
- `name` (`const char *`)
- `ft` (`struct format_tree *`)

## Called by

- [`menu_reapply_styles`](/en/tmux/latest/reference/c-function-menu-c-menu_reapply_styles/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L221)
- [`mode_tree_draw`](/en/tmux/latest/reference/c-function-mode_tree_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L757)
- [`popup_display`](/en/tmux/latest/reference/c-function-popup_display/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L825)
- [`popup_reapply_styles`](/en/tmux/latest/reference/c-function-popup-c-popup_reapply_styles/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L144)
- [`screen_redraw_draw_borders_style`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_borders_style/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L895)
- [`screen_redraw_make_pane_status`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L612)
- [`status_message_redraw`](/en/tmux/latest/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L633)
- [`status_prompt_redraw`](/en/tmux/latest/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L894)
- [`status_redraw`](/en/tmux/latest/reference/c-function-status_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L390)
- [`window_copy_set_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_set_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5320)
- [`window_copy_write_line`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_write_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4928)
- [`window_customize_draw_option`](/en/tmux/latest/reference/c-function-window-customize-c-window_customize_draw_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L773)
- [`window_tree_draw_session`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_draw_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L531)
- [`window_tree_draw_window`](/en/tmux/latest/reference/c-function-window-tree-c-window_tree_draw_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-tree.c#L668)

## Calls

- [`style_add`](/en/tmux/latest/reference/c-function-style_add/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L420)

## Referenced declarations

- [`format_tree`](/en/tmux/latest/reference/c-struct-format_tree/) (struct)
- [`grid_cell`](/en/tmux/latest/reference/c-struct-grid_cell/) (struct)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`options`](/en/tmux/latest/reference/c-struct-options/) (struct)
