# window_copy_get_current_offset

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4884
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window_copy_get_current_offset/

```c
int window_copy_get_current_offset(struct window_pane *wp, u_int *offset, u_int *size)
```

## Parameters

- `wp` (`struct window_pane *`)
- `offset` (`u_int *`)
- `size` (`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#L1434)

## Referenced by

- [`window_copy_scroll1`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_scroll1/) (function)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_pane.modes`](/en/tmux/3.7c/reference/c-struct-window_pane-modes/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`screen_hsize`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
