---
name: "XtCreateWindow"
section: "3x"
platform: "linux"
package: "libxt-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XtCreateWindow/3x"
---

# XtCreateWindow(3x)

window creation convenience function

## NAME

XtCreateWindow - window creation convenience function

## SYNTAX

void XtCreateWindow(Widget *w*, unsigned int *window\_class*, Visual \**visual*, XtValueMask *value\_mask*, XSetWindowAttributes \**attributes*);

## ARGUMENTS

- *attributes*

  Specifies the window attributes to use in the *XCreateWindow* call.

- *value\_mask*

  Specifies which attribute fields to use.

- *visual*

  Specifies the visual type (usually *CopyFromParent*).

- *w*

  Specifies the widget that is used to set the x,y coordinates and so on.

- *window\_class*

  Specifies the Xlib window class (for example, *InputOutput*, *InputOnly*, or *CopyFromParent*).

## DESCRIPTION

The *XtCreateWindow* function calls the Xlib *XCreateWindow* function with values from the widget structure and the passed parameters. Then, it assigns the created window to the widget's window field.

*XtCreateWindow* evaluates the following fields of the *Core* widget structure:

- •

  depth

- •

  screen

- •

  parent -\> core.window

- •

  x

- •

  y

- •

  width

- •

  height

- •

  border\_width

## SEE ALSO

*X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
