GNU Info

Info Node: (elisp)Frames and Windows

(elisp)Frames and Windows


Next: Minibuffers and Frames Prev: Finding All Frames Up: Frames
Enter node , (file) or (file)node

Frames and Windows
==================

   Each window is part of one and only one frame; you can get the frame
with `window-frame'.

 - Function: window-frame window
     This function returns the frame that WINDOW is on.

   All the non-minibuffer windows in a frame are arranged in a cyclic
order.  The order runs from the frame's top window, which is at the
upper left corner, down and to the right, until it reaches the window at
the lower right corner (always the minibuffer window, if the frame has
one), and then it moves back to the top.  Note: Cyclic Window
Ordering.

 - Function: frame-first-window frame
     This returns the topmost, leftmost window of frame FRAME.

   At any time, exactly one window on any frame is "selected within the
frame".  The significance of this designation is that selecting the
frame also selects this window.  You can get the frame's current
selected window with `frame-selected-window'.

 - Function: frame-selected-window frame
     This function returns the window on FRAME that is selected within
     FRAME.

   Conversely, selecting a window for Emacs with `select-window' also
makes that window selected within its frame.  Note: Selecting Windows.

   Another function that (usually) returns one of the windows in a given
frame is `minibuffer-window'.  Note: Minibuffer Misc.


automatically generated by info2www version 1.2.2.9