# window_copy_update_style

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3504
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_update_style/

```c
static void window_copy_update_style(struct window_mode_entry *wme, u_int fx, u_int fy, struct grid_cell *gc, const struct grid_cell *mgc, const struct grid_cell *cgc, const struct grid_cell *mkgc)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `fx` (`u_int`)
- `fy` (`u_int`)
- `gc` (`struct grid_cell *`)
- `mgc` (`const struct grid_cell *`)
- `cgc` (`const struct grid_cell *`)
- `mkgc` (`const struct grid_cell *`)

## Called by

- [`window_copy_write_one`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_write_one/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3592)

## Calls

- [`options_get_number`](/en/tmux/3.2a/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3539)
- [`window_copy_match_start_end`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_match_start_end/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3550)
- [`window_copy_search_mark_at`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_mark_at/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3531)

## Referenced declarations

- [`grid_cell.attr`](/en/tmux/3.2a/reference/c-struct-grid_cell-attr/) (attribute)
- [`window_copy_mode_data.backing`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`grid_cell.bg`](/en/tmux/3.2a/reference/c-struct-grid_cell-bg/) (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)
- [`grid_cell.fg`](/en/tmux/3.2a/reference/c-struct-grid_cell-fg/) (attribute)
- [`grid_cell`](/en/tmux/3.2a/reference/c-struct-grid_cell/) (struct)
- [`MODEKEY_EMACS`](/en/tmux/3.2a/reference/c-define-tmux-h-modekey_emacs/) (constant)
- [`window_copy_mode_data.mx`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-mx/) (attribute)
- [`window_copy_mode_data.my`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-my/) (attribute)
- [`window.options`](/en/tmux/3.2a/reference/c-struct-window-options/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`screen_hsize`](/en/tmux/3.2a/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`window_copy_mode_data.searchdirection`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-searchdirection/) (attribute)
- [`window_copy_mode_data.searchmark`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-searchmark/) (attribute)
- [`window_copy_mode_data.showmark`](/en/tmux/3.2a/reference/c-struct-window_copy_mode_data-showmark/) (attribute)
- [`window_pane.window`](/en/tmux/3.2a/reference/c-struct-window_pane-window/) (attribute)
- [`window_mode_entry`](/en/tmux/3.2a/reference/c-struct-window_mode_entry/) (struct)
- [`window_mode_entry.wp`](/en/tmux/3.2a/reference/c-struct-window_mode_entry-wp/) (attribute)
