# window_create

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

```c
struct window * window_create(u_int sx, u_int sy, u_int xpixel, u_int ypixel)
```

## Parameters

- `sx` (`u_int`)
- `sy` (`u_int`)
- `xpixel` (`u_int`)
- `ypixel` (`u_int`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/latest/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L109)

## Calls

- [`fatal`](/en/tmux/latest/reference/c-function-fatal/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L336)
- [`log_debug`](/en/tmux/latest/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L339)
- [`options_create`](/en/tmux/latest/reference/c-function-options_create/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L323)
- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L324)
- [`window_set_fill_character`](/en/tmux/latest/reference/c-function-window_set_fill_character/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L333)
- [`window_update_activity`](/en/tmux/latest/reference/c-function-window_update_activity/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L337)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L304)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L305)

## Referenced by

- [`spawn_window`](/en/tmux/latest/reference/c-function-spawn_window/) (function)

## Referenced declarations

- [`window.active`](/en/tmux/latest/reference/c-struct-window-active/) (attribute)
- [`window.creation_time`](/en/tmux/latest/reference/c-struct-window-creation_time/) (attribute)
- [`DEFAULT_XPIXEL`](/en/tmux/latest/reference/c-define-tmux-h-default_xpixel/) (constant)
- [`DEFAULT_YPIXEL`](/en/tmux/latest/reference/c-define-tmux-h-default_ypixel/) (constant)
- [`window.flags`](/en/tmux/latest/reference/c-struct-window-flags/) (attribute)
- [`global_w_options`](/en/tmux/latest/reference/c-variable-global_w_options/) (attribute)
- [`window.id`](/en/tmux/latest/reference/c-struct-window-id/) (attribute)
- [`window.last_panes`](/en/tmux/latest/reference/c-struct-window-last_panes/) (attribute)
- [`window.lastlayout`](/en/tmux/latest/reference/c-struct-window-lastlayout/) (attribute)
- [`window.layout_root`](/en/tmux/latest/reference/c-struct-window-layout_root/) (attribute)
- [`window.manual_sx`](/en/tmux/latest/reference/c-struct-window-manual_sx/) (attribute)
- [`window.manual_sy`](/en/tmux/latest/reference/c-struct-window-manual_sy/) (attribute)
- [`window.name`](/en/tmux/latest/reference/c-struct-window-name/) (attribute)
- [`next_window_id`](/en/tmux/latest/reference/c-variable-window-c-next_window_id/) (attribute)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`window.panes`](/en/tmux/latest/reference/c-struct-window-panes/) (attribute)
- [`window.references`](/en/tmux/latest/reference/c-struct-window-references/) (attribute)
- [`window.sb`](/en/tmux/latest/reference/c-struct-window-sb/) (attribute)
- [`window.sb_pos`](/en/tmux/latest/reference/c-struct-window-sb_pos/) (attribute)
- [`window.sx`](/en/tmux/latest/reference/c-struct-window-sx/) (attribute)
- [`window.sy`](/en/tmux/latest/reference/c-struct-window-sy/) (attribute)
- [`window`](/en/tmux/latest/reference/c-struct-window/) (struct)
- [`window.winlinks`](/en/tmux/latest/reference/c-struct-window-winlinks/) (attribute)
- [`window.xpixel`](/en/tmux/latest/reference/c-struct-window-xpixel/) (attribute)
- [`window.ypixel`](/en/tmux/latest/reference/c-struct-window-ypixel/) (attribute)
- [`window.z_index`](/en/tmux/latest/reference/c-struct-window-z_index/) (attribute)
