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.
create-window | &key :parent :x :y :width :height (:depth 0) (:border-width 0) ( :class :copy) (:visual :copy) :background :border :gravity :bit-gravity :backing-store :backing-planes :backing-pixel :save-under :event-mask :do-not-propagate-mask :override-redirect :colormap :cursor | Function |
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.
|