# style_set_scrollbar_style_from_option

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

```c
void style_set_scrollbar_style_from_option(struct style *sb_style, struct options *oo)
```

## Parameters

- `sb_style` (`struct style *`)
- `oo` (`struct options *`)

## Called by

- [`options_push_changes`](/en/tmux/latest/reference/c-function-options_push_changes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1250)
- [`window_pane_create`](/en/tmux/latest/reference/c-function-window-c-window_pane_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1070)

## Calls

- [`options_string_to_style`](/en/tmux/latest/reference/c-function-options_string_to_style/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L445)
- [`style_copy`](/en/tmux/latest/reference/c-function-style_copy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L452)
- [`style_set`](/en/tmux/latest/reference/c-function-style_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/style.c#L447)

## Other function references

- [`utf8_set`](/en/tmux/latest/reference/c-function-utf8_set/) (function)

## Referenced declarations

- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`style.gc`](/en/tmux/latest/reference/c-struct-style-gc/) (attribute)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`options`](/en/tmux/latest/reference/c-struct-options/) (struct)
- [`style.pad`](/en/tmux/latest/reference/c-struct-style-pad/) (attribute)
- [`PANE_SCROLLBARS_CHARACTER`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_character/) (constant)
- [`PANE_SCROLLBARS_DEFAULT_PADDING`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_default_padding/) (constant)
- [`PANE_SCROLLBARS_DEFAULT_WIDTH`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_default_width/) (constant)
- [`style`](/en/tmux/latest/reference/c-struct-style/) (struct)
- [`style.width`](/en/tmux/latest/reference/c-struct-style-width/) (attribute)
