XtCreateWindow(3) XT FUNCTIONS XtCreateWindow(3)

XtCreateWindow - window creation convenience function

#include <X11/Intrinsic.h>

void XtCreateWindow(Widget w, unsigned int window_class, Visual *visual, XtValueMask value_mask, XSetWindowAttributes *attributes);

Specifies the window attributes to use in the XCreateWindow call.
Specifies which attribute fields to use.
Specifies the visual type (usually CopyFromParent).
Specifies the widget that is used to set the x,y coordinates and so on.
Specifies the Xlib window class (for example, InputOutput, InputOnly, or CopyFromParent).

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

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

libXt 1.3.0 X Version 11