diff options
| author | Richard M. Stallman | 2003-06-03 11:11:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-06-03 11:11:56 +0000 |
| commit | 01aa0b2e3b548ce976c215ce94f35b7299aee597 (patch) | |
| tree | 4a118f66cc8f478420f08c3af6ec5bd6e30c0def /src/window.h | |
| parent | c4e2d7912b43daa4956ce0f83003e7d8791356aa (diff) | |
| download | emacs-01aa0b2e3b548ce976c215ce94f35b7299aee597.tar.gz emacs-01aa0b2e3b548ce976c215ce94f35b7299aee597.zip | |
(WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
(WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
Diffstat (limited to 'src/window.h')
| -rw-r--r-- | src/window.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/window.h b/src/window.h index e853cc3cf2b..cfb1b349d8b 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -179,7 +179,6 @@ struct window | |||
| 179 | no scroll bar. A value of t means use frame value. */ | 179 | no scroll bar. A value of t means use frame value. */ |
| 180 | Lisp_Object vertical_scroll_bar_type; | 180 | Lisp_Object vertical_scroll_bar_type; |
| 181 | 181 | ||
| 182 | /* The rest are currently not used or only half used */ | ||
| 183 | /* Frame coords of mark as of last time display completed */ | 182 | /* Frame coords of mark as of last time display completed */ |
| 184 | /* May be nil if mark does not exist or was not on frame */ | 183 | /* May be nil if mark does not exist or was not on frame */ |
| 185 | Lisp_Object last_mark_x; | 184 | Lisp_Object last_mark_x; |
| @@ -511,6 +510,18 @@ struct window | |||
| 511 | / WINDOW_FRAME_COLUMN_WIDTH (W)) \ | 510 | / WINDOW_FRAME_COLUMN_WIDTH (W)) \ |
| 512 | : FRAME_FRINGE_COLS (WINDOW_XFRAME (W))) | 511 | : FRAME_FRINGE_COLS (WINDOW_XFRAME (W))) |
| 513 | 512 | ||
| 513 | /* Column-width of the left and right fringe. */ | ||
| 514 | |||
| 515 | #define WINDOW_LEFT_FRINGE_COLS(W) \ | ||
| 516 | ((WINDOW_LEFT_FRINGE_WIDTH ((W)) \ | ||
| 517 | + WINDOW_FRAME_COLUMN_WIDTH (W) - 1) \ | ||
| 518 | / WINDOW_FRAME_COLUMN_WIDTH (W)) | ||
| 519 | |||
| 520 | #define WINDOW_RIGHT_FRINGE_COLS(W) \ | ||
| 521 | ((WINDOW_RIGHT_FRINGE_WIDTH ((W)) \ | ||
| 522 | + WINDOW_FRAME_COLUMN_WIDTH (W) - 1) \ | ||
| 523 | / WINDOW_FRAME_COLUMN_WIDTH (W)) | ||
| 524 | |||
| 514 | /* Pixel-width of the left and right fringe. */ | 525 | /* Pixel-width of the left and right fringe. */ |
| 515 | 526 | ||
| 516 | #define WINDOW_LEFT_FRINGE_WIDTH(W) \ | 527 | #define WINDOW_LEFT_FRINGE_WIDTH(W) \ |
| @@ -636,22 +647,28 @@ struct window | |||
| 636 | : WINDOW_LEFT_EDGE_X (W)) | 647 | : WINDOW_LEFT_EDGE_X (W)) |
| 637 | 648 | ||
| 638 | 649 | ||
| 639 | /* Height in pixels of the mode line. May be zero if W doesn't have a | 650 | /* Height in pixels, and in lines, of the mode line. |
| 640 | mode line. */ | 651 | May be zero if W doesn't have a mode line. */ |
| 641 | 652 | ||
| 642 | #define WINDOW_MODE_LINE_HEIGHT(W) \ | 653 | #define WINDOW_MODE_LINE_HEIGHT(W) \ |
| 643 | (WINDOW_WANTS_MODELINE_P ((W)) \ | 654 | (WINDOW_WANTS_MODELINE_P ((W)) \ |
| 644 | ? CURRENT_MODE_LINE_HEIGHT (W) \ | 655 | ? CURRENT_MODE_LINE_HEIGHT (W) \ |
| 645 | : 0) | 656 | : 0) |
| 646 | 657 | ||
| 647 | /* Height in pixels of the header line. Zero if W doesn't have a header | 658 | #define WINDOW_MODE_LINE_LINES(W) \ |
| 648 | line. */ | 659 | (!! WINDOW_WANTS_MODELINE_P ((W))) |
| 660 | |||
| 661 | /* Height in pixels, and in lines, of the header line. | ||
| 662 | Zero if W doesn't have a header line. */ | ||
| 649 | 663 | ||
| 650 | #define WINDOW_HEADER_LINE_HEIGHT(W) \ | 664 | #define WINDOW_HEADER_LINE_HEIGHT(W) \ |
| 651 | (WINDOW_WANTS_HEADER_LINE_P ((W)) \ | 665 | (WINDOW_WANTS_HEADER_LINE_P ((W)) \ |
| 652 | ? CURRENT_HEADER_LINE_HEIGHT (W) \ | 666 | ? CURRENT_HEADER_LINE_HEIGHT (W) \ |
| 653 | : 0) | 667 | : 0) |
| 654 | 668 | ||
| 669 | #define WINDOW_HEADER_LINE_LINES(W) \ | ||
| 670 | (!! WINDOW_WANTS_HEADER_LINE_P ((W))) | ||
| 671 | |||
| 655 | /* Pixel height of window W without mode line. */ | 672 | /* Pixel height of window W without mode line. */ |
| 656 | 673 | ||
| 657 | #define WINDOW_BOX_HEIGHT_NO_MODE_LINE(W) \ | 674 | #define WINDOW_BOX_HEIGHT_NO_MODE_LINE(W) \ |