# window_copy_rectangle_set

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

```c
static void window_copy_rectangle_set(struct window_mode_entry *, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `rectflag` (`int`)

## Called by

- [`window_copy_cmd_rectangle_off`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_rectangle_off/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2169)
- [`window_copy_cmd_rectangle_on`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_rectangle_on/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2157)
- [`window_copy_cmd_rectangle_toggle`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_rectangle_toggle/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2181)

## Calls

- [`window_copy_cursor_limit`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_limit/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6413)
- [`window_copy_redraw_screen`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6418)
- [`window_copy_update_cursor`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6415)
- [`window_copy_update_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6417)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
