Next: Showing and Hiding Windows, Previous: Window Stacking, Up: Windows
As noted above (see Window Attributes), the
window-dimensions and window-position functions return
the current configuration of a window.
Move the top-left corner of the window frame of window to (x, y).
Set the dimensions of the client window associated with object window to (width, height).
Move the top-left corner of the window frame of window to (x, y), and set the dimensions of the frame to (width, height).
Resize the window associated with object window so that it has certain X and Y dimensions. For the first function, the dimensions are cols columns and rows rows. For the second function, the dimensions are width pixels and height pixels.
The hints parameters is either the size hints alist to use, or
nilin which case thewindow-size-hintsfunction is used to retrieve the window's hints.
Usually, however, it is left to the user to configure windows. The following functions may be called interactively: their sole argument is then either the window that received the current event or the currently focused window.
Move window interactively using the mouse. Releasing any mouse button places the window at its current position.
Resize window interactively using the mouse. Releasing any mouse button places the window at its current position.
Note that this function selects the edge or edges of the window to move from the current position of the mouse when the resizing begins. The window is divided into a three-by-three grid; the rectangle containing the mouse pointer gives the direction to resize in. If the pointer is in the central rectangle the bottom and right edges are moved.
Wait for the user to select a window using the mouse, then interactively move that window.
Wait for the user to select a window with the mouse, then interactively resize that window.
The interactive move and resize behavior can be customized through the following variables:
A symbol defining the visual method of interactively moving windows. Current options include
boxfor a wire-frame grid, andopaquefor full redisplay.
A symbol defining the visual method of interactively resizing windows. Current options include
boxfor a wire-frame grid, andopaquefor full redisplay.
When non-nil, the current window position is shown in the center of the screen.
When non-nil, the window size is shown in the center of the screen.
When non-nil, the window position is “snapped” to edges of other windows within close proximity.
Windows have a “gravity” property, which affect how they are placed in particular positions.