diff options
| author | Eli Zaretskii | 2013-09-26 10:37:16 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-09-26 10:37:16 +0300 |
| commit | b87c4ff2817e71ca71b028792200b1e069a95e04 (patch) | |
| tree | bfe00c0655fa02078a9ab2c633ea06d90c4a2064 /src/window.h | |
| parent | bbc108377873aa6ed7cf21c731770103096eea39 (diff) | |
| parent | ba355de014b75ed104da4777f909db70d62f2357 (diff) | |
| download | emacs-b87c4ff2817e71ca71b028792200b1e069a95e04.tar.gz emacs-b87c4ff2817e71ca71b028792200b1e069a95e04.zip | |
Merge from trunk.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 30 |
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 | ||
| 25 | INLINE_HEADER_BEGIN | 25 | INLINE_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 |
| 31 | Lisp data type is changed to Lisp_Window. They are garbage | 28 | Lisp 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. */ |
| 346 | WINDOW_INLINE void | 349 | INLINE void |
| 347 | wset_frame (struct window *w, Lisp_Object val) | 350 | wset_frame (struct window *w, Lisp_Object val) |
| 348 | { | 351 | { |
| 349 | w->frame = val; | 352 | w->frame = val; |
| 350 | } | 353 | } |
| 351 | WINDOW_INLINE void | 354 | INLINE void |
| 352 | wset_next (struct window *w, Lisp_Object val) | 355 | wset_next (struct window *w, Lisp_Object val) |
| 353 | { | 356 | { |
| 354 | w->next = val; | 357 | w->next = val; |
| 355 | } | 358 | } |
| 356 | WINDOW_INLINE void | 359 | INLINE void |
| 357 | wset_prev (struct window *w, Lisp_Object val) | 360 | wset_prev (struct window *w, Lisp_Object val) |
| 358 | { | 361 | { |
| 359 | w->prev = val; | 362 | w->prev = val; |
| 360 | } | 363 | } |
| 361 | WINDOW_INLINE void | 364 | INLINE void |
| 362 | wset_redisplay_end_trigger (struct window *w, Lisp_Object val) | 365 | wset_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 | } |
| 366 | WINDOW_INLINE void | 369 | INLINE void |
| 367 | wset_vertical_scroll_bar (struct window *w, Lisp_Object val) | 370 | wset_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 | } |
| 371 | WINDOW_INLINE void | 374 | INLINE void |
| 372 | wset_prev_buffers (struct window *w, Lisp_Object val) | 375 | wset_prev_buffers (struct window *w, Lisp_Object val) |
| 373 | { | 376 | { |
| 374 | w->prev_buffers = val; | 377 | w->prev_buffers = val; |
| 375 | } | 378 | } |
| 376 | WINDOW_INLINE void | 379 | INLINE void |
| 377 | wset_next_buffers (struct window *w, Lisp_Object val) | 380 | wset_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 | ||
| 960 | WINDOW_INLINE void | 966 | INLINE void |
| 961 | output_cursor_to (struct window *w, int vpos, int hpos, int y, int x) | 967 | output_cursor_to (struct window *w, int vpos, int hpos, int y, int x) |
| 962 | { | 968 | { |
| 963 | eassert (w); | 969 | eassert (w); |