XtCreateWindow(3) XT FUNCTIONS XtCreateWindow(3)

# [NAME](#NAME)

XtCreateWindow - window creation convenience function

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

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

# [ARGUMENTS](#ARGUMENTS)

[*attributes*](#attributes)

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

[*value\_mask*](#value_mask)

Specifies which attribute fields to use.

[*visual*](#visual)

Specifies the visual type (usually **CopyFromParent**).

[*w*](#w)

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

[*window\_class*](#window_class)

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

# [DESCRIPTION](#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 -&gt; core.window
- x
- y
- width
- height
- border\_width

# [SEE ALSO](#SEE_ALSO)

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

libXt 1.3.1 X Version 11

---

Document: XtCreateWindow(3) from libxt 1.3.1-r11 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
