Go to the first, previous, next, last section, table of contents.


Window Information

There are a number of functions which provide information about the current state of a window.

Function: window-id &optional window
Returns an integer which is the window system's `handle' on the window window (or the current window). Under X11 this is the Window identifier, on an Amiga it's a pointer to the window's struct Window.

(window-id)
    => 20971524

Function: window-count
Returns the number of currently-opened windows.

Function: screen-width
Returns the width of the root window or screen in pixels.

Function: screen-height
Returns the height in pixels of the root window.

Function: window-left-edge
Returns the x coordinate of the current window relative to the root window's top-left corner.

Function: window-top-edge
The y coordinate of the current window relative to the root window's top-left corner.

Function: window-width
Returns the width, in pixels, of the current window.

Function: window-height
Returns the height in pixels of the current window.

Function: window-bar-height
Only used by Amigas, this returns the height of the current window's title bar. This will always be zero in X.

Function: screen-top-line
Returns the line number of the first line being shown in the current window.

Function: screen-bottom-line
Returns the line number of the last line being shown in the current window.

Function: screen-first-column
Returns the column number of the first column being shown in the current window.

Function: screen-last-column
Returns the column number of the last column being shown in the current window.


Go to the first, previous, next, last section, table of contents.