# grid_set_padding

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

```c
void grid_set_padding(struct grid *gd, u_int px, u_int py)
```

## Parameters

- `gd` (`struct grid *`)
- `px` (`u_int`)
- `py` (`u_int`)

## Calls

- [`grid_set_cell`](/en/tmux/3.7c/reference/c-function-grid_set_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid.c#L619)

## Referenced by

- [`grid_view_set_padding`](/en/tmux/3.7c/reference/c-function-grid_view_set_padding/) (function)

## Referenced declarations

- [`grid`](/en/tmux/3.7c/reference/c-struct-grid/) (struct)
- [`grid_padding_cell`](/en/tmux/3.7c/reference/c-variable-grid-c-grid_padding_cell/) (attribute)
