aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.h')
-rw-r--r--src/window.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/window.h b/src/window.h
index efe03737052..6d2478ecaf9 100644
--- a/src/window.h
+++ b/src/window.h
@@ -23,9 +23,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
23#include "dispextern.h" 23#include "dispextern.h"
24 24
25INLINE_HEADER_BEGIN 25INLINE_HEADER_BEGIN
26#ifndef WINDOW_INLINE
27# define WINDOW_INLINE INLINE
28#endif
29 26
30/* Windows are allocated as if they were vectors, but then the 27/* Windows are allocated as if they were vectors, but then the
31Lisp data type is changed to Lisp_Window. They are garbage 28Lisp data type is changed to Lisp_Window. They are garbage
@@ -264,6 +261,12 @@ struct window
264 A value of -1 means use frame values. */ 261 A value of -1 means use frame values. */
265 int scroll_bar_width; 262 int scroll_bar_width;
266 263
264 /* Effective height of the mode line, or -1 if not known. */
265 int mode_line_height;
266
267 /* Effective height of the header line, or -1 if not known. */
268 int header_line_height;
269
267 /* Z - the buffer position of the last glyph in the current 270 /* Z - the buffer position of the last glyph in the current
268 matrix of W. Only valid if window_end_valid is nonzero. */ 271 matrix of W. Only valid if window_end_valid is nonzero. */
269 ptrdiff_t window_end_pos; 272 ptrdiff_t window_end_pos;
@@ -343,37 +346,37 @@ struct window
343 346
344/* Most code should use these functions to set Lisp fields in struct 347/* Most code should use these functions to set Lisp fields in struct
345 window. */ 348 window. */
346WINDOW_INLINE void 349INLINE void
347wset_frame (struct window *w, Lisp_Object val) 350wset_frame (struct window *w, Lisp_Object val)
348{ 351{
349 w->frame = val; 352 w->frame = val;
350} 353}
351WINDOW_INLINE void 354INLINE void
352wset_next (struct window *w, Lisp_Object val) 355wset_next (struct window *w, Lisp_Object val)
353{ 356{
354 w->next = val; 357 w->next = val;
355} 358}
356WINDOW_INLINE void 359INLINE void
357wset_prev (struct window *w, Lisp_Object val) 360wset_prev (struct window *w, Lisp_Object val)
358{ 361{
359 w->prev = val; 362 w->prev = val;
360} 363}
361WINDOW_INLINE void 364INLINE void
362wset_redisplay_end_trigger (struct window *w, Lisp_Object val) 365wset_redisplay_end_trigger (struct window *w, Lisp_Object val)
363{ 366{
364 w->redisplay_end_trigger = val; 367 w->redisplay_end_trigger = val;
365} 368}
366WINDOW_INLINE void 369INLINE void
367wset_vertical_scroll_bar (struct window *w, Lisp_Object val) 370wset_vertical_scroll_bar (struct window *w, Lisp_Object val)
368{ 371{
369 w->vertical_scroll_bar = val; 372 w->vertical_scroll_bar = val;
370} 373}
371WINDOW_INLINE void 374INLINE void
372wset_prev_buffers (struct window *w, Lisp_Object val) 375wset_prev_buffers (struct window *w, Lisp_Object val)
373{ 376{
374 w->prev_buffers = val; 377 w->prev_buffers = val;
375} 378}
376WINDOW_INLINE void 379INLINE void
377wset_next_buffers (struct window *w, Lisp_Object val) 380wset_next_buffers (struct window *w, Lisp_Object val)
378{ 381{
379 w->next_buffers = val; 382 w->next_buffers = val;
@@ -519,10 +522,13 @@ wset_next_buffers (struct window *w, Lisp_Object val)
519#endif 522#endif
520 523
521/* 1 if W is a tool bar window. */ 524/* 1 if W is a tool bar window. */
522 525#if defined (HAVE_WINDOW_SYSTEM) && ! defined (USE_GTK) && ! defined (HAVE_NS)
523#define WINDOW_TOOL_BAR_P(W) \ 526#define WINDOW_TOOL_BAR_P(W) \
524 (WINDOWP (WINDOW_XFRAME (W)->tool_bar_window) \ 527 (WINDOWP (WINDOW_XFRAME (W)->tool_bar_window) \
525 && (W) == XWINDOW (WINDOW_XFRAME (W)->tool_bar_window)) 528 && (W) == XWINDOW (WINDOW_XFRAME (W)->tool_bar_window))
529#else
530#define WINDOW_TOOL_BAR_P(W) (0)
531#endif
526 532
527/* Return the frame y-position at which window W starts. 533/* Return the frame y-position at which window W starts.
528 This includes a header line, if any. */ 534 This includes a header line, if any. */
@@ -957,7 +963,7 @@ extern void keys_of_window (void);
957 window update, so the position is the future output cursor position 963 window update, so the position is the future output cursor position
958 for currently updated window W. */ 964 for currently updated window W. */
959 965
960WINDOW_INLINE void 966INLINE void
961output_cursor_to (struct window *w, int vpos, int hpos, int y, int x) 967output_cursor_to (struct window *w, int vpos, int hpos, int y, int x)
962{ 968{
963 eassert (w); 969 eassert (w);