diff options
| author | Joakim Verona | 2013-03-26 16:20:17 +0100 |
|---|---|---|
| committer | Joakim Verona | 2013-03-26 16:20:17 +0100 |
| commit | 6f6db22fc74ffb7fbdd4d805545b7e28cd59f0c8 (patch) | |
| tree | 4a58903b4c3d010e90fc37fe10ea4d9895876d01 /src/window.h | |
| parent | 62dd123f7c11ddbe156bc0e84dcb7ca1da5368bb (diff) | |
| parent | 48c226c2c2592e31a47559bd1689fcc4354d9479 (diff) | |
| download | emacs-6f6db22fc74ffb7fbdd4d805545b7e28cd59f0c8.tar.gz emacs-6f6db22fc74ffb7fbdd4d805545b7e28cd59f0c8.zip | |
conflict resolve
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 70 |
1 files changed, 27 insertions, 43 deletions
diff --git a/src/window.h b/src/window.h index dcef37abb4c..71c438ff7f2 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -112,20 +112,14 @@ struct window | |||
| 112 | /* The window this one is a child of. */ | 112 | /* The window this one is a child of. */ |
| 113 | Lisp_Object parent; | 113 | Lisp_Object parent; |
| 114 | 114 | ||
| 115 | /* The upper left corner coordinates of this window, as integers | 115 | /* The normal size of the window. These are fractions, but we do |
| 116 | relative to upper left corner of frame = 0, 0. */ | 116 | not use C doubles to avoid creating new Lisp_Float objects while |
| 117 | Lisp_Object left_col; | 117 | interfacing Lisp in Fwindow_normal_size. */ |
| 118 | Lisp_Object top_line; | ||
| 119 | |||
| 120 | /* The size of the window. */ | ||
| 121 | Lisp_Object total_lines; | ||
| 122 | Lisp_Object total_cols; | ||
| 123 | |||
| 124 | /* The normal size of the window. */ | ||
| 125 | Lisp_Object normal_lines; | 118 | Lisp_Object normal_lines; |
| 126 | Lisp_Object normal_cols; | 119 | Lisp_Object normal_cols; |
| 127 | 120 | ||
| 128 | /* New sizes of the window. */ | 121 | /* New sizes of the window. Note that Lisp code may set new_normal |
| 122 | to something beyond an integer, so C int can't be used here. */ | ||
| 129 | Lisp_Object new_total; | 123 | Lisp_Object new_total; |
| 130 | Lisp_Object new_normal; | 124 | Lisp_Object new_normal; |
| 131 | 125 | ||
| @@ -221,6 +215,15 @@ struct window | |||
| 221 | /* Number saying how recently window was selected. */ | 215 | /* Number saying how recently window was selected. */ |
| 222 | int use_time; | 216 | int use_time; |
| 223 | 217 | ||
| 218 | /* The upper left corner coordinates of this window, | ||
| 219 | relative to upper left corner of frame = 0, 0. */ | ||
| 220 | int left_col; | ||
| 221 | int top_line; | ||
| 222 | |||
| 223 | /* The size of the window. */ | ||
| 224 | int total_lines; | ||
| 225 | int total_cols; | ||
| 226 | |||
| 224 | /* Number of columns display within the window is scrolled to the left. */ | 227 | /* Number of columns display within the window is scrolled to the left. */ |
| 225 | ptrdiff_t hscroll; | 228 | ptrdiff_t hscroll; |
| 226 | 229 | ||
| @@ -354,11 +357,6 @@ wset_frame (struct window *w, Lisp_Object val) | |||
| 354 | w->frame = val; | 357 | w->frame = val; |
| 355 | } | 358 | } |
| 356 | WINDOW_INLINE void | 359 | WINDOW_INLINE void |
| 357 | wset_left_col (struct window *w, Lisp_Object val) | ||
| 358 | { | ||
| 359 | w->left_col = val; | ||
| 360 | } | ||
| 361 | WINDOW_INLINE void | ||
| 362 | wset_next (struct window *w, Lisp_Object val) | 360 | wset_next (struct window *w, Lisp_Object val) |
| 363 | { | 361 | { |
| 364 | w->next = val; | 362 | w->next = val; |
| @@ -374,21 +372,6 @@ wset_redisplay_end_trigger (struct window *w, Lisp_Object val) | |||
| 374 | w->redisplay_end_trigger = val; | 372 | w->redisplay_end_trigger = val; |
| 375 | } | 373 | } |
| 376 | WINDOW_INLINE void | 374 | WINDOW_INLINE void |
| 377 | wset_top_line (struct window *w, Lisp_Object val) | ||
| 378 | { | ||
| 379 | w->top_line = val; | ||
| 380 | } | ||
| 381 | WINDOW_INLINE void | ||
| 382 | wset_total_cols (struct window *w, Lisp_Object val) | ||
| 383 | { | ||
| 384 | w->total_cols = val; | ||
| 385 | } | ||
| 386 | WINDOW_INLINE void | ||
| 387 | wset_total_lines (struct window *w, Lisp_Object val) | ||
| 388 | { | ||
| 389 | w->total_lines = val; | ||
| 390 | } | ||
| 391 | WINDOW_INLINE void | ||
| 392 | wset_vertical_scroll_bar (struct window *w, Lisp_Object val) | 375 | wset_vertical_scroll_bar (struct window *w, Lisp_Object val) |
| 393 | { | 376 | { |
| 394 | w->vertical_scroll_bar = val; | 377 | w->vertical_scroll_bar = val; |
| @@ -461,14 +444,12 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 461 | /* Return the width of window W in canonical column units. | 444 | /* Return the width of window W in canonical column units. |
| 462 | This includes scroll bars and fringes. */ | 445 | This includes scroll bars and fringes. */ |
| 463 | 446 | ||
| 464 | #define WINDOW_TOTAL_COLS(W) \ | 447 | #define WINDOW_TOTAL_COLS(W) (W)->total_cols |
| 465 | (XFASTINT (W->total_cols)) | ||
| 466 | 448 | ||
| 467 | /* Return the height of window W in canonical line units. | 449 | /* Return the height of window W in canonical line units. |
| 468 | This includes header and mode lines, if any. */ | 450 | This includes header and mode lines, if any. */ |
| 469 | 451 | ||
| 470 | #define WINDOW_TOTAL_LINES(W) \ | 452 | #define WINDOW_TOTAL_LINES(W) (W)->total_lines |
| 471 | (XFASTINT (W->total_lines)) | ||
| 472 | 453 | ||
| 473 | /* Return the total pixel width of window W. */ | 454 | /* Return the total pixel width of window W. */ |
| 474 | 455 | ||
| @@ -495,8 +476,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 495 | /* Return the canonical frame column at which window W starts. | 476 | /* Return the canonical frame column at which window W starts. |
| 496 | This includes a left-hand scroll bar, if any. */ | 477 | This includes a left-hand scroll bar, if any. */ |
| 497 | 478 | ||
| 498 | #define WINDOW_LEFT_EDGE_COL(W) \ | 479 | #define WINDOW_LEFT_EDGE_COL(W) (W)->left_col |
| 499 | (XFASTINT (W->left_col)) | ||
| 500 | 480 | ||
| 501 | /* Return the canonical frame column before which window W ends. | 481 | /* Return the canonical frame column before which window W ends. |
| 502 | This includes a right-hand scroll bar, if any. */ | 482 | This includes a right-hand scroll bar, if any. */ |
| @@ -507,8 +487,7 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 507 | /* Return the canonical frame line at which window W starts. | 487 | /* Return the canonical frame line at which window W starts. |
| 508 | This includes a header line, if any. */ | 488 | This includes a header line, if any. */ |
| 509 | 489 | ||
| 510 | #define WINDOW_TOP_EDGE_LINE(W) \ | 490 | #define WINDOW_TOP_EDGE_LINE(W) (W)->top_line |
| 511 | (XFASTINT (W->top_line)) | ||
| 512 | 491 | ||
| 513 | /* Return the canonical frame line before which window W ends. | 492 | /* Return the canonical frame line before which window W ends. |
| 514 | This includes a mode line, if any. */ | 493 | This includes a mode line, if any. */ |
| @@ -533,9 +512,14 @@ wset_next_buffers (struct window *w, Lisp_Object val) | |||
| 533 | 512 | ||
| 534 | /* 1 if W is a menu bar window. */ | 513 | /* 1 if W is a menu bar window. */ |
| 535 | 514 | ||
| 515 | #if defined (HAVE_X_WINDOWS) && ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) | ||
| 536 | #define WINDOW_MENU_BAR_P(W) \ | 516 | #define WINDOW_MENU_BAR_P(W) \ |
| 537 | (WINDOWP (WINDOW_XFRAME (W)->menu_bar_window) \ | 517 | (WINDOWP (WINDOW_XFRAME (W)->menu_bar_window) \ |
| 538 | && (W) == XWINDOW (WINDOW_XFRAME (W)->menu_bar_window)) | 518 | && (W) == XWINDOW (WINDOW_XFRAME (W)->menu_bar_window)) |
| 519 | #else | ||
| 520 | /* No menu bar windows if X toolkit is in use. */ | ||
| 521 | #define WINDOW_MENU_BAR_P(W) (0) | ||
| 522 | #endif | ||
| 539 | 523 | ||
| 540 | /* 1 if W is a tool bar window. */ | 524 | /* 1 if W is a tool bar window. */ |
| 541 | 525 | ||
| @@ -891,10 +875,10 @@ extern Lisp_Object Vmouse_event; | |||
| 891 | 875 | ||
| 892 | extern Lisp_Object make_window (void); | 876 | extern Lisp_Object make_window (void); |
| 893 | extern Lisp_Object window_from_coordinates (struct frame *, int, int, | 877 | extern Lisp_Object window_from_coordinates (struct frame *, int, int, |
| 894 | enum window_part *, int); | 878 | enum window_part *, bool); |
| 895 | extern void resize_frame_windows (struct frame *, int, int); | 879 | extern void resize_frame_windows (struct frame *, int, bool); |
| 896 | extern void delete_all_child_windows (Lisp_Object); | 880 | extern void delete_all_child_windows (Lisp_Object); |
| 897 | extern void freeze_window_starts (struct frame *, int); | 881 | extern void freeze_window_starts (struct frame *, bool); |
| 898 | extern void grow_mini_window (struct window *, int); | 882 | extern void grow_mini_window (struct window *, int); |
| 899 | extern void shrink_mini_window (struct window *); | 883 | extern void shrink_mini_window (struct window *); |
| 900 | extern int window_relative_x_coord (struct window *, enum window_part, int); | 884 | extern int window_relative_x_coord (struct window *, enum window_part, int); |
| @@ -906,7 +890,7 @@ void run_window_configuration_change_hook (struct frame *f); | |||
| 906 | it's not allowed. */ | 890 | it's not allowed. */ |
| 907 | 891 | ||
| 908 | void set_window_buffer (Lisp_Object window, Lisp_Object buffer, | 892 | void set_window_buffer (Lisp_Object window, Lisp_Object buffer, |
| 909 | int run_hooks_p, int keep_margins_p); | 893 | bool run_hooks_p, bool keep_margins_p); |
| 910 | 894 | ||
| 911 | /* This is the window where the echo area message was displayed. It | 895 | /* This is the window where the echo area message was displayed. It |
| 912 | is always a minibuffer window, but it may not be the same window | 896 | is always a minibuffer window, but it may not be the same window |