Constructor

GdkWindownew

Declaration [src]

GdkWindow*
gdk_window_new (
  GdkWindow* parent,
  GdkWindowAttr* attributes,
  gint attributes_mask
)

Description [src]

Creates a new GdkWindow using the attributes from attributes. See GdkWindowAttr and GdkWindowAttributesType for more details. Note: to use this on displays other than the default display, parent must be specified.

Parameters

parent

Type: GdkWindow

A GdkWindow, or NULL to create the window as a child of the default root window for the default display.

The argument can be NULL.
The data is owned by the caller of the function.
attributes

Type: GdkWindowAttr

Attributes of the new window.

The data is owned by the caller of the function.
attributes_mask

Type: GdkWindowAttributesType

Mask indicating which fields in attributes are valid.

Return value

Type: GdkWindow

The new GdkWindow.

The caller of the function takes ownership of the data, and is responsible for freeing it.