# window_copy_get_word

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

```c
char * window_copy_get_word(struct window_pane *wp, u_int x, u_int y)
```

## Parameters

- `wp` (`struct window_pane *`)
- `x` (`u_int`)
- `y` (`u_int`)

## Called by

- [`format_cb_mouse_word`](/en/tmux/3.7c/reference/c-function-format-c-format_cb_mouse_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format.c#L1247)
- [`window_copy_cursor_word_cb`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_word_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L945)

## Calls

- [`format_grid_word`](/en/tmux/3.7c/reference/c-function-format_grid_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L903)

## 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)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`grid.hsize`](/en/tmux/3.7c/reference/c-struct-grid-hsize/) (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)
- [`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)
