# screen_redraw_draw_pane_scrollbar

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

```c
void screen_redraw_draw_pane_scrollbar(struct screen_redraw_ctx *, struct window_pane *)
```

## Parameters

- `ctx` (`struct screen_redraw_ctx *`)
- `wp` (`struct window_pane *`)

## Called by

- [`screen_redraw_draw_pane_scrollbars`](/en/tmux/latest/reference/c-function-screen-redraw-c-screen_redraw_draw_pane_scrollbars/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L1405)
- [`screen_redraw_pane`](/en/tmux/latest/reference/c-function-screen_redraw_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L863)

## Calls

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

## Other function references

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

## Referenced declarations

- [`window_pane.modes`](/en/tmux/latest/reference/c-struct-window_pane-modes/) (attribute)
- [`style.pad`](/en/tmux/latest/reference/c-struct-style-pad/) (attribute)
- [`PANE_SCROLLBARS_LEFT`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_left/) (constant)
- [`PANE_SCROLLBARS_MODAL`](/en/tmux/latest/reference/c-define-tmux-h-pane_scrollbars_modal/) (constant)
- [`window.sb`](/en/tmux/latest/reference/c-struct-window-sb/) (attribute)
- [`window.sb_pos`](/en/tmux/latest/reference/c-struct-window-sb_pos/) (attribute)
- [`window_pane.sb_slider_h`](/en/tmux/latest/reference/c-struct-window_pane-sb_slider_h/) (attribute)
- [`window_pane.sb_slider_y`](/en/tmux/latest/reference/c-struct-window_pane-sb_slider_y/) (attribute)
- [`window_pane.screen`](/en/tmux/latest/reference/c-struct-window_pane-screen/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_redraw_ctx`](/en/tmux/latest/reference/c-struct-screen_redraw_ctx/) (struct)
- [`screen_size_y`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`window_pane.scrollbar_style`](/en/tmux/latest/reference/c-struct-window_pane-scrollbar_style/) (attribute)
- [`window_pane.sx`](/en/tmux/latest/reference/c-struct-window_pane-sx/) (attribute)
- [`window_pane.sy`](/en/tmux/latest/reference/c-struct-window_pane-sy/) (attribute)
- [`style.width`](/en/tmux/latest/reference/c-struct-style-width/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_pane`](/en/tmux/latest/reference/c-struct-window_pane/) (struct)
- [`WINDOW_PANE_NO_MODE`](/en/tmux/latest/reference/c-define-tmux-h-window_pane_no_mode/) (constant)
- [`window_pane.xoff`](/en/tmux/latest/reference/c-struct-window_pane-xoff/) (attribute)
- [`window_pane.yoff`](/en/tmux/latest/reference/c-struct-window_pane-yoff/) (attribute)
