Next: Window Attributes, Previous: Drawables, Up: Windows and Pixmaps [Contents][Index]
A window is a drawable that can also receive input events. CLX represents a window with a window object. The create-window function creates a new window object.
The parent window. This argument is required.
int16 coordinates for the outside upper-left corner of the new window with respect to the origin (inside upper-left corner) of the :parent. These arguments are required.
card16 values for the size of the new window. These arguments are required.
A card16 specifying the depth of the new window.
One of :input-output, :input-only, or :copy.
A card29 ID specifying the visual type of the new window.
Initial attribute values for the new window. If nil, the default value is defined by the X protocol.See paragraph
Creates and returns a window. A :parent window must be specified; the first window created by a client will have a root window as its :parent. The new window is initially unmapped and is placed on top of its siblings in the stacking order. A :create-notify event is generated by the server.
The :class of a window can be :input-output or :input-only. Windows of class :input-only cannot be used as the destination drawable for graphics output and can never receive :exposure events, but otherwise operate the same as :input-output windows. The :class can also be :copy, in which case the new window has the same class as its :parent.
For an :input-output window, the :visual and :depth must be a combination supported by the :parent’s screen, but the :depth need not be the same as the :parent’s. The :parent of an :input-output window must also be :input-output. A :depth of 0 means that the depth of the :parent is used.
For an :input-only window, the :depth must be zero, and the :visual must be supported by the :parent’s screen. The :parent of an :input-only window can be of any class. The only attributes that can be given for an :input-only window are :cursor, :do-not-propagate-mask, :event-mask, :gravity, and :override-redirect.
Type window.
Next: Window Attributes, Previous: Drawables, Up: Windows and Pixmaps [Contents][Index]