1647 |
The following three functions return size information about a window: |
The following three functions return size information about a window: |
1648 |
|
|
1649 |
@defun window-height &optional window |
@defun window-height &optional window |
1650 |
This function returns the number of lines in @var{window}, including its |
This function returns the number of lines in @var{window}, including |
1651 |
mode line. If @var{window} fills its entire frame, this is typically |
its mode line and header line, if any. If @var{window} fills its |
1652 |
one less than the value of @code{frame-height} on that frame (since the |
entire frame except for the echo area, and there is no tool bar, this |
1653 |
last line is always reserved for the minibuffer). |
is typically one less than the value of @code{frame-height} on that |
1654 |
|
frame. |
1655 |
|
|
1656 |
If @var{window} is @code{nil}, the function uses the selected window. |
If @var{window} is @code{nil}, the function uses the selected window. |
1657 |
|
|
1671 |
@end example |
@end example |
1672 |
@end defun |
@end defun |
1673 |
|
|
1674 |
|
@tindex window-body-height |
1675 |
|
@defun window-body-height &optional window |
1676 |
|
Like @code{window-height} but the value does not include the |
1677 |
|
mode line (if any) or the header line (if any). |
1678 |
|
@end defun |
1679 |
|
|
1680 |
@defun window-width &optional window |
@defun window-width &optional window |
1681 |
This function returns the number of columns in @var{window}. If |
This function returns the number of columns in @var{window}. If |
1682 |
@var{window} fills its entire frame, this is the same as the value of |
@var{window} fills its entire frame, this is the same as the value of |