Next: Gradient Functions, Previous: Grab Functions, Up: Miscellaneous Functions
Return the screen dimensions in pixels as a cons cell
(width.height).
Draw an outline of a window of dimensions (width, height) at position (x, y) relative to the root window.
mode is a symbol defining the type of outline drawn, currently it may only be
boxfor a 3x3 grid.Use the
erase-window-outlineto erase the grid. Also note that since these functions draw directly on the root window the server should be grabbed until the outline is erased.
Erase a previously drawn outline of a window of dimensions (width, height) at position (x, y) relative to the root window.
mode is a symbol defining the type of outline drawn, currently it may only be
boxfor a 3x3 grid.
Display the string text in a window on the screen. If text is
nilthen any string previously displayed is removed. Returns the numeric id of the window displaying the message, ornilif no message is displayed.attributes is an alist specifying how the string should be displayed; each element of the list is a cons cell
(attr.value)associating an attribute attr (a symbol) with it's value.Possible attributes currently include:
font- The font to use
foreground- The color (or color name) to draw the text with
background- The color (or color name) to draw the background with
x-justify- The justification method for multi-line strings. One of the symbols
left,right, orcenterspacing- The number of extra pixels of vertical spacing to leave between text lines.
position- A cons cell defining the coordinates at which to display the message window. The cell is
(x.y). x and y are integers ornil(for centered display). If negative they count in from the left and bottom edges respectively.head- The head on which to center the message when a position is not specified or given as nil. If not provided defaults to the head containing the window that has the input focus.