# window_pane_get_palette

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

```c
static int window_pane_get_palette(struct window_pane *wp, int c)
```

## Parameters

- `wp` (`struct window_pane *`)
- `c` (`int`)

## Called by

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

## Calls

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

## Referenced declarations

- [`window_pane.palette`](/en/tmux/3.7c/reference/c-struct-window_pane-palette/) (attribute)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
