# style_set

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/style.c#L307
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-style_set/

```c
void style_set(struct style *sy, const struct grid_cell *gc)
```

## Parameters

- `sy` (`struct style *`)
- `gc` (`const struct grid_cell *`)

## Called by

- [`format_draw`](/en/tmux/3.2a/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format-draw.c#L692)
- [`options_string_to_style`](/en/tmux/3.2a/reference/c-function-options_string_to_style/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L915)

## Referenced declarations

- [`style.gc`](/en/tmux/3.2a/reference/c-struct-style-gc/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`style`](/en/tmux/3.2a/reference/c-struct-style/) (struct)
- [`style_default`](/en/tmux/3.2a/reference/c-variable-style-c-style_default/) (attribute)
