## 4 Windows ¶

`(window-create width height &optional title parentw x y font)`
`window-create` makes a new window of the specified `width` and `height`. `title`, if specified, becomes the displayed title of the window. If `parentw` is specified, it should be the `window-parent` property of an existing window, which becomes the parent window of the new window. `x` and `y` are the offset of the new window from the parent window. `font` is the font to be used for printing in the window; the default is given by `window-default-font-name*`, initially `courier-bold-12`.

`(window-open w)` causes a window to be displayed on the screen.

`(window-close w)` removes the window from the display; it can be re-opened.

`(window-destroy w)`

`(window-moveto-xy w x y)`

`(window-geometry w)` queries X for the window geometry. The result is a list, `(x y width height border-width)` .

`(window-size w)` returns a list `(width height)` .

Note that the width and height are cached within the structure so that no call to X is needed to examine them. However, if the window is resized, it is necessary to call `(window-reset-geometry w)` to reset the local parameters to their correct values.

The following functions provide access to the parts of the `window` data structure; most applications will not need to use them.
`(window-gcontext w)`
`(window-parent w)`
`(window-drawable-height w)`
`(window-drawable-width w)`
`(window-label w)`
`(window-font w)`
`(window-screen-height)`