# screen_redraw_draw_scrollbar

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1462
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_draw_scrollbar/

```c
static void screen_redraw_draw_scrollbar(struct screen_redraw_ctx *, struct window_pane *, int, int, int, u_int, u_int, u_int)
```

## Parameters

- `ctx` (`struct screen_redraw_ctx *`)
- `wp` (`struct window_pane *`)
- `sb_pos` (`int`)
- `sb_x` (`int`)
- `sb_y` (`int`)
- `sb_h` (`u_int`)
- `slider_h` (`u_int`)
- `slider_y` (`u_int`)

## Called by

- [`screen_redraw_draw_pane_scrollbar`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_draw_pane_scrollbar/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1452)

## Calls

- [`screen_redraw_get_visible_ranges`](/en/tmux/3.7c/reference/c-function-screen_redraw_get_visible_ranges/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1546)
- [`tty_cell`](/en/tmux/3.7c/reference/c-function-tty_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1561)
- [`tty_check_overlay_range`](/en/tmux/3.7c/reference/c-function-tty_check_overlay_range/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1545)
- [`tty_cursor`](/en/tmux/3.7c/reference/c-function-tty_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1556)

## Other function references

- [`screen_redraw_is_visible`](/en/tmux/3.7c/reference/c-function-screen_redraw_is_visible/) (function)

## Referenced declarations

- [`grid_cell.bg`](/en/tmux/3.7c/reference/c-struct-grid_cell-bg/) (attribute)
- [`screen_redraw_ctx.c`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-c/) (attribute)
- [`grid_cell.fg`](/en/tmux/3.7c/reference/c-struct-grid_cell-fg/) (attribute)
- [`style.gc`](/en/tmux/3.7c/reference/c-struct-style-gc/) (attribute)
- [`grid_default_cell`](/en/tmux/3.7c/reference/c-variable-grid_default_cell/) (attribute)
- [`screen_redraw_ctx.ox`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-ox/) (attribute)
- [`screen_redraw_ctx.oy`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-oy/) (attribute)
- [`style.pad`](/en/tmux/3.7c/reference/c-struct-style-pad/) (attribute)
- [`PANE_SCROLLBARS_LEFT`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_scrollbars_left/) (constant)
- [`PANE_SCROLLBARS_RIGHT`](/en/tmux/3.7c/reference/c-define-tmux-h-pane_scrollbars_right/) (constant)
- [`screen_redraw_ctx`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx/) (struct)
- [`window_pane.scrollbar_style`](/en/tmux/3.7c/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`screen_redraw_ctx.statuslines`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-statuslines/) (attribute)
- [`screen_redraw_ctx.statustop`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-statustop/) (attribute)
- [`screen_redraw_ctx.sx`](/en/tmux/3.7c/reference/c-struct-screen_redraw_ctx-sx/) (attribute)
- [`tty.sy`](/en/tmux/3.7c/reference/c-struct-tty-sy/) (attribute)
- [`client.tty`](/en/tmux/3.7c/reference/c-struct-client-tty/) (attribute)
- [`style.width`](/en/tmux/3.7c/reference/c-struct-style-width/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`window_pane.xoff`](/en/tmux/3.7c/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/3.7c/reference/c-struct-window_pane-yoff/) (attribute)
