[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

29.3.5 Geometry

Here's how to examine the data in an X-style window geometry specification:

Function: x-parse-geometry geom

The function x-parse-geometry converts a standard X window geometry string to an alist that you can use as part of the argument to make-frame.

The alist describes which parameters were specified in geom, and gives the values specified for them. Each element looks like (parameter . value). The possible parameter values are left, top, width, and height.

For the size parameters, the value must be an integer. The position parameter names left and top are not totally accurate, because some values indicate the position of the right or bottom edges instead. These are the value possibilities for the position parameters:

an integer

A positive integer relates the left edge or top edge of the window to the left or top edge of the screen. A negative integer relates the right or bottom edge of the window to the right or bottom edge of the screen.

(+ position)

This specifies the position of the left or top edge of the window relative to the left or top edge of the screen. The integer position may be positive or negative; a negative value specifies a position outside the screen.

(- position)

This specifies the position of the right or bottom edge of the window relative to the right or bottom edge of the screen. The integer position may be positive or negative; a negative value specifies a position outside the screen.

Here is an example:

 
(x-parse-geometry "35x70+0-0")
     ⇒ ((height . 70) (width . 35)
         (top - 0) (left . 0))

Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.