# window_copy_rectangle_set

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4843
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-window-copy-c-window_copy_cmd_rectangle_off/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1661)
- [`window_copy_cmd_rectangle_on`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_rectangle_on/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1649)
- [`window_copy_cmd_rectangle_toggle`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_rectangle_toggle/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1673)

## Calls

- [`window_copy_find_length`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_find_length/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4851)
- [`window_copy_redraw_screen`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4856)
- [`window_copy_update_cursor`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4853)
- [`window_copy_update_selection`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_update_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4855)

## Referenced declarations

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